mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-22 06:28:39 +02:00
* [skip-ci] show mweb confirmations, show last mweb balance while syncing * potential send-all fix * [skip-ci] undo fix that didn't work * [skip-ci] undo unnecessary changes * [skip ci] add export mweb logs screen * [skip ci] cleanup * confirmation fixes * catch electrum call errors * [skip ci] undo some changes * potential electrum fixes + mweb logs display only last 10000 characters * Add question mark and link to MWEB card * updates * show negative unconfirmed mweb balanaces + other fixes [skip ci] * error handling * [skip ci] [wip] check if node supports mweb * check fee before building tx * [skip ci] minor * [skip ci] minor * mweb node setting [wip] [skip ci] * prioritize mweb coins when selecting inputs from the pool * potential connection edgecase fix * translations + mweb node fixes * don't use mweb for exchange refund address * add peg in / out labels and make 6 confs only show up for peg in / out * bump bitcoin_base version to v9 * [skip ci] fix logs page * don't fetch txinfo for non-mweb addresses [skip ci] * fix non-mweb confirmations * rename always scan to enable mweb * Update litecoin_wallet_addresses.dart Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com> * Update cw_mweb.dart Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com> * [skip ci] review updates pt.1 * [skip ci] minor code cleanup * [skip ci] use exception handler * exception handling [skip ci] * [skip ci] exception handling * trigger build * pegout label fixes * fix showing change transactions on peg-out * minor code cleanup and minor peg-out fix * final balance fixes * non-mweb confirmations potential fix * [skip ci] wip * trigger build --------- Co-authored-by: tuxpizza <tuxsudo@tux.pizza> Co-authored-by: Omar Hatem <omarh.ismail1@gmail.com>
59 lines
2.2 KiB
Dart
59 lines
2.2 KiB
Dart
import 'package:cake_wallet/generated/i18n.dart';
|
|
import 'package:cake_wallet/routes.dart';
|
|
import 'package:cake_wallet/src/screens/base_page.dart';
|
|
import 'package:cake_wallet/src/screens/settings/widgets/settings_cell_with_arrow.dart';
|
|
import 'package:cake_wallet/src/screens/settings/widgets/settings_switcher_cell.dart';
|
|
import 'package:cake_wallet/view_model/settings/mweb_settings_view_model.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:flutter_mobx/flutter_mobx.dart';
|
|
|
|
class MwebSettingsPage extends BasePage {
|
|
MwebSettingsPage(this._mwebSettingsViewModel);
|
|
|
|
@override
|
|
String get title => S.current.litecoin_mweb_settings;
|
|
|
|
final MwebSettingsViewModel _mwebSettingsViewModel;
|
|
|
|
@override
|
|
Widget body(BuildContext context) {
|
|
return SingleChildScrollView(
|
|
child: Observer(builder: (_) {
|
|
return Container(
|
|
padding: EdgeInsets.only(top: 10),
|
|
child: Column(
|
|
children: [
|
|
SettingsSwitcherCell(
|
|
title: S.current.litecoin_mweb_display_card,
|
|
value: _mwebSettingsViewModel.mwebCardDisplay,
|
|
onValueChange: (_, bool value) {
|
|
_mwebSettingsViewModel.setMwebCardDisplay(value);
|
|
},
|
|
),
|
|
SettingsSwitcherCell(
|
|
title: S.current.litecoin_mweb_enable,
|
|
value: _mwebSettingsViewModel.mwebEnabled,
|
|
onValueChange: (_, bool value) {
|
|
_mwebSettingsViewModel.setMwebEnabled(value);
|
|
},
|
|
),
|
|
SettingsCellWithArrow(
|
|
title: S.current.litecoin_mweb_scanning,
|
|
handler: (BuildContext context) => Navigator.of(context).pushNamed(Routes.rescan),
|
|
),
|
|
SettingsCellWithArrow(
|
|
title: S.current.litecoin_mweb_logs,
|
|
handler: (BuildContext context) => Navigator.of(context).pushNamed(Routes.mwebLogs),
|
|
),
|
|
SettingsCellWithArrow(
|
|
title: S.current.litecoin_mweb_node,
|
|
handler: (BuildContext context) => Navigator.of(context).pushNamed(Routes.mwebNode),
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}),
|
|
);
|
|
}
|
|
}
|