This commit is contained in:
unknown 2021-08-31 12:35:33 +02:00
parent 20f8e201f8
commit 58fab2acf1
No known key found for this signature in database
GPG Key ID: 1D070E0B09CFB257
4 changed files with 1 additions and 23 deletions

View File

@ -20,7 +20,7 @@ import 'package:flutter/material.dart';
import 'package:provider/provider.dart';
import 'package:filcnaplo/api/nonce.dart';
enum LoginState { normal, inProgress, missingFields, invalidGrant, success, failed }
enum LoginState { missingFields, invalidGrant, failed, normal, inProgress, success }
Nonce getNonce(BuildContext context, String nonce, String username, String instituteCode) {
Nonce nonceEncoder = Nonce(key: [53, 75, 109, 112, 109, 103, 100, 53, 102, 74], nonce: nonce);

View File

@ -8,7 +8,6 @@ import 'package:package_info_plus/package_info_plus.dart';
class UpdateProvider extends ChangeNotifier {
// Private
late List<Release> _releases;
late BuildContext _context;
bool _available = false;
bool get available => _available && _releases.length > 0;
PackageInfo? _packageInfo;
@ -21,7 +20,6 @@ class UpdateProvider extends ChangeNotifier {
required BuildContext context,
}) {
_releases = List.castFrom(initialReleases);
_context = context;
PackageInfo.fromPlatform().then((value) => _packageInfo = value);
}

View File

@ -1,5 +1,4 @@
import 'dart:async';
import 'dart:convert';
import 'dart:io';
import 'dart:typed_data';

View File

@ -7,25 +7,6 @@ import 'package:filcnaplo/app.dart';
import 'package:flutter/services.dart';
import 'package:filcnaplo_mobile_ui/screens/error_screen.dart';
/*
* TODO: public beta checklist
*
* Pages:
* - [x] Home
* ~~- [ ] search~~
* - [x] user data
* - [x] greeting
* - [x] Grades
* - [x] Timetable
* - [x] Messages
* - [x] Absences
*
* - [ ] i18n
* - [x] auto updater
* - [x] news
* - [ ] settings (about)
*/
void main() async {
// Initalize
WidgetsBinding binding = WidgetsFlutterBinding.ensureInitialized();