mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-03-22 15:19:11 +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,7 +272,16 @@ class _NameYourWalletViewState extends ConsumerState<NameYourWalletView> {
|
||||||
SizedBox(
|
SizedBox(
|
||||||
height: isDesktop ? 16 : 8,
|
height: isDesktop ? 16 : 8,
|
||||||
),
|
),
|
||||||
RoundedWhiteContainer(
|
GestureDetector(
|
||||||
|
onTap: () async {
|
||||||
|
textEditingController.text =
|
||||||
|
await _generateRandomWalletName();
|
||||||
|
setState(() {
|
||||||
|
_nextEnabled = true;
|
||||||
|
_showDiceIcon = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
child: RoundedWhiteContainer(
|
||||||
child: Center(
|
child: Center(
|
||||||
child: Text(
|
child: Text(
|
||||||
"Roll the dice to pick a random name.",
|
"Roll the dice to pick a random name.",
|
||||||
|
@ -286,6 +295,7 @@ class _NameYourWalletViewState extends ConsumerState<NameYourWalletView> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
if (!isDesktop)
|
if (!isDesktop)
|
||||||
const Spacer(
|
const Spacer(
|
||||||
flex: 4,
|
flex: 4,
|
||||||
|
|
Loading…
Reference in a new issue