CAKE-356 | added "Manage Yats" item to the settings page; reworked primary icon button; added yat address to qr widget; created yat_alert.dart, yat_webview_page.dart, yat_store.dart, yat_view_model.dart, yat_exception.dart, yat_record.dart

This commit is contained in:
OleksandrSobol
2021-08-20 16:26:00 +03:00
parent a2206f6fbd
commit 92aece5e31
18 changed files with 400 additions and 14 deletions
@@ -1,3 +1,5 @@
import 'package:cake_wallet/src/screens/yat/yat_alert.dart';
import 'package:cake_wallet/utils/show_pop_up.dart';
import 'package:flutter/cupertino.dart';
import 'package:mobx/mobx.dart';
import 'package:package_info/package_info.dart';
@@ -154,6 +156,16 @@ abstract class SettingsViewModelBase with Store {
_settingsStore.currentTheme = theme)
],
[
RegularListItem(
title: 'Manage Yats',
handler: (BuildContext context) async {
await showPopUp<void>(
context: context,
builder: (BuildContext context) {
return YatAlert();
});
},
),
RegularListItem(
title: S.current.settings_terms_and_conditions,
handler: (BuildContext context) =>