analyze
This commit is contained in:
parent
1ec90dbf74
commit
9016bee45f
@ -25,7 +25,7 @@ linter:
|
|||||||
- camel_case_types
|
- camel_case_types
|
||||||
- empty_constructor_bodies
|
- empty_constructor_bodies
|
||||||
- avoid_init_to_null
|
- avoid_init_to_null
|
||||||
- constant_identifier_names
|
# - constant_identifier_names
|
||||||
- one_member_abstracts
|
- one_member_abstracts
|
||||||
- slash_for_doc_comments
|
- slash_for_doc_comments
|
||||||
- sort_constructors_first
|
- sort_constructors_first
|
||||||
|
@ -5,7 +5,7 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:flutter/services.dart';
|
import 'package:flutter/services.dart';
|
||||||
import 'package:fake_weibo/fake_weibo.dart';
|
import 'package:fake_weibo/fake_weibo.dart';
|
||||||
|
|
||||||
const String _weiboAppKey = '3393861383';
|
const String _WEIBO_APP_KEY = '3393861383';
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
runZoned(() {
|
runZoned(() {
|
||||||
@ -26,7 +26,7 @@ class MyApp extends StatelessWidget {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
FakeWeibo weibo = FakeWeibo(
|
FakeWeibo weibo = FakeWeibo(
|
||||||
appKey: _weiboAppKey,
|
appKey: _WEIBO_APP_KEY,
|
||||||
scope: [
|
scope: [
|
||||||
FakeWeiboScope.ALL,
|
FakeWeiboScope.ALL,
|
||||||
],
|
],
|
||||||
@ -117,7 +117,7 @@ class _HomeState extends State<Home> {
|
|||||||
if (_authResp != null &&
|
if (_authResp != null &&
|
||||||
_authResp.errorCode == FakeWeiboErrorCode.SUCCESS) {
|
_authResp.errorCode == FakeWeiboErrorCode.SUCCESS) {
|
||||||
FakeWeiboApiUserResp userResp = await widget.weibo.getUserInfo(
|
FakeWeiboApiUserResp userResp = await widget.weibo.getUserInfo(
|
||||||
appkey: _weiboAppKey,
|
appkey: _WEIBO_APP_KEY,
|
||||||
userId: _authResp.userId,
|
userId: _authResp.userId,
|
||||||
accessToken: _authResp.accessToken);
|
accessToken: _authResp.accessToken);
|
||||||
if (userResp != null &&
|
if (userResp != null &&
|
||||||
|
Loading…
Reference in New Issue
Block a user