@@ -55,45 +55,48 @@ class _LoadingScreenState extends State<LoadingScreen> {
55
55
Color .fromARGB (221 , 0 , 0 , 0 ),
56
56
Color .fromARGB (255 , 246 , 64 , 51 ),
57
57
])),
58
- child: Container (
59
- decoration: const BoxDecoration (color: Colors .black87),
60
- width: double .infinity,
61
- child: Column (
62
- mainAxisAlignment: MainAxisAlignment .spaceEvenly,
63
- crossAxisAlignment: CrossAxisAlignment .center,
64
- children: [
65
- Image .asset ('assets/images/2x/logo.png' ),
66
- _isLoading
67
- ? Center (
68
- child: Column (
69
- mainAxisAlignment: MainAxisAlignment .center,
70
- children: [
71
- const CircularProgressIndicator (
72
- color: Colors .white,
73
- ),
74
- const Padding (padding: EdgeInsets .only (bottom: 15 )),
75
- const Text (
76
- "Loading catalog RCP" ,
77
- style: TextStyle (color: Colors .white, fontSize: 20 ),
78
- ),
79
- const Text (
80
- 'please wait a moment' ,
81
- style: TextStyle (
82
- color: Colors .white,
83
- decorationStyle: TextDecorationStyle .dashed),
84
- ),
85
- Consumer <RcpData >(
86
- builder: (context, value, child) => Text (
87
- 'Getting product ${value .count }/${value .numberProduct + 2 }' ,
88
- style: const TextStyle (
89
- color: Colors .white,
90
- decorationStyle: TextDecorationStyle .dashed)),
91
- ),
92
- ],
93
- ),
94
- )
95
- : const LoadingBigButton ()
96
- ],
58
+ child: SafeArea (
59
+ child: Container (
60
+ decoration: const BoxDecoration (color: Colors .black87),
61
+ width: double .infinity,
62
+ child: Column (
63
+ mainAxisAlignment: MainAxisAlignment .spaceEvenly,
64
+ crossAxisAlignment: CrossAxisAlignment .center,
65
+ children: [
66
+ Image .asset ('assets/images/2x/logo.png' ),
67
+ _isLoading
68
+ ? Center (
69
+ child: Column (
70
+ mainAxisAlignment: MainAxisAlignment .center,
71
+ children: [
72
+ const CircularProgressIndicator (
73
+ color: Colors .white,
74
+ ),
75
+ const Padding (padding: EdgeInsets .only (bottom: 15 )),
76
+ const Text (
77
+ "Loading catalog RCP" ,
78
+ style: TextStyle (color: Colors .white, fontSize: 20 ),
79
+ ),
80
+ const Text (
81
+ 'please wait a moment' ,
82
+ style: TextStyle (
83
+ color: Colors .white,
84
+ decorationStyle: TextDecorationStyle .dashed),
85
+ ),
86
+ Consumer <RcpData >(
87
+ builder: (context, value, child) => Text (
88
+ 'Getting product ${value .count }/${value .numberProduct + 2 }' ,
89
+ style: const TextStyle (
90
+ color: Colors .white,
91
+ decorationStyle:
92
+ TextDecorationStyle .dashed)),
93
+ ),
94
+ ],
95
+ ),
96
+ )
97
+ : const LoadingBigButton ()
98
+ ],
99
+ ),
97
100
),
98
101
),
99
102
));
0 commit comments