@@ -11,6 +11,7 @@ class LogOutAlert extends StatelessWidget {
11
11
Widget build (BuildContext context) {
12
12
final hp = MediaQuery .of (context).size.height;
13
13
return AlertDialog (
14
+ elevation: 0 ,
14
15
backgroundColor: ThemeProvider .theme.primaryColorLight,
15
16
shape: RoundedRectangleBorder (
16
17
borderRadius: BorderRadius .all (
@@ -29,50 +30,50 @@ class LogOutAlert extends StatelessWidget {
29
30
),
30
31
actionsPadding: EdgeInsets .all (5 ),
31
32
actions: [
32
- // Yes - TextButton
33
+ // No - TextButton
33
34
TextButton (
34
35
style: ButtonStyle (
36
+ minimumSize: MaterialStateProperty .all <Size >(
37
+ Size (hp * .160 , hp * .059 ),
38
+ ),
35
39
shape: MaterialStateProperty .all <RoundedRectangleBorder >(
36
40
RoundedRectangleBorder (
37
- borderRadius: BorderRadius .circular (12 ),
41
+ borderRadius: BorderRadius .circular (8 ),
38
42
),
39
43
),
40
- minimumSize: MaterialStateProperty .all <Size >(
41
- Size (hp * .160 , hp * .059 ),
42
- ),
43
- backgroundColor:
44
- MaterialStateProperty .all (ThemeProvider .theme.primaryColorDark),
44
+ backgroundColor: MaterialStateProperty .all (
45
+ ThemeProvider .theme.dialogBackgroundColor),
45
46
),
46
- onPressed: logoutOnClick,
47
+ onPressed: () {
48
+ Navigator .of (context, rootNavigator: true ).pop ();
49
+ },
47
50
child: Text (
48
- 'Yes ' ,
51
+ 'No ' ,
49
52
style: TextStyle (
50
- color: ThemeProvider .theme.textTheme.bodyText1? .color),
53
+ color: Colors .white,
54
+ ),
51
55
),
52
56
),
53
- // Space in between Buttons
54
- SizedBox (width: 5 ),
55
- // No - TextButton
57
+ // Yes - TextButton
56
58
TextButton (
57
59
style: ButtonStyle (
58
- minimumSize: MaterialStateProperty .all <Size >(
59
- Size (hp * .160 , hp * .059 ),
60
- ),
61
60
shape: MaterialStateProperty .all <RoundedRectangleBorder >(
62
61
RoundedRectangleBorder (
63
- borderRadius: BorderRadius .circular (12 ),
62
+ borderRadius: BorderRadius .circular (8 ),
64
63
),
65
64
),
66
- backgroundColor: MaterialStateProperty .all (
67
- ThemeProvider .theme.dialogBackgroundColor),
65
+ minimumSize: MaterialStateProperty .all <Size >(
66
+ Size (hp * .160 , hp * .059 ),
67
+ ),
68
+ backgroundColor:
69
+ MaterialStateProperty .all (ThemeProvider .theme.primaryColorDark),
68
70
),
69
- onPressed: () {
70
- Navigator .of (context, rootNavigator: true ).pop ();
71
- },
71
+ onPressed: logoutOnClick,
72
72
child: Text (
73
- 'No ' ,
73
+ 'Yes ' ,
74
74
style: TextStyle (
75
- color: ThemeProvider .theme.textTheme.bodyText1? .color),
75
+ color: Colors .white,
76
+ ),
76
77
),
77
78
),
78
79
],
0 commit comments