parent
7755b9c812
commit
62d7261a63
|
@ -9,7 +9,7 @@ clone:
|
||||||
|
|
||||||
pipeline:
|
pipeline:
|
||||||
build:
|
build:
|
||||||
image: nathansamson/flutter-builder-docker:v0.6.0
|
image: jonasfranz/flutter:master
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- flutter packages get
|
- flutter packages get
|
||||||
|
@ -21,7 +21,7 @@ pipeline:
|
||||||
event: [ push, tag ]
|
event: [ push, tag ]
|
||||||
|
|
||||||
test:
|
test:
|
||||||
image: nathansamson/flutter-builder-docker:v0.6.0
|
image: jonasfranz/flutter:master
|
||||||
pull: true
|
pull: true
|
||||||
commands:
|
commands:
|
||||||
- make test
|
- make test
|
||||||
|
|
|
@ -52,7 +52,9 @@ class _RegisterPageState extends State<RegisterPage> {
|
||||||
child: TextFormField(
|
child: TextFormField(
|
||||||
onSaved: (username) => _username = username.trim(),
|
onSaved: (username) => _username = username.trim(),
|
||||||
validator: (username) {
|
validator: (username) {
|
||||||
return username.trim().isNotEmpty ? null : 'Please specify a username';
|
return username.trim().isNotEmpty
|
||||||
|
? null
|
||||||
|
: 'Please specify a username';
|
||||||
},
|
},
|
||||||
decoration:
|
decoration:
|
||||||
new InputDecoration(labelText: 'Username'),
|
new InputDecoration(labelText: 'Username'),
|
||||||
|
@ -77,7 +79,9 @@ class _RegisterPageState extends State<RegisterPage> {
|
||||||
controller: passwordController,
|
controller: passwordController,
|
||||||
onSaved: (password) => _password = password,
|
onSaved: (password) => _password = password,
|
||||||
validator: (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:
|
decoration:
|
||||||
new InputDecoration(labelText: 'Password'),
|
new InputDecoration(labelText: 'Password'),
|
||||||
|
|
Reference in New Issue