mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-11 05:04:35 +00:00
generate random wallet name when message container is tapped on
This commit is contained in:
parent
133e8c388c
commit
5f095249cb
1 changed files with 21 additions and 11 deletions
|
@ -272,17 +272,27 @@ class _NameYourWalletViewState extends ConsumerState<NameYourWalletView> {
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: isDesktop ? 16 : 8,
|
height: isDesktop ? 16 : 8,
|
||||||
),
|
),
|
||||||
RoundedWhiteContainer(
|
GestureDetector(
|
||||||
child: Center(
|
onTap: () async {
|
||||||
child: Text(
|
textEditingController.text =
|
||||||
"Roll the dice to pick a random name.",
|
await _generateRandomWalletName();
|
||||||
style: isDesktop
|
setState(() {
|
||||||
? STextStyles.desktopTextExtraSmall(context).copyWith(
|
_nextEnabled = true;
|
||||||
color: Theme.of(context)
|
_showDiceIcon = false;
|
||||||
.extension<StackColors>()!
|
});
|
||||||
.textSubtitle1,
|
},
|
||||||
)
|
child: RoundedWhiteContainer(
|
||||||
: STextStyles.itemSubtitle(context),
|
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),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
Loading…
Reference in a new issue