mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-07-01 03:57:37 +08:00
Fix flutter analyze
This commit is contained in:
@ -20,13 +20,6 @@ class OAuthAppState extends State<OAuthApp> {
|
|||||||
super.initState();
|
super.initState();
|
||||||
|
|
||||||
githost = createGitHost(GitHostType.GitHub);
|
githost = createGitHost(GitHostType.GitHub);
|
||||||
githost.init((GitHostException e) {
|
|
||||||
if (e != null) {
|
|
||||||
print("Got exeception: $e");
|
|
||||||
} else {
|
|
||||||
print("GitHost initialized and has access code");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@ -41,7 +34,7 @@ class OAuthAppState extends State<OAuthApp> {
|
|||||||
RaisedButton(
|
RaisedButton(
|
||||||
child: const Text("Open OAuth URL"),
|
child: const Text("Open OAuth URL"),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
githost.launchOAuthScreen();
|
githost.init();
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
RaisedButton(
|
RaisedButton(
|
||||||
|
@ -1,5 +1,4 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter/services.dart';
|
|
||||||
import 'package:function_types/function_types.dart';
|
import 'package:function_types/function_types.dart';
|
||||||
|
|
||||||
import 'package:gitjournal/analytics.dart';
|
import 'package:gitjournal/analytics.dart';
|
||||||
|
Reference in New Issue
Block a user