Fix flutter analyze

This commit is contained in:
Vishesh Handa
2020-06-09 18:56:51 +02:00
parent 303192d9d5
commit ddad699b25
2 changed files with 1 additions and 9 deletions

View File

@ -20,13 +20,6 @@ class OAuthAppState extends State<OAuthApp> {
super.initState();
githost = createGitHost(GitHostType.GitHub);
githost.init((GitHostException e) {
if (e != null) {
print("Got exeception: $e");
} else {
print("GitHost initialized and has access code");
}
});
}
@override
@ -41,7 +34,7 @@ class OAuthAppState extends State<OAuthApp> {
RaisedButton(
child: const Text("Open OAuth URL"),
onPressed: () {
githost.launchOAuthScreen();
githost.init();
},
),
RaisedButton(

View File

@ -1,5 +1,4 @@
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:function_types/function_types.dart';
import 'package:gitjournal/analytics.dart';