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/desktop/primary_button.dart';
import 'package:stackwallet/widgets/desktop/secondary_button.dart';
import 'package:stackwallet/widgets/stack_dialog.dart';
class MonkeyView extends ConsumerStatefulWidget {
const MonkeyView({
@ -220,34 +221,10 @@ class _MonkeyViewState extends ConsumerState<MonkeyView> {
useSafeArea: false,
barrierDismissible: true,
builder: (context) {
return Dialog(
child: Material(
borderRadius: BorderRadius.circular(
20,
),
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),
),
)
],
),
),
),
return const StackOkDialog(
title: "About MonKeys",
message:
"A MonKey is a visual representation of your Banano address.",
);
});
}),

View file

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