Fixed webuntis bug, added share button
This commit is contained in:
@ -16,7 +16,7 @@ class _LoadingSpinnerState extends State<LoadingSpinner> {
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
timer = Timer(const Duration(seconds: 15), () {
|
||||
timer = Timer(const Duration(seconds: 30), () {
|
||||
setState(() {
|
||||
textVisible = true;
|
||||
});
|
||||
@ -33,13 +33,16 @@ class _LoadingSpinnerState extends State<LoadingSpinner> {
|
||||
children: [
|
||||
Visibility(
|
||||
visible: !textVisible,
|
||||
replacement: const Icon(Icons.signal_wifi_connected_no_internet_4_outlined),
|
||||
replacement: const Icon(Icons.sentiment_dissatisfied_outlined),
|
||||
child: const CircularProgressIndicator(),
|
||||
),
|
||||
const SizedBox(height: 30),
|
||||
Visibility(
|
||||
visible: textVisible,
|
||||
child: const Text("Etwas scheint nicht zu funktionieren!\nBist du mit dem Internet verbunden?\n\nVersuche die App neuzustarten"),
|
||||
child: const Text(
|
||||
textAlign: TextAlign.center,
|
||||
"Irgendetwas funktioniert nicht!\nBist du mit dem Internet verbunden?\n\nVersuche die App neuzustarten"
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
Reference in New Issue
Block a user