more design changes
parent
f325e27f8b
commit
41de20703a
|
@ -54,7 +54,9 @@ class MyCustomFormState extends StatelessWidget with InputValidationMixin {
|
|||
appBar: AppBar(
|
||||
title: Text(title),
|
||||
),
|
||||
body: Form(
|
||||
body: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
child: Form(
|
||||
key: formGlobalKey,
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
|
@ -114,32 +116,35 @@ class MyCustomFormState extends StatelessWidget with InputValidationMixin {
|
|||
}
|
||||
},
|
||||
),
|
||||
FittedBox(
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 225.0),
|
||||
child: FittedBox(
|
||||
child: Text(
|
||||
'$_joule Joule \n'
|
||||
'$_energyWater Liter Wasser können damit erhitzt werden \n'
|
||||
'$_energyIron kg Eisen können damit zu glühen gebracht werden',
|
||||
style: new TextStyle(
|
||||
style: const TextStyle(
|
||||
fontSize: 20.0,
|
||||
color: Colors.black,
|
||||
),
|
||||
textAlign: TextAlign.center,
|
||||
))),
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 16.0),
|
||||
padding: const EdgeInsets.symmetric(horizontal: 425.0),
|
||||
child: ElevatedButton(
|
||||
onPressed: () => {
|
||||
if (formGlobalKey.currentState!.validate())
|
||||
{formGlobalKey.currentState!.save()},
|
||||
_changeJoule(context),
|
||||
},
|
||||
child: Text('Submit',
|
||||
style: new TextStyle(
|
||||
child: const Text('Submit',
|
||||
style: TextStyle(
|
||||
fontSize: 20.0,
|
||||
)),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
));
|
||||
)));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue