Browse Source

1.移除网络检测的库

tags/0.0.10
“yanghuaxuan” 3 years ago
parent
commit
13d1a512a5
5 changed files with 12 additions and 7 deletions
  1. +9
    -4
      example/lib/main.dart
  2. +2
    -0
      example/pubspec.yaml
  3. +0
    -1
      lib/pages/home_page/home_page.dart
  4. +0
    -1
      lib/pages/launch_page/launch_page.dart
  5. +1
    -1
      pubspec.yaml

+ 9
- 4
example/lib/main.dart View File

@@ -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<MyApp> {
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<MyApp> {
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<MyApp> {
//debug app不更新 app更新插件
AppUpdateUtil.initXUpdate();
}

}

@override
@@ -130,8 +135,8 @@ class _MyAppState extends State<MyApp> {
return locale;
},
home: LaunchPage(
// builder: (context) => HomePage(),
),
// builder: (context) => HomePage(),
),
),
),
);


+ 2
- 0
example/pubspec.yaml View File

@@ -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


+ 0
- 1
lib/pages/home_page/home_page.dart View File

@@ -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';


+ 0
- 1
lib/pages/launch_page/launch_page.dart View File

@@ -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';


+ 1
- 1
pubspec.yaml View File

@@ -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'


Loading…
Cancel
Save