diff --git a/example/lib/main.dart b/example/lib/main.dart index 0997527..a4bc361 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -25,6 +25,7 @@ import 'package:zhiying_official/register.dart'; import 'package:zhiying_base_widget/zhiying_base_widget.dart'; import 'package:zhiying_acquisition/register.dart'; + void main() { FlutterError.onError = (FlutterErrorDetails details) { FlutterError.dumpErrorToConsole(details); @@ -49,7 +50,11 @@ class _MyAppState extends State { return Center( child: Text( "" + erroStr, - style: Theme.of(context).textTheme.title.copyWith(color: Colors.grey[200]), + style: Theme + .of(context) + .textTheme + .title + .copyWith(color: Colors.grey[200]), ), ); } @@ -67,6 +72,7 @@ class _MyAppState extends State { EquityCardRegister.init(); OfficialRegister.init(); AcquisitionRegister.init(); + print('初始化百川'); FlutterAlibc.initAlibc(version: "", appName: "").then((result) { print("白川" + '${result.errorCode} ${result.errorMessage}'); @@ -79,7 +85,6 @@ class _MyAppState extends State { //debug app不更新 app更新插件 AppUpdateUtil.initXUpdate(); } - } @override @@ -130,8 +135,8 @@ class _MyAppState extends State { return locale; }, home: LaunchPage( - // builder: (context) => HomePage(), - ), + // builder: (context) => HomePage(), + ), ), ), ); diff --git a/example/pubspec.yaml b/example/pubspec.yaml index f97c094..8ecd814 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -34,6 +34,8 @@ dev_dependencies: path: ../../zhiying_official zhiying_acquisition: path: ../../zhiying_acquisition + zhiying_credit_card: + path: ../../zhiying_credit_card #微信导师 zhiying_wechat_teacher: #path: ../zhiying_wechat_teacher diff --git a/lib/pages/home_page/home_page.dart b/lib/pages/home_page/home_page.dart index a463313..b897b76 100644 --- a/lib/pages/home_page/home_page.dart +++ b/lib/pages/home_page/home_page.dart @@ -4,7 +4,6 @@ import 'dart:convert'; import 'dart:io'; import 'package:cached_network_image/cached_network_image.dart'; -import 'package:connectivity/connectivity.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; diff --git a/lib/pages/launch_page/launch_page.dart b/lib/pages/launch_page/launch_page.dart index 6514547..d0b3795 100644 --- a/lib/pages/launch_page/launch_page.dart +++ b/lib/pages/launch_page/launch_page.dart @@ -3,7 +3,6 @@ import 'dart:async'; import 'dart:io'; import 'dart:typed_data'; -import 'package:connectivity/connectivity.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter/material.dart'; diff --git a/pubspec.yaml b/pubspec.yaml index 4d8942f..414e29b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -24,7 +24,7 @@ dependencies: ref: '0.0.1' image_picker: ^0.6.7+3 tab_indicator_styler: 1.0.0 - connectivity: ^0.4.9+3 + image_cropper: git: url: 'http://192.168.0.138:3000/FnuoOS_Flutter_Components/Image_Cropper.git'