56 lines
2.0 KiB
Dart
56 lines
2.0 KiB
Dart
|
|
import 'package:flutter/material.dart';
|
|
import 'package:persistent_bottom_nav_bar/persistent_tab_view.dart';
|
|
import 'package:share_plus/share_plus.dart';
|
|
|
|
import '../../../widget/ListItem.dart';
|
|
import '../../settings/settings.dart';
|
|
import 'gradeAverages/gradeAverage.dart';
|
|
import 'holidays/holidays.dart';
|
|
import 'message/message.dart';
|
|
import 'roomplan/roomplan.dart';
|
|
|
|
class Overhang extends StatelessWidget {
|
|
const Overhang({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
|
|
return Scaffold(
|
|
appBar: AppBar(
|
|
title: const Text("Mehr"),
|
|
actions: [
|
|
IconButton(onPressed: () => PersistentNavBarNavigator.pushNewScreen(context, screen: const Settings(), withNavBar: false), icon: const Icon(Icons.settings))
|
|
],
|
|
),
|
|
body: ListView(
|
|
children: [
|
|
const ListItemNavigator(icon: Icons.newspaper, text: "Marianum Message", target: Message()),
|
|
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()),
|
|
const Divider(),
|
|
ListTile(
|
|
leading: const Icon(Icons.share_outlined),
|
|
title: const Text("Teile die App"),
|
|
onTap: () {
|
|
Share.share(
|
|
sharePositionOrigin: Rect.fromCenter(
|
|
center: const Offset(0, 0),
|
|
width: 0,
|
|
height: 0,
|
|
),
|
|
subject: "App Teilen",
|
|
"Hol dir die für das Marianum maßgeschneiderte App:"
|
|
"\n\nAndroid: https://play.google.com/store/apps/details?id=eu.mhsl.marianum.mobile.client "
|
|
"\niOS: https://apps.apple.com/us/app/marianum-fulda/id6458789560 "
|
|
"\n\nViel Spaß!"
|
|
);
|
|
},
|
|
),
|
|
],
|
|
),
|
|
);
|
|
}
|
|
}
|