Код требуемого макета - это не 100%, но получить работу. Вы можете заполнить его как требуется.
@override
Widget build(BuildContext context) {
return Scaffold(
body: Stack(
children: [
Container(
decoration: new BoxDecoration(
image: new DecorationImage(
fit: BoxFit.cover,
image: new NetworkImage(
'https://i.pinimg.com/originals/c2/47/e9/c247e913a0214313045a8a5c39f8522b.jpg'))),
),
Center(
child: SingleChildScrollView(
padding: EdgeInsets.all(30.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: [
CircleAvatar(
radius: 58.0,
child: Text('Travel'),
),
SizedBox(
height: 20.0,
),
TextFormField(
decoration: InputDecoration(
prefixIcon: Icon(
Icons.person,
color: Colors.white,
),
hintStyle: TextStyle(color: Colors.white),
filled: true,
fillColor: Colors.black45,
hintText: 'Username'),
),
SizedBox(
height: 10.0,
),
TextFormField(
decoration: InputDecoration(
filled: true,
prefixIcon: Icon(Icons.lock, color: Colors.white),
hintStyle: TextStyle(color: Colors.white),
fillColor: Colors.black45,
hintText: 'Password'),
),
SizedBox(
height: 15.0,
),
FlatButton(
onPressed: () {},
child: Text(
'Forgot your Password?',
style: TextStyle(color: Colors.white),
)),
SizedBox(
height: 15.0,
),
RaisedButton(
onPressed: () {},
child: Padding(
padding: EdgeInsets.all(15.0),
child: Text('LOGIN')),
color: Colors.redAccent,
textColor: Colors.white,
),
SizedBox(
height: 10.0,
),
RaisedButton(
onPressed: () {},
child: Padding(
padding: EdgeInsets.all(15.0),
child: Text('REGISTER')),
color: Colors.grey,
textColor: Colors.white,
),
SizedBox(
height: 12.0,
),
Row(
children: [
Expanded(
child: Divider(
color: Colors.white,
height: 8.0,
),
),
SizedBox(
width: 8.0,
),
Text(
'OR',
style: TextStyle(color: Colors.white),
),
SizedBox(
width: 8.0,
),
Expanded(
child: Divider(
color: Colors.white,
height: 8.0,
),
)
],
),
Row(
children: [
// TODO Social Icons
],
),
],
),
),
),
],
),
);
}
OutPut:
Тег комплекта может иметь атрибут тайм-аута. Этот тайм-аут будет использоваться в качестве значения по умолчанию для всех методов тестирования.
Этот тайм-аут по умолчанию может, чем быть переопределенным на на основание метода тестирования.
Если уровень Комплекта оказывается неправильным подходом (т.е. "слишком широкая сеть", потому что Вы заканчиваете тем, что отметили слишком много методы с пределом тайм-аута), необходимо определить пользовательский IAnnotationTransformer, который, для каждой неразборчивой функции, даст Вам возможность изменить @Test аннотацию (с, например, setTimout () метод).
(setTimout(0)
отменяет директиву тайм-аута),
Можно сделать, поиск и замена для "@Test" с "@Test (тайм-аут =)" Должны работать для нахождения запертого теста и могут быть отменены после этого.