mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-27 06:18:50 +01:00
CWA-169 | added MorphTokenExchangeProvider to dashboard page, trade filter store. Added morph icon to trade row
This commit is contained in:
@@ -480,7 +480,28 @@ class DashboardPageBodyState extends State<DashboardPageBody> {
|
||||
ExchangeProviderDescription
|
||||
.changeNow),
|
||||
)
|
||||
])))
|
||||
]))),
|
||||
PopupMenuItem(
|
||||
value: 5,
|
||||
child: Observer(
|
||||
builder: (_) => Row(
|
||||
mainAxisAlignment:
|
||||
MainAxisAlignment
|
||||
.spaceBetween,
|
||||
children: [
|
||||
Text('MorphToken'),
|
||||
Checkbox(
|
||||
value: actionListStore
|
||||
.tradeFilterStore
|
||||
.displayMorphToken,
|
||||
onChanged: (value) =>
|
||||
actionListStore
|
||||
.tradeFilterStore
|
||||
.toggleDisplayExchange(
|
||||
ExchangeProviderDescription
|
||||
.morphToken),
|
||||
)
|
||||
])))
|
||||
],
|
||||
child: Text(S.of(context).filters,
|
||||
style: TextStyle(
|
||||
|
||||
@@ -82,6 +82,9 @@ class TradeRow extends StatelessWidget {
|
||||
case ExchangeProviderDescription.changeNow:
|
||||
image = Image.asset('assets/images/change_now.png');
|
||||
break;
|
||||
case ExchangeProviderDescription.morphToken:
|
||||
image = Image.asset('assets/images/morph_icon.png');
|
||||
break;
|
||||
default:
|
||||
image = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user