fix
This commit is contained in:
@@ -155,8 +155,6 @@ class GradeProvider with ChangeNotifier {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
print(gradeStreak);
|
|
||||||
|
|
||||||
user.gradeStreak = gradeStreak;
|
user.gradeStreak = gradeStreak;
|
||||||
notifyListeners();
|
notifyListeners();
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:provider/provider.dart';
|
import 'package:provider/provider.dart';
|
||||||
import 'package:refilc_kreta_api/client/api.dart';
|
import 'package:refilc_kreta_api/client/api.dart';
|
||||||
@@ -60,7 +61,10 @@ class _KretenLoginScreenState extends State<KretenLoginScreen> {
|
|||||||
"grant_type": "authorization_code",
|
"grant_type": "authorization_code",
|
||||||
});
|
});
|
||||||
if (res != null) {
|
if (res != null) {
|
||||||
print(res);
|
if (kDebugMode) {
|
||||||
|
print(res);
|
||||||
|
}
|
||||||
|
|
||||||
// if (res.containsKey("error")) {
|
// if (res.containsKey("error")) {
|
||||||
// if (res["error"] == "invalid_grant") {
|
// if (res["error"] == "invalid_grant") {
|
||||||
// print("ERROR: invalid_grant");
|
// print("ERROR: invalid_grant");
|
||||||
|
|||||||
Reference in New Issue
Block a user