Browse Source

1.优化粘贴版

2.example加入朋友圈模块
tags/0.0.4+9
“yanghuaxuan” 3 years ago
parent
commit
cb5bc2b7fe
4 changed files with 15 additions and 4 deletions
  1. +2
    -0
      example/lib/main.dart
  2. +6
    -0
      example/pubspec.yaml
  3. +7
    -3
      lib/dialog/global_dialog/intellect_search_goods_dialog/intellect_create.dart
  4. +0
    -1
      lib/pages/search_result_page/search_result_page.dart

+ 2
- 0
example/lib/main.dart View File

@@ -18,6 +18,7 @@ import 'package:zhiying_base_widget/utils/mob_push_util.dart';
import 'package:zhiying_business_college/register.dart';
import 'package:zhiying_new_user_free/register.dart';
import 'package:zhiying_wechat_teacher/register.dart';
import 'package:zhiying_moments/register.dart';

void main() {
FlutterError.onError = (FlutterErrorDetails details) {
@@ -55,6 +56,7 @@ class _MyAppState extends State<MyApp> {
BusinessCollageRegister.init();
NewUserFreeRegister.init();
WeChatTeachRegister.init();
FriendCircleRegister.init();
print('初始化百川');
FlutterAlibc.initAlibc(version: "", appName: "").then((result) {
print("白川" + '${result.errorCode} ${result.errorMessage}');


+ 6
- 0
example/pubspec.yaml View File

@@ -34,6 +34,12 @@ dev_dependencies:
git:
ref: 0.0.1+1
url: http://192.168.0.138:3000/FnuoOS_ZhiYing/zhiying_wechat_teacher.git
#朋友圈
zhiying_moments:
#path: ../zhiying_moments
git:
ref: 0.0.4
url: http://192.168.0.138:3000/FnuoOS_ZhiYing/zhiying_moments.git

# For information on the generic Dart part of this file, see the
# following page: https://dart.dev/tools/pub/pubspec


+ 7
- 3
lib/dialog/global_dialog/intellect_search_goods_dialog/intellect_create.dart View File

@@ -20,11 +20,15 @@ class IntellectCreate {

///判断规则
static checkAndCreate(AppLifecycleState state, BuildContext context) async {
if (state == AppLifecycleState.resumed && !isRequest) {

if (state == AppLifecycleState.resumed && !isRequest) {
print("读取粘贴版");
isRequest = true;
Timer(Duration(milliseconds: 2000), () {
isRequest = false;
});
try {
await _requestSetData(context);
await _requestSetData(context);
} catch (e, s) {
isRequest = false;
print(e);
@@ -77,7 +81,7 @@ class IntellectCreate {

static checkAndCreateFirst(BuildContext context) async {
///检查规则
await IntellectCreate.checkAndCreate(AppLifecycleState.resumed, context);
await IntellectCreate.checkAndCreate(AppLifecycleState.resumed, context);
}

///请求数据打开弹窗


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

@@ -66,7 +66,6 @@ class _SearchResultContianerState extends State<SearchResultContianer> {
if (current is SearchResultErrorState) {
return false;
}

return true;
},
builder: (context, state) {


Loading…
Cancel
Save