This commit is contained in:
unknown
2021-08-31 12:35:33 +02:00
parent 20f8e201f8
commit 58fab2acf1
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);
}