|
1 | 1 | import 'package:flutter/material.dart'; |
2 | 2 | import 'home_screen.dart'; |
| 3 | +import 'stacked_icons.dart'; |
| 4 | +import 'package:toast/toast.dart'; |
3 | 5 |
|
4 | 6 | class Settings extends StatefulWidget { |
5 | 7 | @override |
@@ -40,7 +42,121 @@ class _SettingsState extends State<Settings> { |
40 | 42 | centerTitle: false, |
41 | 43 | elevation: 0, |
42 | 44 | ), |
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 | + ), |
44 | 160 | ); |
45 | 161 | } |
46 | 162 | } |
0 commit comments