Skip to content

Commit

Permalink
default balance subtitle in currency cards
Browse files Browse the repository at this point in the history
  • Loading branch information
chuck-h committed Jun 9, 2024
1 parent 5e13c5c commit 8360ccf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/datasource/remote/model/token_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class TokenModel extends Equatable {
symbol: parsedJson["symbol"]!,
name: parsedJson["name"]!,
logoUrl: parsedJson["logo"]!,
balanceSubTitle: parsedJson["subtitle"],
balanceSubTitle: parsedJson["subtitle"] ?? CurrencyInfoCard.defaultBalanceSubtitle,
backgroundImageUrl: parsedJson["bg_image"] ?? CurrencyInfoCard.defaultBgImage,
overdraw: parsedJson["overdraw"] ?? "allow",
precision: parsedJson["precision"] ?? 4,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import 'package:seeds/utils/build_context_extension.dart';

class CurrencyInfoCard extends StatelessWidget {
// TODO(chuck): provide default image
static const defaultBgImage = 'assets/images/wallet/currency_info_cards/tlos/background.jpg';
static const defaultBgImage = 'assets/images/wallet/currency_info_cards/tlos/background.png';
static const defaultBalanceSubtitle = 'Balance';

final TokenBalanceViewModel tokenBalance;
final String fiatBalance;
Expand Down

0 comments on commit 8360ccf

Please sign in to comment.