cleanup
This commit is contained in:
parent
20f8e201f8
commit
58fab2acf1
@ -20,7 +20,7 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:filcnaplo/api/nonce.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 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);
|
Nonce nonceEncoder = Nonce(key: [53, 75, 109, 112, 109, 103, 100, 53, 102, 74], nonce: nonce);
|
||||||
|
@ -8,7 +8,6 @@ import 'package:package_info_plus/package_info_plus.dart';
|
|||||||
class UpdateProvider extends ChangeNotifier {
|
class UpdateProvider extends ChangeNotifier {
|
||||||
// Private
|
// Private
|
||||||
late List<Release> _releases;
|
late List<Release> _releases;
|
||||||
late BuildContext _context;
|
|
||||||
bool _available = false;
|
bool _available = false;
|
||||||
bool get available => _available && _releases.length > 0;
|
bool get available => _available && _releases.length > 0;
|
||||||
PackageInfo? _packageInfo;
|
PackageInfo? _packageInfo;
|
||||||
@ -21,7 +20,6 @@ class UpdateProvider extends ChangeNotifier {
|
|||||||
required BuildContext context,
|
required BuildContext context,
|
||||||
}) {
|
}) {
|
||||||
_releases = List.castFrom(initialReleases);
|
_releases = List.castFrom(initialReleases);
|
||||||
_context = context;
|
|
||||||
PackageInfo.fromPlatform().then((value) => _packageInfo = value);
|
PackageInfo.fromPlatform().then((value) => _packageInfo = value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import 'dart:async';
|
import 'dart:async';
|
||||||
import 'dart:convert';
|
|
||||||
import 'dart:io';
|
import 'dart:io';
|
||||||
import 'dart:typed_data';
|
import 'dart:typed_data';
|
||||||
|
|
||||||
|
@ -7,25 +7,6 @@ import 'package:filcnaplo/app.dart';
|
|||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:filcnaplo_mobile_ui/screens/error_screen.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 {
|
void main() async {
|
||||||
// Initalize
|
// Initalize
|
||||||
WidgetsBinding binding = WidgetsFlutterBinding.ensureInitialized();
|
WidgetsBinding binding = WidgetsFlutterBinding.ensureInitialized();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user