diff --git a/.gitignore b/.gitignore index f3595bb..64d685e 100644 --- a/.gitignore +++ b/.gitignore @@ -25,3 +25,5 @@ doc/api/ .flutter-plugins .flutter-plugins-dependencies + +saved.dart diff --git a/android.zip b/android.zip deleted file mode 100644 index dc96427..0000000 Binary files a/android.zip and /dev/null differ diff --git a/lib/Settings/Pages/appearance_settings.dart b/lib/Settings/Pages/appearance_settings.dart index 9360819..488ae27 100644 --- a/lib/Settings/Pages/appearance_settings.dart +++ b/lib/Settings/Pages/appearance_settings.dart @@ -1,3 +1,19 @@ +// GCG.MeinCantor - Die Schulplattform für Cantorianer. +// Copyright (C) 2021-2022 Georg-Cantor-Gymnasium Halle (Saale) + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import 'package:flutter/material.dart'; class AppearanceSettings extends StatelessWidget { diff --git a/lib/Settings/Pages/dev_settings.dart b/lib/Settings/Pages/dev_settings.dart index 4883132..6ea872e 100644 --- a/lib/Settings/Pages/dev_settings.dart +++ b/lib/Settings/Pages/dev_settings.dart @@ -1,3 +1,19 @@ +// GCG.MeinCantor - Die Schulplattform für Cantorianer. +// Copyright (C) 2021-2022 Georg-Cantor-Gymnasium Halle (Saale) + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import 'package:background_fetch/background_fetch.dart'; import 'package:flutter/material.dart'; import 'package:material_design_icons_flutter/material_design_icons_flutter.dart'; diff --git a/lib/Settings/Pages/info_settings.dart b/lib/Settings/Pages/info_settings.dart index 730e44e..0d1ee7e 100644 --- a/lib/Settings/Pages/info_settings.dart +++ b/lib/Settings/Pages/info_settings.dart @@ -1,3 +1,19 @@ +// GCG.MeinCantor - Die Schulplattform für Cantorianer. +// Copyright (C) 2021-2022 Georg-Cantor-Gymnasium Halle (Saale) + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import 'package:flutter/material.dart'; import 'package:flutter_linkify/flutter_linkify.dart'; import 'package:meincantor/const.dart'; @@ -126,15 +142,16 @@ class InfoSettings extends StatelessWidget { MaterialPageRoute( builder: (context) => LicensePage( applicationIcon: Padding( - padding: const EdgeInsets.all(5), - child: MediaQuery.of(context).platformBrightness == Brightness.light - ? Image.asset( - "assets/images/meincantor-big.png", - width: 196) - : Image.asset( - "assets/images/meincantor-big-dark.png", - width: 196) - ), + padding: const EdgeInsets.all(5), + child: MediaQuery.of(context) + .platformBrightness == + Brightness.light + ? Image.asset( + "assets/images/meincantor-big.png", + width: 196) + : Image.asset( + "assets/images/meincantor-big-dark.png", + width: 196)), applicationVersion: version, )), ); diff --git a/lib/Settings/Pages/plan_settings.dart b/lib/Settings/Pages/plan_settings.dart index 1b8c39e..8656b36 100644 --- a/lib/Settings/Pages/plan_settings.dart +++ b/lib/Settings/Pages/plan_settings.dart @@ -1,3 +1,19 @@ +// GCG.MeinCantor - Die Schulplattform für Cantorianer. +// Copyright (C) 2021-2022 Georg-Cantor-Gymnasium Halle (Saale) + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import 'dart:convert'; import 'package:meincantor/main.dart'; diff --git a/lib/Settings/Pages/service_settings.dart b/lib/Settings/Pages/service_settings.dart index 6ca0056..82ee2b9 100644 --- a/lib/Settings/Pages/service_settings.dart +++ b/lib/Settings/Pages/service_settings.dart @@ -1,3 +1,19 @@ +// GCG.MeinCantor - Die Schulplattform für Cantorianer. +// Copyright (C) 2021-2022 Georg-Cantor-Gymnasium Halle (Saale) + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import 'package:flutter/material.dart'; class ServiceSettings extends StatelessWidget { diff --git a/lib/Settings/Pages/user_settings.dart b/lib/Settings/Pages/user_settings.dart index 717b0d9..0042a8f 100644 --- a/lib/Settings/Pages/user_settings.dart +++ b/lib/Settings/Pages/user_settings.dart @@ -1,3 +1,19 @@ +// GCG.MeinCantor - Die Schulplattform für Cantorianer. +// Copyright (C) 2021-2022 Georg-Cantor-Gymnasium Halle (Saale) + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import 'package:flutter/material.dart'; import 'package:material_design_icons_flutter/material_design_icons_flutter.dart'; import 'package:meincantor/networking.dart'; @@ -183,15 +199,14 @@ class AccountConsole extends StatefulWidget { } class AccountConsoleState extends State { - @override Widget build(BuildContext context) { return WebViewX( height: MediaQuery.of(context).size.height, - initialContent: 'https://mein.cantorgymnasium.de/auth/realms/GCG.MeinCantor/account/', + initialContent: + 'https://mein.cantorgymnasium.de/auth/realms/GCG.MeinCantor/account/', initialSourceType: SourceType.url, javascriptMode: JavascriptMode.unrestricted, - width: MediaQuery.of(context).size.width - ); + width: MediaQuery.of(context).size.width); } } diff --git a/lib/Settings/dashboard.dart b/lib/Settings/dashboard.dart index 0c83aba..c4d18ca 100644 --- a/lib/Settings/dashboard.dart +++ b/lib/Settings/dashboard.dart @@ -1,3 +1,19 @@ +// GCG.MeinCantor - Die Schulplattform für Cantorianer. +// Copyright (C) 2021-2022 Georg-Cantor-Gymnasium Halle (Saale) + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import 'package:flutter/material.dart'; import 'package:material_design_icons_flutter/material_design_icons_flutter.dart'; diff --git a/lib/background_fetch.dart b/lib/background_fetch.dart index 11b7da0..ad22841 100644 --- a/lib/background_fetch.dart +++ b/lib/background_fetch.dart @@ -1,3 +1,19 @@ +// GCG.MeinCantor - Die Schulplattform für Cantorianer. +// Copyright (C) 2021-2022 Georg-Cantor-Gymnasium Halle (Saale) + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import 'dart:convert'; import 'package:flutter_local_notifications/flutter_local_notifications.dart'; diff --git a/lib/cache_manager.dart b/lib/cache_manager.dart index 1ebb3b3..72459f7 100644 --- a/lib/cache_manager.dart +++ b/lib/cache_manager.dart @@ -1,3 +1,19 @@ +// GCG.MeinCantor - Die Schulplattform für Cantorianer. +// Copyright (C) 2021-2022 Georg-Cantor-Gymnasium Halle (Saale) + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import 'dart:convert'; import 'package:flutter_cache_manager/flutter_cache_manager.dart'; diff --git a/lib/dashboard.dart b/lib/dashboard.dart index 5444e89..89abb68 100644 --- a/lib/dashboard.dart +++ b/lib/dashboard.dart @@ -1,3 +1,19 @@ +// GCG.MeinCantor - Die Schulplattform für Cantorianer. +// Copyright (C) 2021-2022 Georg-Cantor-Gymnasium Halle (Saale) + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import 'dart:convert'; import 'dart:math'; @@ -12,7 +28,6 @@ import 'package:meincantor/networking.dart'; import 'package:meincantor/login.dart'; import 'package:flutter/material.dart'; -import 'package:flutter/cupertino.dart'; import 'package:google_fonts/google_fonts.dart'; import 'package:intl/intl.dart'; import 'package:shared_preferences/shared_preferences.dart'; diff --git a/lib/login.dart b/lib/login.dart index a5c57c6..0b18fb3 100644 --- a/lib/login.dart +++ b/lib/login.dart @@ -1,7 +1,22 @@ +// GCG.MeinCantor - Die Schulplattform für Cantorianer. +// Copyright (C) 2021-2022 Georg-Cantor-Gymnasium Halle (Saale) + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import 'dart:convert'; import 'package:flutter/material.dart'; -import 'package:flutter/cupertino.dart'; import 'package:http/http.dart'; import 'package:material_design_icons_flutter/material_design_icons_flutter.dart'; import 'package:shared_preferences/shared_preferences.dart'; diff --git a/lib/main.dart b/lib/main.dart index cdb3a93..bd27791 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -1,3 +1,19 @@ +// GCG.MeinCantor - Die Schulplattform für Cantorianer. +// Copyright (C) 2021-2022 Georg-Cantor-Gymnasium Halle (Saale) + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import 'package:flutter/material.dart'; import 'package:flutter_local_notifications/flutter_local_notifications.dart'; import 'package:shared_preferences/shared_preferences.dart'; @@ -28,14 +44,12 @@ void main() async { // initialise the plugin. app_icon needs to be a added as a drawable resource to the Android head project const AndroidInitializationSettings initializationSettingsAndroid = AndroidInitializationSettings('app_icon'); - const IOSInitializationSettings initializationSettingsIOS = - IOSInitializationSettings(); - const MacOSInitializationSettings initializationSettingsMacOS = - MacOSInitializationSettings(); + const DarwinInitializationSettings initializationSettingsDarwin = + DarwinInitializationSettings(); const InitializationSettings initializationSettings = InitializationSettings( android: initializationSettingsAndroid, - iOS: initializationSettingsIOS, - macOS: initializationSettingsMacOS); + iOS: initializationSettingsDarwin, + macOS: initializationSettingsDarwin); await flutterLocalNotificationsPlugin.initialize(initializationSettings); BackgroundFetch.registerHeadlessTask(backgroundFetchHeadlessTask); } diff --git a/lib/networking.dart b/lib/networking.dart index 02d3867..a02ca53 100644 --- a/lib/networking.dart +++ b/lib/networking.dart @@ -1,3 +1,19 @@ +// GCG.MeinCantor - Die Schulplattform für Cantorianer. +// Copyright (C) 2021-2022 Georg-Cantor-Gymnasium Halle (Saale) + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import 'dart:convert'; import 'dart:io'; diff --git a/lib/news.dart b/lib/news.dart index e7e5189..7d34d31 100644 --- a/lib/news.dart +++ b/lib/news.dart @@ -1,3 +1,19 @@ +// GCG.MeinCantor - Die Schulplattform für Cantorianer. +// Copyright (C) 2021-2022 Georg-Cantor-Gymnasium Halle (Saale) + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import 'dart:convert'; import 'package:meincantor/networking.dart'; import 'package:flutter/material.dart'; diff --git a/lib/presets/colors.dart b/lib/presets/colors.dart index f34417c..8388a0c 100644 --- a/lib/presets/colors.dart +++ b/lib/presets/colors.dart @@ -1,3 +1,19 @@ +// GCG.MeinCantor - Die Schulplattform für Cantorianer. +// Copyright (C) 2021-2022 Georg-Cantor-Gymnasium Halle (Saale) + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import 'package:flutter/material.dart'; Map colors = { diff --git a/lib/presets/subjects.dart b/lib/presets/subjects.dart index 45283c5..ae03d55 100644 --- a/lib/presets/subjects.dart +++ b/lib/presets/subjects.dart @@ -1,3 +1,19 @@ +// GCG.MeinCantor - Die Schulplattform für Cantorianer. +// Copyright (C) 2021-2022 Georg-Cantor-Gymnasium Halle (Saale) + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + dynamic subjects = { '---': '---', 'Bio': 'Biologie', diff --git a/lib/presets/teachers.dart b/lib/presets/teachers.dart index e348319..f37c1ee 100644 --- a/lib/presets/teachers.dart +++ b/lib/presets/teachers.dart @@ -1,3 +1,19 @@ +// GCG.MeinCantor - Die Schulplattform für Cantorianer. +// Copyright (C) 2021-2022 Georg-Cantor-Gymnasium Halle (Saale) + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + dynamic teachers = { 'Poli': 'Herr Polity', 'Zura': 'Frau Zuralski', diff --git a/lib/raumuebersicht.dart b/lib/raumuebersicht.dart index 0f5659b..ad89c8b 100644 --- a/lib/raumuebersicht.dart +++ b/lib/raumuebersicht.dart @@ -1,3 +1,19 @@ +// GCG.MeinCantor - Die Schulplattform für Cantorianer. +// Copyright (C) 2021-2022 Georg-Cantor-Gymnasium Halle (Saale) + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import 'package:flutter/material.dart'; class RoomOverview extends StatelessWidget { diff --git a/lib/saved.dart b/lib/saved.dart index 01c82b4..26e16b8 100644 --- a/lib/saved.dart +++ b/lib/saved.dart @@ -1,155 +1,153 @@ // SizedBox( - // width: 170, - // child: GestureDetector( - // onTap: () async { - // Navigator.push( - // context, - // MaterialPageRoute(builder: (context) => const SB()), - // ); - // }, - // child: Card( - // shape: RoundedRectangleBorder( - // borderRadius: BorderRadius.circular(10), - // ), - // child: const Padding( - // padding: EdgeInsets.all(10), - // child: ListTile( - // title: Padding( - // padding: EdgeInsets.fromLTRB(0, 0, 0, 10), - // child: Icon( - // MdiIcons.libraryShelves, - // color: Palette.accent, - // size: 48, - // ), - // ), - // subtitle: Center( - // child: Padding( - // padding: EdgeInsets.fromLTRB(0, 10, 0, 0), - // child: Text( - // 'Schulbibliothek', - // ), - // ), - // ), - // ), - // )), - // ), - // ), - // SizedBox( - // width: 170, - // child: GestureDetector( - // onTap: () async { - // Navigator.push( - // context, - // MaterialPageRoute(builder: (context) => const SC()), - // ); - // }, - // child: Card( - // shape: RoundedRectangleBorder( - // borderRadius: BorderRadius.circular(10), - // ), - // child: const Padding( - // padding: EdgeInsets.all(10), - // child: ListTile( - // title: Padding( - // padding: EdgeInsets.fromLTRB(0, 0, 0, 10), - // child: Icon( - // MdiIcons.laptop, - // color: Palette.accent, - // size: 48, - // ), - // ), - // subtitle: Center( - // child: Padding( - // padding: EdgeInsets.fromLTRB(0, 10, 0, 0), - // child: Text( - // 'Schulcomputer', - // ), - // ), - // ), - // ), - // )), - // ), - // ), - // SizedBox( - // width: 170, - // child: GestureDetector( - // onTap: () async { - // Navigator.push( - // context, - // MaterialPageRoute( - // builder: (context) => const RoomOverview()), - // ); - // }, - // child: Card( - // shape: RoundedRectangleBorder( - // borderRadius: BorderRadius.circular(10), - // ), - // child: const Padding( - // padding: EdgeInsets.all(10), - // child: ListTile( - // title: Padding( - // padding: EdgeInsets.fromLTRB(0, 0, 0, 10), - // child: Icon( - // MdiIcons.door, - // color: Palette.accent, - // size: 48, - // ), - // ), - // subtitle: Center( - // child: Padding( - // padding: EdgeInsets.fromLTRB(0, 10, 0, 0), - // child: Text( - // 'Raumübersicht', - // ), - // ), - // ), - // ), - // )), - // ), - // ), +// width: 170, +// child: GestureDetector( +// onTap: () async { +// Navigator.push( +// context, +// MaterialPageRoute(builder: (context) => const SB()), +// ); +// }, +// child: Card( +// shape: RoundedRectangleBorder( +// borderRadius: BorderRadius.circular(10), +// ), +// child: const Padding( +// padding: EdgeInsets.all(10), +// child: ListTile( +// title: Padding( +// padding: EdgeInsets.fromLTRB(0, 0, 0, 10), +// child: Icon( +// MdiIcons.libraryShelves, +// color: Palette.accent, +// size: 48, +// ), +// ), +// subtitle: Center( +// child: Padding( +// padding: EdgeInsets.fromLTRB(0, 10, 0, 0), +// child: Text( +// 'Schulbibliothek', +// ), +// ), +// ), +// ), +// )), +// ), +// ), +// SizedBox( +// width: 170, +// child: GestureDetector( +// onTap: () async { +// Navigator.push( +// context, +// MaterialPageRoute(builder: (context) => const SC()), +// ); +// }, +// child: Card( +// shape: RoundedRectangleBorder( +// borderRadius: BorderRadius.circular(10), +// ), +// child: const Padding( +// padding: EdgeInsets.all(10), +// child: ListTile( +// title: Padding( +// padding: EdgeInsets.fromLTRB(0, 0, 0, 10), +// child: Icon( +// MdiIcons.laptop, +// color: Palette.accent, +// size: 48, +// ), +// ), +// subtitle: Center( +// child: Padding( +// padding: EdgeInsets.fromLTRB(0, 10, 0, 0), +// child: Text( +// 'Schulcomputer', +// ), +// ), +// ), +// ), +// )), +// ), +// ), +// SizedBox( +// width: 170, +// child: GestureDetector( +// onTap: () async { +// Navigator.push( +// context, +// MaterialPageRoute( +// builder: (context) => const RoomOverview()), +// ); +// }, +// child: Card( +// shape: RoundedRectangleBorder( +// borderRadius: BorderRadius.circular(10), +// ), +// child: const Padding( +// padding: EdgeInsets.all(10), +// child: ListTile( +// title: Padding( +// padding: EdgeInsets.fromLTRB(0, 0, 0, 10), +// child: Icon( +// MdiIcons.door, +// color: Palette.accent, +// size: 48, +// ), +// ), +// subtitle: Center( +// child: Padding( +// padding: EdgeInsets.fromLTRB(0, 10, 0, 0), +// child: Text( +// 'Raumübersicht', +// ), +// ), +// ), +// ), +// )), +// ), +// ), - - - // ListTile( - // leading: - // const Icon(MdiIcons.timetable, color: Colors.orangeAccent), - // trailing: const Icon(Icons.arrow_forward_ios, size: 16), - // title: const Text("Plan"), - // subtitle: const Text("Kurse/Fächer, Farben & mehr"), - // onTap: () { - // Navigator.push( - // context, - // MaterialPageRoute(builder: (context) => const PlanSettings()), - // ); - // }, - // ), - // ListTile( - // leading: const Icon(Icons.color_lens_outlined, - // color: Colors.pinkAccent), - // trailing: const Icon(Icons.arrow_forward_ios, size: 16), - // title: const Text("Aussehen"), - // subtitle: const Text("Widgets, Design & mehr"), - // onTap: () { - // Navigator.push( - // context, - // MaterialPageRoute( - // builder: (context) => const AppearanceSettings()), - // ); - // }, - // ), - // ListTile( - // leading: const Icon(MdiIcons.server, color: Colors.lightGreen), - // trailing: const Icon(Icons.arrow_forward_ios, size: 16), - // title: const Text("Dienste"), - // subtitle: const Text("Konten, Plattformen & mehr"), - // onTap: () { - // Navigator.push( - // context, - // MaterialPageRoute( - // builder: (context) => const ServiceSettings()), - // ); - // }, - // ), +// ListTile( +// leading: +// const Icon(MdiIcons.timetable, color: Colors.orangeAccent), +// trailing: const Icon(Icons.arrow_forward_ios, size: 16), +// title: const Text("Plan"), +// subtitle: const Text("Kurse/Fächer, Farben & mehr"), +// onTap: () { +// Navigator.push( +// context, +// MaterialPageRoute(builder: (context) => const PlanSettings()), +// ); +// }, +// ), +// ListTile( +// leading: const Icon(Icons.color_lens_outlined, +// color: Colors.pinkAccent), +// trailing: const Icon(Icons.arrow_forward_ios, size: 16), +// title: const Text("Aussehen"), +// subtitle: const Text("Widgets, Design & mehr"), +// onTap: () { +// Navigator.push( +// context, +// MaterialPageRoute( +// builder: (context) => const AppearanceSettings()), +// ); +// }, +// ), +// ListTile( +// leading: const Icon(MdiIcons.server, color: Colors.lightGreen), +// trailing: const Icon(Icons.arrow_forward_ios, size: 16), +// title: const Text("Dienste"), +// subtitle: const Text("Konten, Plattformen & mehr"), +// onTap: () { +// Navigator.push( +// context, +// MaterialPageRoute( +// builder: (context) => const ServiceSettings()), +// ); +// }, +// ), // class PlanSettings extends StatelessWidget { // const PlanSettings({Key? key}) : super(key: key); @@ -195,4 +193,4 @@ // ], // )); // } -// } \ No newline at end of file +// } diff --git a/lib/schuelerzeitung.dart b/lib/schuelerzeitung.dart index 4de519f..d37d94b 100644 --- a/lib/schuelerzeitung.dart +++ b/lib/schuelerzeitung.dart @@ -1,3 +1,19 @@ +// GCG.MeinCantor - Die Schulplattform für Cantorianer. +// Copyright (C) 2021-2022 Georg-Cantor-Gymnasium Halle (Saale) + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import 'dart:convert'; import 'package:meincantor/networking.dart'; import 'package:flutter/material.dart'; diff --git a/lib/schulbibliothek.dart b/lib/schulbibliothek.dart index 5073a90..833dd2b 100644 --- a/lib/schulbibliothek.dart +++ b/lib/schulbibliothek.dart @@ -1,3 +1,19 @@ +// GCG.MeinCantor - Die Schulplattform für Cantorianer. +// Copyright (C) 2021-2022 Georg-Cantor-Gymnasium Halle (Saale) + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import 'package:flutter/material.dart'; class SB extends StatelessWidget { diff --git a/lib/schulcomputer.dart b/lib/schulcomputer.dart index 7f754c5..cf5ca96 100644 --- a/lib/schulcomputer.dart +++ b/lib/schulcomputer.dart @@ -1,3 +1,19 @@ +// GCG.MeinCantor - Die Schulplattform für Cantorianer. +// Copyright (C) 2021-2022 Georg-Cantor-Gymnasium Halle (Saale) + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import 'package:flutter/material.dart'; class SC extends StatelessWidget { diff --git a/lib/timetable.dart b/lib/timetable.dart index b62c255..f090723 100644 --- a/lib/timetable.dart +++ b/lib/timetable.dart @@ -1,3 +1,19 @@ +// GCG.MeinCantor - Die Schulplattform für Cantorianer. +// Copyright (C) 2021-2022 Georg-Cantor-Gymnasium Halle (Saale) + +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published +// by the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. + +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + import 'package:meincantor/presets/teachers.dart'; import 'package:meincantor/presets/subjects.dart'; import 'package:meincantor/presets/colors.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index c183dfd..9ae3356 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -15,7 +15,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html -version: 1.0.0 +version: 1.0.1 environment: sdk: ">=2.12.0 <3.0.0" @@ -32,21 +32,21 @@ dependencies: # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. # cupertino_icons: ^1.0.2 - shared_preferences: ^2.0.6 - http: ^0.13.3 - google_fonts: ^2.1.0 - time: ^2.0.0 - flutter_launcher_icons: ^0.9.1 - material_design_icons_flutter: ^5.0.5955-rc.1 + shared_preferences: ^2.0.12 + http: ^0.13.4 + google_fonts: ^2.2.0 + time: ^2.1.0 + flutter_launcher_icons: ^0.9.2 + material_design_icons_flutter: ^5.0.6595 cyclop: ^0.5.2 - flutter_markdown: ^0.6.8 - flutter_cache_manager: ^3.2.0 + flutter_markdown: ^0.6.9 + flutter_cache_manager: ^3.3.0 intl: ^0.17.0 - url_launcher: ^6.0.17 + url_launcher: ^6.0.18 flutter_linkify: ^5.0.2 - flutter_svg: ^1.0.0 + flutter_svg: ^1.0.1 webviewx: ^0.2.1 - flutter_local_notifications: ^10.0.0-dev.1 + flutter_local_notifications: ^10.0.0-dev.3 background_fetch: ^1.0.3 flutter_icons: @@ -67,7 +67,7 @@ dev_dependencies: # activated in the `analysis_options.yaml` file located at the root of your # package. See that file for information about deactivating specific lint # rules and activating additional ones. - flutter_lints: ^1.0.0 + flutter_lints: ^1.0.4 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec diff --git a/web/favicon.png b/web/favicon.png index 8aaa46a..1e5855a 100644 Binary files a/web/favicon.png and b/web/favicon.png differ diff --git a/web/icons/Icon-192.png b/web/icons/Icon-192.png index b749bfe..2f74d25 100644 Binary files a/web/icons/Icon-192.png and b/web/icons/Icon-192.png differ diff --git a/web/icons/Icon-512.png b/web/icons/Icon-512.png index 88cfd48..f7e2970 100644 Binary files a/web/icons/Icon-512.png and b/web/icons/Icon-512.png differ diff --git a/web/icons/Icon-maskable-192.png b/web/icons/Icon-maskable-192.png index eb9b4d7..148a51d 100644 Binary files a/web/icons/Icon-maskable-192.png and b/web/icons/Icon-maskable-192.png differ diff --git a/web/icons/Icon-maskable-512.png b/web/icons/Icon-maskable-512.png index d69c566..3beba4c 100644 Binary files a/web/icons/Icon-maskable-512.png and b/web/icons/Icon-maskable-512.png differ