mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2025-01-03 09:29:48 +00:00
329a1fd6de
* 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>
22 lines
521 B
Dart
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;
|
|
}
|