Fixed webuntis bug, added share button
This commit is contained in:
@ -8,6 +8,7 @@ import 'package:fast_rsa/fast_rsa.dart';
|
||||
import 'package:firebase_messaging/firebase_messaging.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:persistent_bottom_nav_bar/persistent_tab_view.dart';
|
||||
import 'package:share_plus/share_plus.dart';
|
||||
|
||||
import '../../../model/endpointData.dart';
|
||||
import '../../../widget/ListItem.dart';
|
||||
@ -23,6 +24,7 @@ class Overhang extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: const Text("Mehr"),
|
||||
@ -36,6 +38,19 @@ class Overhang extends StatelessWidget {
|
||||
const ListItemNavigator(icon: Icons.room, text: "Raumplan", target: Roomplan()),
|
||||
const ListItemNavigator(icon: Icons.calculate, text: "Notendurschnittsrechner", target: GradeAverage()),
|
||||
const ListItemNavigator(icon: Icons.calendar_month, text: "Schulferien", target: Holidays()),
|
||||
ListTile(
|
||||
leading: const Icon(Icons.share_outlined),
|
||||
title: const Text("Teile die App mit deiner Klasse"),
|
||||
onTap: () {
|
||||
Share.share( // TODO ipad needs position argument
|
||||
subject: "App Teilen",
|
||||
"Hol dir die inoffizielle App für's Marianum:"
|
||||
"\n\nAndroid: https://play.google.com/store/apps/details?id=eu.mhsl.marianum.mobile.client "
|
||||
"\nApple: https://apps.apple.com/us/app/marianum-fulda/id6458789560 "
|
||||
"\n\nViel Spaß!"
|
||||
);
|
||||
},
|
||||
),
|
||||
DebugTile(context, onlyInDebug: true).callback(onTab: () async {
|
||||
log("Starting");
|
||||
log("Generate keys");
|
||||
|
Reference in New Issue
Block a user