@@ -44,7 +44,9 @@ class _SettingsState extends State<Settings> {
4444 centerTitle: true ,
4545 primary: true ,
4646 ),
47- backgroundColor: Theme .of (context).backgroundColor,
47+ backgroundColor: Theme
48+ .of (context)
49+ .backgroundColor,
4850 body: Container (
4951 margin: EdgeInsets .only (top: 12 ),
5052 child: ListView (
@@ -54,7 +56,9 @@ class _SettingsState extends State<Settings> {
5456 padding: const EdgeInsets .symmetric (vertical: 6 , horizontal: 18 ),
5557 child: Text (
5658 "App" ,
57- style: TextStyle (color: Theme .of (context).accentColor),
59+ style: TextStyle (color: Theme
60+ .of (context)
61+ .accentColor),
5862 ),
5963 ),
6064 Divider (),
@@ -65,16 +69,19 @@ class _SettingsState extends State<Settings> {
6569 ),
6670 trailing: loadingErase
6771 ? SizedBox (
68- child: CircularProgressIndicator (
69- strokeWidth: 1 ,
70- ),
71- width: 12 ,
72- height: 12 ,
73- )
72+ child: CircularProgressIndicator (
73+ strokeWidth: 1 ,
74+ ),
75+ width: 12 ,
76+ height: 12 ,
77+ )
7478 : SizedBox .shrink (),
7579 title: Text (
7680 "Clear all data" ,
77- style: Theme .of (context).textTheme.subtitle,
81+ style: Theme
82+ .of (context)
83+ .textTheme
84+ .subtitle,
7885 ),
7986 subtitle: Text ("Clear all data from the device" ),
8087 onTap: () {
@@ -89,7 +96,10 @@ class _SettingsState extends State<Settings> {
8996 ),
9097 title: Text (
9198 "Theme" ,
92- style: Theme .of (context).textTheme.subtitle,
99+ style: Theme
100+ .of (context)
101+ .textTheme
102+ .subtitle,
93103 ),
94104 subtitle: Text ("Customize theme" ),
95105 onTap: () {
@@ -101,7 +111,9 @@ class _SettingsState extends State<Settings> {
101111 padding: const EdgeInsets .symmetric (vertical: 6 , horizontal: 18 ),
102112 child: Text (
103113 "Security" ,
104- style: TextStyle (color: Theme .of (context).accentColor),
114+ style: TextStyle (color: Theme
115+ .of (context)
116+ .accentColor),
105117 ),
106118 ),
107119 Divider (),
@@ -112,18 +124,23 @@ class _SettingsState extends State<Settings> {
112124 ),
113125 title: Text (
114126 lockEnabled ? "Change Lock PIN" : "Enable Lock Screen" ,
115- style: Theme .of (context).textTheme.subtitle,
127+ style: Theme
128+ .of (context)
129+ .textTheme
130+ .subtitle,
116131 ),
117132 subtitle:
118- Text ("Database will be encrypted using the provided PIN" ),
133+ Text ("Database will be encrypted using the provided PIN" ),
119134 onTap: enableOrChangeLock,
120135 ),
121136 Divider (),
122137 Container (
123138 padding: const EdgeInsets .symmetric (vertical: 6 , horizontal: 18 ),
124139 child: Text (
125140 "Network" ,
126- style: TextStyle (color: Theme .of (context).accentColor),
141+ style: TextStyle (color: Theme
142+ .of (context)
143+ .accentColor),
127144 ),
128145 ),
129146 Divider (),
@@ -134,7 +151,10 @@ class _SettingsState extends State<Settings> {
134151 ),
135152 title: Text (
136153 "Tor" ,
137- style: Theme .of (context).textTheme.subtitle,
154+ style: Theme
155+ .of (context)
156+ .textTheme
157+ .subtitle,
138158 ),
139159 subtitle: Text ("Manage Tor service" ),
140160 onTap: () {
@@ -148,7 +168,10 @@ class _SettingsState extends State<Settings> {
148168 ),
149169 title: Text (
150170 "Samourai DOJO" ,
151- style: Theme .of (context).textTheme.subtitle,
171+ style: Theme
172+ .of (context)
173+ .textTheme
174+ .subtitle,
152175 ),
153176 subtitle: Text ("Power your sentinel with Dojo backend" ),
154177 onTap: () {
@@ -168,8 +191,14 @@ class _SettingsState extends State<Settings> {
168191 Padding (
169192 padding: EdgeInsets .all (24 ),
170193 ),
171- Text ("Version : $version " ,style: Theme .of (context).textTheme.caption,),
172- Text ("build : $buildNumber " ,style: Theme .of (context).textTheme.caption,)
194+ Text ("Version : $version " , style: Theme
195+ .of (context)
196+ .textTheme
197+ .caption,),
198+ Text ("build : $buildNumber " , style: Theme
199+ .of (context)
200+ .textTheme
201+ .caption,)
173202 ],
174203 )
175204 ],
@@ -194,7 +223,10 @@ class _SettingsState extends State<Settings> {
194223 bool confirm = await showConfirmModel (
195224 context: context,
196225 title: Text ("Are you sure want to continue?" ,
197- style: Theme .of (context).textTheme.subhead),
226+ style: Theme
227+ .of (context)
228+ .textTheme
229+ .subhead),
198230 iconPositive: new Icon (
199231 Icons .check_circle,
200232 color: Colors .greenAccent[200 ],
@@ -230,7 +262,10 @@ class _SettingsState extends State<Settings> {
230262 }
231263 bool confirm = await showConfirmModel (
232264 context: context,
233- title: Text ("Choose option" , style: Theme .of (context).textTheme.subhead),
265+ title: Text ("Choose option" , style: Theme
266+ .of (context)
267+ .textTheme
268+ .subhead),
234269 iconPositive: new Icon (
235270 Icons .dialpad,
236271 ),
@@ -252,15 +287,15 @@ class _SettingsState extends State<Settings> {
252287 Navigator .of (context).pushNamedAndRemoveUntil (
253288 '/' , (Route <dynamic > route) => false ,
254289 arguments: "LOCK" );
255- SentinelState ().eventsStream.sink.add (SessionStates .LOCK );
256- }
290+ }
257291 }
258292
259293 void setPassword () async {
260294 final text = await Navigator .push (
261295 context,
262296 MaterialPageRoute (
263- builder: (context) => LockScreen (
297+ builder: (context) =>
298+ LockScreen (
264299 lockScreenMode: LockScreenMode .CONFIRM ,
265300 ),
266301 fullscreenDialog: true ),
0 commit comments