generate random wallet name when message container is tapped on

This commit is contained in:
ryleedavis 2022-12-09 13:29:09 -07:00
parent 133e8c388c
commit 5f095249cb

View file

@ -272,17 +272,27 @@ class _NameYourWalletViewState extends ConsumerState<NameYourWalletView> {
SizedBox(
height: isDesktop ? 16 : 8,
),
RoundedWhiteContainer(
child: Center(
child: Text(
"Roll the dice to pick a random name.",
style: isDesktop
? STextStyles.desktopTextExtraSmall(context).copyWith(
color: Theme.of(context)
.extension<StackColors>()!
.textSubtitle1,
)
: STextStyles.itemSubtitle(context),
GestureDetector(
onTap: () async {
textEditingController.text =
await _generateRandomWalletName();
setState(() {
_nextEnabled = true;
_showDiceIcon = false;
});
},
child: RoundedWhiteContainer(
child: Center(
child: Text(
"Roll the dice to pick a random name.",
style: isDesktop
? STextStyles.desktopTextExtraSmall(context).copyWith(
color: Theme.of(context)
.extension<StackColors>()!
.textSubtitle1,
)
: STextStyles.itemSubtitle(context),
),
),
),
),