feat(client_home): simplify widget order and visibility in ClientHomeState
This commit is contained in:
@@ -20,16 +20,10 @@ class ClientHomeState extends Equatable {
|
||||
this.widgetOrder = const [
|
||||
'actions',
|
||||
'reorder',
|
||||
'coverage',
|
||||
'spending',
|
||||
'liveActivity',
|
||||
],
|
||||
this.widgetVisibility = const {
|
||||
'actions': true,
|
||||
'reorder': true,
|
||||
'coverage': true,
|
||||
'spending': true,
|
||||
'liveActivity': true,
|
||||
},
|
||||
this.isEditMode = false,
|
||||
this.errorMessage,
|
||||
|
||||
@@ -84,7 +84,8 @@ class ClientHomeHeader extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
spacing: UiConstants.space2,
|
||||
children: <Widget>[
|
||||
HeaderIconButton(
|
||||
icon: UiIcons.edit,
|
||||
isActive: state.isEditMode,
|
||||
@@ -92,13 +93,6 @@ class ClientHomeHeader extends StatelessWidget {
|
||||
context,
|
||||
).add(ClientHomeEditModeToggled()),
|
||||
),
|
||||
const SizedBox(width: UiConstants.space2),
|
||||
HeaderIconButton(
|
||||
icon: UiIcons.bell,
|
||||
badgeText: '3',
|
||||
onTap: () {},
|
||||
),
|
||||
const SizedBox(width: UiConstants.space2),
|
||||
HeaderIconButton(
|
||||
icon: UiIcons.settings,
|
||||
onTap: () => Modular.to.pushSettings(),
|
||||
|
||||
Reference in New Issue
Block a user