Skip to content

Commit 392b0c6

Browse files
committed
Setttings design complete
1 parent fc62be1 commit 392b0c6

File tree

2 files changed

+141
-1
lines changed

2 files changed

+141
-1
lines changed

lib/screens/settings_screen.dart

Lines changed: 117 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import 'package:flutter/material.dart';
22
import 'home_screen.dart';
3+
import 'stacked_icons.dart';
4+
import 'package:toast/toast.dart';
35

46
class Settings extends StatefulWidget {
57
@override
@@ -40,7 +42,121 @@ class _SettingsState extends State<Settings> {
4042
centerTitle: false,
4143
elevation: 0,
4244
),
43-
body: Container(),
45+
body: Padding(
46+
padding: const EdgeInsets.fromLTRB(25.0, 60.0, 25.0, 25.0),
47+
child: Container(
48+
width: double.infinity,
49+
child: new Column(
50+
crossAxisAlignment: CrossAxisAlignment.center,
51+
children: <Widget>[
52+
new StakedIcons(),
53+
new Row(
54+
mainAxisAlignment: MainAxisAlignment.center,
55+
children: <Widget>[
56+
Padding(
57+
padding: const EdgeInsets.only(top: 8.0),
58+
child: new Text(
59+
"Task Manager",
60+
style: new TextStyle(fontSize: 20.0, color: Colors.grey),
61+
),
62+
)
63+
],
64+
),
65+
Padding(
66+
padding: const EdgeInsets.only(
67+
top: 5.0, left: 25.0, right: 20.0, bottom: 60.0),
68+
child: new Container(
69+
alignment: Alignment.center,
70+
child: new Text("Version: 1.0",
71+
style:
72+
new TextStyle(fontSize: 12.0, color: Colors.grey))),
73+
),
74+
SizedBox(
75+
width: 1080,
76+
height: 1,
77+
child: const DecoratedBox(
78+
decoration: const BoxDecoration(color: Colors.black12),
79+
),
80+
),
81+
new Row(
82+
mainAxisAlignment: MainAxisAlignment.center,
83+
children: <Widget>[
84+
Expanded(
85+
child: Padding(
86+
padding: const EdgeInsets.only(
87+
top: 30.0, left: 40.0, right: 20.0, bottom: 30.0),
88+
child: GestureDetector(
89+
onTap: () {
90+
Navigator.push(
91+
context,
92+
MaterialPageRoute(
93+
builder: (_) => HomeScreen()));
94+
Toast.show("All data cleared", context,
95+
duration: Toast.LENGTH_LONG,
96+
gravity: Toast.BOTTOM);
97+
},
98+
child: new Container(
99+
alignment: Alignment.center,
100+
height: 40.0,
101+
decoration: new BoxDecoration(
102+
color: Colors.grey,
103+
borderRadius: new BorderRadius.circular(9.0)),
104+
child: new Text("CLEAR ALL DATA",
105+
style: new TextStyle(
106+
fontSize: 15.0, color: Colors.white))),
107+
),
108+
),
109+
),
110+
]),
111+
SizedBox(
112+
width: 1080,
113+
height: 1,
114+
child: const DecoratedBox(
115+
decoration: const BoxDecoration(color: Colors.black12),
116+
),
117+
),
118+
Padding(
119+
padding: const EdgeInsets.only(left: 40.0, right: 20.0),
120+
child: new Container(
121+
alignment: Alignment.centerLeft,
122+
height: 60.0,
123+
child: new Text("Terms and Condition",
124+
style: new TextStyle(
125+
fontSize: 17.0, color: Colors.brown))),
126+
),
127+
Padding(
128+
padding: const EdgeInsets.only(left: 40.0, right: 20.0),
129+
child: new Container(
130+
alignment: Alignment.centerLeft,
131+
height: 60.0,
132+
child: new Text("Privacy Policy",
133+
style: new TextStyle(
134+
fontSize: 17.0, color: Colors.brown))),
135+
),
136+
SizedBox(
137+
width: 1080,
138+
height: 1,
139+
child: const DecoratedBox(
140+
decoration: const BoxDecoration(color: Colors.black12),
141+
),
142+
),
143+
Expanded(
144+
child: Column(
145+
mainAxisAlignment: MainAxisAlignment.end,
146+
children: <Widget>[
147+
Padding(
148+
padding: const EdgeInsets.only(bottom: 10.0),
149+
child: new Text("Bornomala Technologies ",
150+
style: new TextStyle(
151+
fontSize: 15.0, color: Colors.black54)),
152+
),
153+
],
154+
),
155+
)
156+
],
157+
),
158+
),
159+
),
44160
);
45161
}
46162
}

lib/screens/stacked_icons.dart

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
import 'package:flutter/material.dart';
2+
3+
class StakedIcons extends StatelessWidget {
4+
@override
5+
Widget build(BuildContext context) {
6+
return new Stack(
7+
alignment: Alignment.center,
8+
children: <Widget>[
9+
new Container(
10+
height: 60.0,
11+
width: 60.0,
12+
decoration: new BoxDecoration(
13+
borderRadius: new BorderRadius.circular(20.0),
14+
color: Colors.white),
15+
child: new Icon(
16+
Icons.check_rounded,
17+
color: Color(0xFF18D191),
18+
size: 50,
19+
),
20+
),
21+
],
22+
);
23+
}
24+
}

0 commit comments

Comments
 (0)