cake_wallet/lib/view_model/wallet_seed_view_model.dart
David Adegoke 329a1fd6de
CW-703: Better Seed UI/UX (#1868)
* feat: Switch UI for seeds display

* feat: Add localization for disclaimer text

* fix: Modify color for warning on seeds screen

* Fix: Adjust UI styling for seed page

* chore: Revert podfile.lock

* Fix column colors

* Fix more colors

---------

Co-authored-by: tuxpizza <tuxsudo@tux.pizza>
2024-12-11 22:19:52 +02:00

22 lines
521 B
Dart

import 'package:mobx/mobx.dart';
import 'package:cw_core/wallet_base.dart';
part 'wallet_seed_view_model.g.dart';
class WalletSeedViewModel = WalletSeedViewModelBase with _$WalletSeedViewModel;
abstract class WalletSeedViewModelBase with Store {
WalletSeedViewModelBase(WalletBase wallet)
: name = wallet.name,
seed = wallet.seed!;
@observable
String name;
@observable
String seed;
List<String> get seedSplit => seed.split(' ');
int get columnCount => seedSplit.length <= 16 ? 2 : 3;
}