Fix build (#18)
the build was successful Details

This commit is contained in:
konrad 2018-11-05 15:43:30 +00:00 committed by Gitea
parent 7755b9c812
commit 62d7261a63
2 changed files with 8 additions and 4 deletions

View File

@ -9,7 +9,7 @@ clone:
pipeline:
build:
image: nathansamson/flutter-builder-docker:v0.6.0
image: jonasfranz/flutter:master
pull: true
commands:
- flutter packages get
@ -21,7 +21,7 @@ pipeline:
event: [ push, tag ]
test:
image: nathansamson/flutter-builder-docker:v0.6.0
image: jonasfranz/flutter:master
pull: true
commands:
- make test

View File

@ -52,7 +52,9 @@ class _RegisterPageState extends State<RegisterPage> {
child: TextFormField(
onSaved: (username) => _username = username.trim(),
validator: (username) {
return username.trim().isNotEmpty ? null : 'Please specify a username';
return username.trim().isNotEmpty
? null
: 'Please specify a username';
},
decoration:
new InputDecoration(labelText: 'Username'),
@ -77,7 +79,9 @@ class _RegisterPageState extends State<RegisterPage> {
controller: passwordController,
onSaved: (password) => _password = password,
validator: (password) {
return password.length >= 8 ? null : 'Please use at least 8 characters';
return password.length >= 8
? null
: 'Please use at least 8 characters';
},
decoration:
new InputDecoration(labelText: 'Password'),