Refactor widgets, add bloc dep
Clean up widget code and update a dependency: - Remove redundant const qualifiers and tidy widget children in several skeleton/header widgets for consistent style. - Add super.key to TaxFormsProgressOverview, TaxFormStatusBadge, and AccountCard constructors. - Simplify AccountCard by consolidating its constructor into a single const declaration. - Minor fixes: adjust Image.onError parameter, reformat CircleAvatar/Icon construction in edit_profile_page. - Add bloc ^8.1.4 to staff/authentication pubspec. These changes are stylistic and aim to improve consistency and constructor patterns across the codebase.
This commit is contained in:
@@ -12,22 +12,22 @@ class ClientHomeHeaderSkeleton extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return const UiShimmer(
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.fromLTRB(
|
||||
padding: EdgeInsets.fromLTRB(
|
||||
UiConstants.space4,
|
||||
UiConstants.space4,
|
||||
UiConstants.space4,
|
||||
UiConstants.space3,
|
||||
),
|
||||
child: const Row(
|
||||
child: Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
||||
children: const <Widget>[
|
||||
const Row(
|
||||
children: const <Widget>[
|
||||
const UiShimmerCircle(size: UiConstants.space10),
|
||||
const SizedBox(width: UiConstants.space3),
|
||||
const Column(
|
||||
children: <Widget>[
|
||||
Row(
|
||||
children: <Widget>[
|
||||
UiShimmerCircle(size: UiConstants.space10),
|
||||
SizedBox(width: UiConstants.space3),
|
||||
Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: const <Widget>[
|
||||
children: <Widget>[
|
||||
UiShimmerLine(width: 80, height: 12),
|
||||
SizedBox(height: UiConstants.space1),
|
||||
UiShimmerLine(width: 120, height: 16),
|
||||
@@ -35,9 +35,9 @@ class ClientHomeHeaderSkeleton extends StatelessWidget {
|
||||
),
|
||||
],
|
||||
),
|
||||
const Row(
|
||||
Row(
|
||||
spacing: UiConstants.space2,
|
||||
children: const <Widget>[
|
||||
children: <Widget>[
|
||||
UiShimmerBox(width: 36, height: 36),
|
||||
UiShimmerBox(width: 36, height: 36),
|
||||
],
|
||||
|
||||
@@ -12,7 +12,7 @@ class ReorderSectionSkeleton extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return const Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: const <Widget>[
|
||||
children: <Widget>[
|
||||
UiShimmerSectionHeader(),
|
||||
SizedBox(height: UiConstants.space2),
|
||||
SizedBox(
|
||||
|
||||
Reference in New Issue
Block a user