Desktop what is monkey button

This commit is contained in:
ryleedavis 2023-07-26 15:37:10 -06:00
parent b2aa4272b4
commit 4e9ba50572

View file

@ -239,11 +239,12 @@ class _MonkeyViewState extends ConsumerState<MonkeyView> {
], ],
), ),
), ),
trailing: AspectRatio( trailing: Padding(
aspectRatio: 1, padding: const EdgeInsets.all(8.0),
child: AppBarIconButton( child: MouseRegion(
icon: SvgPicture.asset(Assets.svg.circleQuestion), cursor: SystemMouseCursors.click,
onPressed: () { child: GestureDetector(
onTap: () {
showDialog<dynamic>( showDialog<dynamic>(
context: context, context: context,
useSafeArea: false, useSafeArea: false,
@ -255,7 +256,30 @@ class _MonkeyViewState extends ConsumerState<MonkeyView> {
"A MonKey is a visual representation of your Banano address.", "A MonKey is a visual representation of your Banano address.",
); );
}); });
}), },
child: Row(
children: [
SvgPicture.asset(
Assets.svg.circleQuestion,
color: Colors.blue[800],
),
SizedBox(
width: 6,
),
Padding(
padding: const EdgeInsets.only(bottom: 8.0),
child: Text(
"What is MonKey?",
style: STextStyles.desktopTextSmall(context)
.copyWith(
color: Colors.blue[800],
),
),
),
],
),
),
),
), ),
useSpacers: false, useSpacers: false,
isCompactHeight: true, isCompactHeight: true,
@ -281,9 +305,6 @@ class _MonkeyViewState extends ConsumerState<MonkeyView> {
child: AppBarIconButton( child: AppBarIconButton(
icon: SvgPicture.asset( icon: SvgPicture.asset(
Assets.svg.circleQuestion, Assets.svg.circleQuestion,
color: Theme.of(context)
.extension<StackColors>()!
.infoItemText,
), ),
onPressed: () { onPressed: () {
showDialog<dynamic>( showDialog<dynamic>(
@ -403,7 +424,6 @@ class _MonkeyViewState extends ConsumerState<MonkeyView> {
message: "Fetching MonKey", message: "Fetching MonKey",
subMessage: "We are fetching your MonKey", subMessage: "We are fetching your MonKey",
); );
// if (isDesktop) { // if (isDesktop) {
// Navigator.of(context).popUntil( // Navigator.of(context).popUntil(
// ModalRoute.withName( // ModalRoute.withName(