mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-30 03:19:11 +08:00
Fix flutter analyze
This commit is contained in:
@ -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(
|
||||
|
@ -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';
|
||||
|
Reference in New Issue
Block a user