Skip to content

Commit

Permalink
Rebrand improve readability on exchange details pages
Browse files Browse the repository at this point in the history
  • Loading branch information
takenagain committed Jan 29, 2024
1 parent a885aff commit 40e11aa
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions lib/screens/dex/trade/pro/confirm/swap_confirmation_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ class _SwapConfirmationPageState extends State<SwapConfirmationPage> {
Text(AppLocalizations.of(context).sell,
style: Theme.of(context).textTheme.bodyText2.copyWith(
color: Theme.of(context).colorScheme.secondary,
fontWeight: FontWeight.w100,
fontWeight: FontWeight.w300,
)),
Text(
'$amountSell ${swapBloc.sellCoinBalance.coin.abbr}',
Expand Down Expand Up @@ -313,7 +313,7 @@ class _SwapConfirmationPageState extends State<SwapConfirmationPage> {
.copyWith(
color:
Theme.of(context).colorScheme.secondary,
fontWeight: FontWeight.w100,
fontWeight: FontWeight.w300,
))
],
)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ class _SwapConfirmationPageSimpleState
Text(AppLocalizations.of(context).send,
style: Theme.of(context).textTheme.bodyText2.copyWith(
color: Theme.of(context).colorScheme.secondary,
fontWeight: FontWeight.w100,
fontWeight: FontWeight.w300,
)),
SizedBox(height: 8),
AutoScrollText(
Expand Down Expand Up @@ -244,7 +244,7 @@ class _SwapConfirmationPageSimpleState
color: Theme.of(context)
.colorScheme
.secondary,
fontWeight: FontWeight.w100,
fontWeight: FontWeight.w300,
))
],
)),
Expand Down
6 changes: 5 additions & 1 deletion lib/screens/portfolio/activate/select_coins_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ import 'build_selected_coins.dart';
import 'build_filter_coin.dart';

class SelectCoinsPage extends StatefulWidget {
/// If [autoSubmit] is true, then the page will automatically select the
/// coins in [coinsToAutoSubmit] and submit (click "Done" button)
/// when the page is loaded.
const SelectCoinsPage({this.autoSubmit, this.coinsToAutoSubmit});

final bool autoSubmit;
Expand Down Expand Up @@ -148,7 +151,8 @@ class _SelectCoinsPageState extends State<SelectCoinsPage> {
}

void _initCoinList() async {
for (CoinToActivate coinToActivate in coinsBloc.coinBeforeActivation) {
for (final CoinToActivate coinToActivate
in coinsBloc.coinBeforeActivation) {
_currentCoins
.removeWhere((Coin coin) => coin.abbr == coinToActivate.coin.abbr);
_currentCoins.add(coinToActivate.coin);
Expand Down
8 changes: 6 additions & 2 deletions lib/screens/portfolio/coins_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,12 @@ class _CoinsPageState extends State<CoinsPage> {
return;
}

showAddCoinPage(context, true,
autoSubmitCoins: coinsToActivate, autoSubmit: true);
showAddCoinPage(
context,
true,
autoSubmitCoins: coinsToActivate,
autoSubmit: true,
);
await Db.setDefaultZHLTCCoinActivated(true);
}

Expand Down

0 comments on commit 40e11aa

Please sign in to comment.