mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-12 08:58:54 +03:30
Fix some issue
This commit is contained in:
@@ -112,6 +112,12 @@ class AddLabelBox extends StatelessWidget {
|
||||
const EdgeInsets.symmetric(horizontal: 0),
|
||||
child: TextFormField(
|
||||
controller: values,
|
||||
validator: (val) {
|
||||
if (val!.isEmpty) {
|
||||
return 'Label required!';
|
||||
}
|
||||
return null;
|
||||
},
|
||||
decoration: InputDecoration(
|
||||
contentPadding: EdgeInsets.only(
|
||||
bottom: 12,
|
||||
|
||||
@@ -49,23 +49,6 @@ class CycleAddSaveButton extends StatelessWidget {
|
||||
descriptionCTRL.text,
|
||||
striizerIdCTRL.text,
|
||||
);
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (ctx) => AlertDialog(
|
||||
content: Text('Cycle added.'),
|
||||
actions: <Widget>[
|
||||
TextButton(
|
||||
onPressed: () {
|
||||
Navigator.of(ctx).pop();
|
||||
},
|
||||
child: Text('Ok'),
|
||||
)
|
||||
],
|
||||
),
|
||||
).then((_) {
|
||||
Navigator.of(context)
|
||||
.pushReplacementNamed(Routes.cycleResultScreen);
|
||||
});
|
||||
Navigator.of(context).pushReplacementNamed(Routes.cycleResultScreen);
|
||||
Fluttertoast.showToast(
|
||||
msg: "Cycle added.",
|
||||
|
||||
Reference in New Issue
Block a user