Monkey help message

This commit is contained in:
ryleedavis 2023-07-26 13:18:18 -06:00
parent ea9f997d0b
commit 86d3258910
3 changed files with 25 additions and 56 deletions

@ -1 +1 @@
Subproject commit e48952185556a10f182184fd572bcb04365f5831 Subproject commit 407425c9fcf7a30c81f1345246c7225bc18b5cd5

View file

@ -22,6 +22,7 @@ import 'package:stackwallet/widgets/conditional_parent.dart';
import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart'; import 'package:stackwallet/widgets/custom_buttons/app_bar_icon_button.dart';
import 'package:stackwallet/widgets/desktop/primary_button.dart'; import 'package:stackwallet/widgets/desktop/primary_button.dart';
import 'package:stackwallet/widgets/desktop/secondary_button.dart'; import 'package:stackwallet/widgets/desktop/secondary_button.dart';
import 'package:stackwallet/widgets/stack_dialog.dart';
class MonkeyView extends ConsumerStatefulWidget { class MonkeyView extends ConsumerStatefulWidget {
const MonkeyView({ const MonkeyView({
@ -220,34 +221,10 @@ class _MonkeyViewState extends ConsumerState<MonkeyView> {
useSafeArea: false, useSafeArea: false,
barrierDismissible: true, barrierDismissible: true,
builder: (context) { builder: (context) {
return Dialog( return const StackOkDialog(
child: Material( title: "About MonKeys",
borderRadius: BorderRadius.circular( message:
20, "A MonKey is a visual representation of your Banano address.",
),
child: Container(
height: 200,
decoration: BoxDecoration(
color: Theme.of(context)
.extension<StackColors>()!
.popupBG,
borderRadius: BorderRadius.circular(
20,
),
),
child: Column(
children: [
Center(
child: Text(
"Help",
style: STextStyles.pageTitleH2(
context),
),
)
],
),
),
),
); );
}); });
}), }),

View file

@ -925,23 +925,15 @@ class _WalletViewState extends ConsumerState<WalletView> {
); );
}, },
), ),
if (ref.watch(
walletsChangeNotifierProvider.select(
(value) => value
.getManager(widget.walletId)
.hasCoinControlSupport,
),
) &&
ref.watch(
prefsChangeNotifierProvider.select(
(value) => value.enableCoinControl,
),
))
WalletNavigationBarItemData( WalletNavigationBarItemData(
icon: SvgPicture.asset(Assets.svg.monkey, icon: SvgPicture.asset(
Assets.svg.monkey,
height: 20, height: 20,
width: 20, width: 20,
color: Theme.of(context).extension<StackColors>()!.bottomNavIconIcon,), color: Theme.of(context)
.extension<StackColors>()!
.bottomNavIconIcon,
),
label: "MonKey", label: "MonKey",
onTap: () { onTap: () {
Navigator.of(context).pushNamed( Navigator.of(context).pushNamed(