modfiy: 批量消除 dart analysis 的警告

This commit is contained in:
ryan
2019-08-22 19:30:10 +08:00
parent 799ae20ce7
commit 7859052c89
32 changed files with 138 additions and 350 deletions

View File

@ -5,7 +5,7 @@ import 'package:flutter_go/model/collection.dart';
import 'package:flutter_go/model/version.dart';
import 'package:flutter_go/model/widget.dart';
import 'package:package_info/package_info.dart';
import 'package:flutter_go/model/responseData.dart';
/// import 'package:flutter_go/model/responseData.dart';
import './net_utils.dart';
import '../model/user_info.dart';
@ -117,6 +117,7 @@ class DataUtils {
}
} catch (error) {
print('获取组件树 error $error');
return [];
}
}
@ -128,6 +129,7 @@ class DataUtils {
return response != null && response['hasCollected'];
} catch (error) {
print('校验收藏 error $error');
return false;
}
}