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:
@@ -50,14 +50,18 @@ class _EditProfilePageState extends State<EditProfilePage> {
|
||||
key: _formKey,
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: <Widget>[
|
||||
children: <Widget>[
|
||||
Center(
|
||||
child: Stack(
|
||||
children: <Widget>[
|
||||
const CircleAvatar(
|
||||
children: <Widget>[
|
||||
const CircleAvatar(
|
||||
radius: 50,
|
||||
backgroundColor: UiColors.bgSecondary,
|
||||
child: const Icon(UiIcons.user, size: 40, color: UiColors.primary),
|
||||
child: Icon(
|
||||
UiIcons.user,
|
||||
size: 40,
|
||||
color: UiColors.primary,
|
||||
),
|
||||
),
|
||||
Positioned(
|
||||
bottom: 0,
|
||||
|
||||
Reference in New Issue
Block a user