浏览代码

1.优化粘贴版

2.example加入朋友圈模块
tags/0.0.4+9
“yanghuaxuan” 3 年前
父节点
当前提交
cb5bc2b7fe
共有 4 个文件被更改,包括 15 次插入4 次删除
  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 查看文件

@@ -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 查看文件

@@ -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 查看文件

@@ -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 查看文件

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

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


正在加载...
取消
保存