@@ -32,104 +32,102 @@ class LoadingPageState extends State<LoadingPage> {
3232 // }
3333
3434 return Scaffold (
35- body: SafeArea (
36- child: Container (
37- width: double .infinity,
38- height: double .infinity,
39- decoration: BoxDecoration (color: AppColors .backgroundColor),
40- child: LayoutBuilder (
41- builder: (context, constraints) {
42- final double maxContentWidth = constraints.maxWidth >= 600
43- ? 600
44- : constraints.maxWidth;
45- return Center (
46- child: SingleChildScrollView (
47- padding: const EdgeInsets .symmetric (
48- horizontal: 24 ,
49- vertical: 32 ,
50- ),
51- child: ConstrainedBox (
52- constraints: BoxConstraints (maxWidth: maxContentWidth),
53- child: Column (
54- mainAxisSize: MainAxisSize .min,
55- crossAxisAlignment: CrossAxisAlignment .center,
56- children: [
57- SizedBox (
58- height: 300 ,
59- width: 300 ,
60- child: InkWell (
61- onTap: () {
62- Navigator .of (context).push (
63- MaterialPageRoute (
64- builder: (ctx) => const LogsPage (),
65- ),
66- );
67- },
68- child: const Image (
69- image: AssetImage ('assets/foreground.png' ),
70- ),
35+ body: Container (
36+ width: double .infinity,
37+ height: double .infinity,
38+ decoration: BoxDecoration (color: AppColors .backgroundColor),
39+ child: LayoutBuilder (
40+ builder: (context, constraints) {
41+ final double maxContentWidth = constraints.maxWidth >= 600
42+ ? 600
43+ : constraints.maxWidth;
44+ return Center (
45+ child: SingleChildScrollView (
46+ padding: const EdgeInsets .symmetric (
47+ horizontal: 24 ,
48+ vertical: 32 ,
49+ ),
50+ child: ConstrainedBox (
51+ constraints: BoxConstraints (maxWidth: maxContentWidth),
52+ child: Column (
53+ mainAxisSize: MainAxisSize .min,
54+ crossAxisAlignment: CrossAxisAlignment .center,
55+ children: [
56+ SizedBox (
57+ height: 300 ,
58+ width: 300 ,
59+ child: InkWell (
60+ onTap: () {
61+ Navigator .of (context).push (
62+ MaterialPageRoute (
63+ builder: (ctx) => const LogsPage (),
64+ ),
65+ );
66+ },
67+ child: const Image (
68+ image: AssetImage ('assets/foreground.png' ),
7169 ),
7270 ),
71+ ),
72+ Text (
73+ locale.schoolDataHub,
74+ textAlign: TextAlign .center,
75+ style: const TextStyle (
76+ color: Colors .white,
77+ fontWeight: FontWeight .bold,
78+ fontSize: 30 ,
79+ ),
80+ ),
81+ const Gap (15 ),
82+ if (_envManager.activeEnv != null )
7383 Text (
74- locale.schoolDataHub ,
84+ _envManager.activeEnv ! .serverName ,
7585 textAlign: TextAlign .center,
7686 style: const TextStyle (
7787 color: Colors .white,
7888 fontWeight: FontWeight .bold,
79- fontSize: 30 ,
89+ fontSize: 18 ,
8090 ),
8191 ),
82- const Gap (15 ),
83- if (_envManager.activeEnv != null )
84- Text (
85- _envManager.activeEnv! .serverName,
86- textAlign: TextAlign .center,
87- style: const TextStyle (
88- color: Colors .white,
89- fontWeight: FontWeight .bold,
90- fontSize: 18 ,
91- ),
92- ),
93- const Gap (40 ),
94- const Text (
95- 'Lade Daten...' ,
96- textAlign: TextAlign .center,
97- style: TextStyle (color: Colors .white, fontSize: 18 ),
98- ),
99- // Padding(
100- // padding: const EdgeInsets.symmetric(horizontal: 8.0),
101- // child: Text(
102- // lastNotificationMessage,
103- // textAlign: TextAlign.center,
104- // style: const TextStyle(
105- // color: Colors.white,
106- // fontSize: 18,
107- // fontWeight: FontWeight.bold,
108- // ),
109- // ),
110- // ),
111- // const Gap(5),
112- // Padding(
113- // padding: const EdgeInsets.symmetric(horizontal: 8.0),
114- // child: Text(
115- // actualNotificationMessage,
116- // textAlign: TextAlign.center,
117- // style: const TextStyle(
118- // color: Colors.white,
119- // fontSize: 18,
120- // fontWeight: FontWeight.bold,
121- // ),
122- // ),
123- // ),
124- const Gap (30 ),
125- const CircularProgressIndicator (color: Colors .white),
126- ],
127- ),
92+ const Gap (40 ),
93+ const Text (
94+ 'Lade Daten...' ,
95+ textAlign: TextAlign .center,
96+ style: TextStyle (color: Colors .white, fontSize: 18 ),
97+ ),
98+ // Padding(
99+ // padding: const EdgeInsets.symmetric(horizontal: 8.0),
100+ // child: Text(
101+ // lastNotificationMessage,
102+ // textAlign: TextAlign.center,
103+ // style: const TextStyle(
104+ // color: Colors.white,
105+ // fontSize: 18,
106+ // fontWeight: FontWeight.bold,
107+ // ),
108+ // ),
109+ // ),
110+ // const Gap(5),
111+ // Padding(
112+ // padding: const EdgeInsets.symmetric(horizontal: 8.0),
113+ // child: Text(
114+ // actualNotificationMessage,
115+ // textAlign: TextAlign.center,
116+ // style: const TextStyle(
117+ // color: Colors.white,
118+ // fontSize: 18,
119+ // fontWeight: FontWeight.bold,
120+ // ),
121+ // ),
122+ // ),
123+ const Gap (30 ),
124+ const CircularProgressIndicator (color: Colors .white),
125+ ],
128126 ),
129127 ),
130- );
131- },
132- ) ,
128+ ),
129+ );
130+ } ,
133131 ),
134132 ),
135133 );
0 commit comments