Added Nextcloud base
This commit is contained in:
50
lib/app.dart
50
lib/app.dart
@ -1,6 +1,6 @@
|
||||
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:marianum_mobile/screen/pages/timetable/storedTimetable.dart';
|
||||
import 'package:marianum_mobile/screen/pages/timetable/timetable.dart';
|
||||
import 'package:marianum_mobile/screen/pages/timetable/testTimetable.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:shared_preferences/shared_preferences.dart';
|
||||
@ -8,8 +8,8 @@ import 'package:shared_preferences/shared_preferences.dart';
|
||||
import 'dataOld/incommingPackets/talkNotificationsPacket.dart';
|
||||
import 'screen/pages/files/files.dart';
|
||||
import 'screen/pages/more/overhang.dart';
|
||||
import 'screen/pages/talk/chatOverview.dart';
|
||||
import 'screen/pages/timetable/timetable.dart';
|
||||
import 'screen/pages/talk/chatList.dart';
|
||||
import 'screen/pages/timetable/timetableOld.dart';
|
||||
import 'screen/settings/settings.dart';
|
||||
|
||||
class App extends StatefulWidget {
|
||||
@ -26,6 +26,7 @@ class _AppState extends State<App> {
|
||||
Widget build(BuildContext context) {
|
||||
final PageController pageController = PageController();
|
||||
return Scaffold(
|
||||
resizeToAvoidBottomInset: false,
|
||||
appBar: AppBar(
|
||||
title: const Text("Marianum Fulda"),
|
||||
actions: <Widget>[
|
||||
@ -38,27 +39,32 @@ class _AppState extends State<App> {
|
||||
)
|
||||
],
|
||||
),
|
||||
body: Stack(
|
||||
body: Column(
|
||||
children: [
|
||||
PageView(
|
||||
controller: pageController,
|
||||
children: const [
|
||||
StoredTimetable(),
|
||||
Talk(),
|
||||
Files(),
|
||||
Overhang(),
|
||||
],
|
||||
onPageChanged: (page) {
|
||||
setState(() {
|
||||
currentPage = page;
|
||||
});
|
||||
},
|
||||
Visibility(
|
||||
visible: false,
|
||||
child: LinearProgressIndicator(
|
||||
backgroundColor: Colors.transparent,
|
||||
valueColor: AlwaysStoppedAnimation(Theme.of(context).primaryColor),
|
||||
minHeight: 5,
|
||||
),
|
||||
),
|
||||
// LinearProgressIndicator(
|
||||
// backgroundColor: Colors.transparent,
|
||||
// valueColor: AlwaysStoppedAnimation(Theme.of(context).primaryColor),
|
||||
// minHeight: 5,
|
||||
// ),
|
||||
Flexible(
|
||||
child: PageView(
|
||||
controller: pageController,
|
||||
children: [
|
||||
Timetable(),
|
||||
ChatList(),
|
||||
Files(),
|
||||
Overhang(),
|
||||
],
|
||||
onPageChanged: (page) {
|
||||
setState(() {
|
||||
currentPage = page;
|
||||
});
|
||||
},
|
||||
),
|
||||
)
|
||||
],
|
||||
),
|
||||
|
||||
|
Reference in New Issue
Block a user