@@ -33,6 +33,7 @@ FlutterLocalNotificationsPlugin flutterLocalNotificationsPlugin =
33
33
34
34
bool amoledTheme = false ;
35
35
bool materialColor = false ;
36
+ bool roundDegree = false ;
36
37
Locale locale = const Locale ('en' , 'US' );
37
38
int timeRange = 1 ;
38
39
String timeStart = '09:00' ;
@@ -149,6 +150,7 @@ class MyApp extends StatefulWidget {
149
150
BuildContext context, {
150
151
bool ? newAmoledTheme,
151
152
bool ? newMaterialColor,
153
+ bool ? newRoundDegree,
152
154
Locale ? newLocale,
153
155
int ? newTimeRange,
154
156
String ? newTimeStart,
@@ -164,6 +166,9 @@ class MyApp extends StatefulWidget {
164
166
if (newMaterialColor != null ) {
165
167
state.changeMarerialTheme (newMaterialColor);
166
168
}
169
+ if (newRoundDegree != null ) {
170
+ state.changeRoundDegree (newRoundDegree);
171
+ }
167
172
if (newLocale != null ) {
168
173
state.changeLocale (newLocale);
169
174
}
@@ -203,6 +208,12 @@ class _MyAppState extends State<MyApp> {
203
208
});
204
209
}
205
210
211
+ void changeRoundDegree (bool newRoundDegree) {
212
+ setState (() {
213
+ roundDegree = newRoundDegree;
214
+ });
215
+ }
216
+
206
217
void changeTimeRange (int newTimeRange) {
207
218
setState (() {
208
219
timeRange = newTimeRange;
@@ -243,6 +254,7 @@ class _MyAppState extends State<MyApp> {
243
254
void initState () {
244
255
amoledTheme = settings.amoledTheme;
245
256
materialColor = settings.materialColor;
257
+ roundDegree = settings.roundDegree;
246
258
locale = Locale (
247
259
settings.language! .substring (0 , 2 ), settings.language! .substring (3 ));
248
260
timeRange = settings.timeRange ?? 1 ;
0 commit comments