-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadd_task_screen.dart
More file actions
43 lines (42 loc) · 1.2 KB
/
add_task_screen.dart
File metadata and controls
43 lines (42 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import 'package:flutter/material.dart';
class AddTaskScreen extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Container(
color: Color(0xff757575),
child: Container(
padding: EdgeInsets.all(20.0),
decoration: BoxDecoration(
color: Colors.yellow,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(20.0),
topRight: Radius.circular(20.0),
)),
child: Column(
crossAxisAlignment: CrossAxisAlignment.stretch,
children: <Widget>[
Text(
'Add task',
textAlign: TextAlign.center,
style: TextStyle(fontSize: 30.0, color: Colors.green),
),
TextField(
autofocus: true,
textAlign: TextAlign.center,
),
FlatButton(
onPressed: () {},
child: Text(
'Add',
style: TextStyle(
color: Colors.white,
),
),
color: Colors.green,
)
],
),
),
);
}
}