From 25ed4a3dac176e30a2d6960dc1193a54bcddd580 Mon Sep 17 00:00:00 2001 From: Pante Date: Sun, 30 Jun 2024 12:13:55 +0000 Subject: [PATCH] Commit from GitHub Actions (Forui Samples Presubmit) --- samples/lib/widgets/text_field.dart | 48 ++++++++++++++--------------- 1 file changed, 24 insertions(+), 24 deletions(-) diff --git a/samples/lib/widgets/text_field.dart b/samples/lib/widgets/text_field.dart index aa40365dd..26d6a4065 100644 --- a/samples/lib/widgets/text_field.dart +++ b/samples/lib/widgets/text_field.dart @@ -79,9 +79,9 @@ class FormTextFieldPage extends SampleScaffold { @override Widget child(BuildContext context) => const Padding( - padding: EdgeInsets.all(15.0), - child: LoginForm(), - ); + padding: EdgeInsets.all(15.0), + child: LoginForm(), + ); } class LoginForm extends StatefulWidget { @@ -101,26 +101,26 @@ class _LoginFormState extends State { @override Widget build(BuildContext context) => Form( - key: _formKey, - child: Column( - children: [ - FTextField.email( - hint: 'janedoe@foruslabs.com', - help: const Text(''), - validator: (value) => (value?.contains('@') ?? false) ? null : 'Please enter a valid email.', - ), - const SizedBox(height: 4), - FTextField.password( - hint: '', - help: const Text(''), - validator: (value) => 8 <= (value?.length ?? 0) ? null : 'Password must be at least 8 characters long.', - ), - const SizedBox(height: 30), - FButton( - rawLabel: const Text('Login'), - onPress: () => _formKey.currentState!.validate(), + key: _formKey, + child: Column( + children: [ + FTextField.email( + hint: 'janedoe@foruslabs.com', + help: const Text(''), + validator: (value) => (value?.contains('@') ?? false) ? null : 'Please enter a valid email.', + ), + const SizedBox(height: 4), + FTextField.password( + hint: '', + help: const Text(''), + validator: (value) => 8 <= (value?.length ?? 0) ? null : 'Password must be at least 8 characters long.', + ), + const SizedBox(height: 30), + FButton( + rawLabel: const Text('Login'), + onPress: () => _formKey.currentState!.validate(), + ), + ], ), - ], - ), - ); + ); }