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