tweak frost join new wallet step 1 screen ui

This commit is contained in:
julian 2024-05-01 16:50:01 -06:00
parent 7f0585d4f9
commit b2087c1f1d

View file

@ -7,6 +7,7 @@ import 'package:stackwallet/utilities/text_styles.dart';
import 'package:stackwallet/utilities/util.dart'; import 'package:stackwallet/utilities/util.dart';
import 'package:stackwallet/widgets/desktop/primary_button.dart'; import 'package:stackwallet/widgets/desktop/primary_button.dart';
import 'package:stackwallet/widgets/frost_step_user_steps.dart'; import 'package:stackwallet/widgets/frost_step_user_steps.dart';
import 'package:stackwallet/widgets/rounded_white_container.dart';
import 'package:stackwallet/widgets/stack_dialog.dart'; import 'package:stackwallet/widgets/stack_dialog.dart';
import 'package:stackwallet/widgets/textfields/frost_step_field.dart'; import 'package:stackwallet/widgets/textfields/frost_step_field.dart';
@ -66,6 +67,21 @@ class _FrostCreateStep1bState extends ConsumerState<FrostCreateStep1b> {
const SizedBox( const SizedBox(
height: 16, height: 16,
), ),
FrostStepField(
controller: configFieldController,
focusNode: configFocusNode,
showQrScanOption: true,
label: "Enter config",
hint: "Enter config",
onChanged: (_) {
setState(() {
_configEmpty = configFieldController.text.isEmpty;
});
},
),
const SizedBox(
height: 16,
),
FrostStepField( FrostStepField(
controller: myNameFieldController, controller: myNameFieldController,
focusNode: myNameFocusNode, focusNode: myNameFocusNode,
@ -79,19 +95,20 @@ class _FrostCreateStep1bState extends ConsumerState<FrostCreateStep1b> {
}, },
), ),
const SizedBox( const SizedBox(
height: 16, height: 6,
), ),
FrostStepField( Row(
controller: configFieldController, children: [
focusNode: configFocusNode, Expanded(
showQrScanOption: true, child: RoundedWhiteContainer(
label: "Enter config", child: Text(
hint: "Enter config", "Enter your name EXACTLY as the group creator entered it. "
onChanged: (_) { "The names are case-sensitive.",
setState(() { style: STextStyles.label(context),
_configEmpty = configFieldController.text.isEmpty; ),
}); ),
}, ),
],
), ),
const SizedBox( const SizedBox(
height: 16, height: 16,