Fix build (#18)
This commit is contained in:
parent
0b2b9a1d22
commit
3e7b6d4fd0
|
@ -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
|
||||
|
|
|
@ -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'),
|
||||
|
|
Reference in New Issue