From ddad699b259bafe6c7ed630e7afc2eb38b7825e6 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Tue, 9 Jun 2020 18:56:51 +0200 Subject: [PATCH] Fix flutter analyze --- lib/oauthapp.dart | 9 +-------- lib/setup/autoconfigure.dart | 1 - 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/oauthapp.dart b/lib/oauthapp.dart index a9ada6fc..3eadda38 100644 --- a/lib/oauthapp.dart +++ b/lib/oauthapp.dart @@ -20,13 +20,6 @@ class OAuthAppState extends State { 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 { RaisedButton( child: const Text("Open OAuth URL"), onPressed: () { - githost.launchOAuthScreen(); + githost.init(); }, ), RaisedButton( diff --git a/lib/setup/autoconfigure.dart b/lib/setup/autoconfigure.dart index 0d8869ad..a1427346 100644 --- a/lib/setup/autoconfigure.dart +++ b/lib/setup/autoconfigure.dart @@ -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';