Added internet permission and better message from api call
This commit is contained in:
@@ -89,7 +89,8 @@ class _SignupState extends ConsumerState<Signup> {
|
||||
}
|
||||
return null;
|
||||
},
|
||||
text: 'Email: (optional)',
|
||||
text: 'Email:',
|
||||
subtext: '(optional)',
|
||||
index: 2),
|
||||
generateTextField(
|
||||
controller: passwordController,
|
||||
@@ -169,6 +170,7 @@ class _SignupState extends ConsumerState<Signup> {
|
||||
|
||||
Widget generateTextField({
|
||||
required String text,
|
||||
String? subtext,
|
||||
String? label,
|
||||
required int index,
|
||||
required TextEditingController controller,
|
||||
@@ -182,9 +184,15 @@ class _SignupState extends ConsumerState<Signup> {
|
||||
children: [
|
||||
Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
child: Text(
|
||||
text,
|
||||
style: TextStyle(fontSize: size.width < 350 ? 16 : 20),
|
||||
child: Column(
|
||||
children: [
|
||||
Text(
|
||||
text,
|
||||
style: TextStyle(fontSize: size.width < 350 ? 16 : 20),
|
||||
),
|
||||
if (subtext != null)
|
||||
Text(subtext, style: const TextStyle(fontSize: 12)),
|
||||
],
|
||||
),
|
||||
),
|
||||
const Spacer(),
|
||||
|
||||
Reference in New Issue
Block a user