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 [
|
this.widgetOrder = const [
|
||||||
'actions',
|
'actions',
|
||||||
'reorder',
|
'reorder',
|
||||||
'coverage',
|
|
||||||
'spending',
|
|
||||||
'liveActivity',
|
|
||||||
],
|
],
|
||||||
this.widgetVisibility = const {
|
this.widgetVisibility = const {
|
||||||
'actions': true,
|
'actions': true,
|
||||||
'reorder': true,
|
'reorder': true,
|
||||||
'coverage': true,
|
|
||||||
'spending': true,
|
|
||||||
'liveActivity': true,
|
|
||||||
},
|
},
|
||||||
this.isEditMode = false,
|
this.isEditMode = false,
|
||||||
this.errorMessage,
|
this.errorMessage,
|
||||||
|
|||||||
@@ -84,7 +84,8 @@ class ClientHomeHeader extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
Row(
|
Row(
|
||||||
children: [
|
spacing: UiConstants.space2,
|
||||||
|
children: <Widget>[
|
||||||
HeaderIconButton(
|
HeaderIconButton(
|
||||||
icon: UiIcons.edit,
|
icon: UiIcons.edit,
|
||||||
isActive: state.isEditMode,
|
isActive: state.isEditMode,
|
||||||
@@ -92,13 +93,6 @@ class ClientHomeHeader extends StatelessWidget {
|
|||||||
context,
|
context,
|
||||||
).add(ClientHomeEditModeToggled()),
|
).add(ClientHomeEditModeToggled()),
|
||||||
),
|
),
|
||||||
const SizedBox(width: UiConstants.space2),
|
|
||||||
HeaderIconButton(
|
|
||||||
icon: UiIcons.bell,
|
|
||||||
badgeText: '3',
|
|
||||||
onTap: () {},
|
|
||||||
),
|
|
||||||
const SizedBox(width: UiConstants.space2),
|
|
||||||
HeaderIconButton(
|
HeaderIconButton(
|
||||||
icon: UiIcons.settings,
|
icon: UiIcons.settings,
|
||||||
onTap: () => Modular.to.pushSettings(),
|
onTap: () => Modular.to.pushSettings(),
|
||||||
|
|||||||
Reference in New Issue
Block a user