From 9016bee45ff81f3f6306f064e12b3210e5e9b110 Mon Sep 17 00:00:00 2001 From: v7lin Date: Fri, 15 Mar 2019 14:08:14 +0800 Subject: [PATCH] analyze --- example/analysis_options.yaml | 2 +- example/lib/main.dart | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/example/analysis_options.yaml b/example/analysis_options.yaml index c7746e6..9fa477b 100644 --- a/example/analysis_options.yaml +++ b/example/analysis_options.yaml @@ -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 diff --git a/example/lib/main.dart b/example/lib/main.dart index 58834fd..9976fbd 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -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 { 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 &&