From d2d4f7795193934fc088ac00f20eed326bdc08a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9Cyanghuaxuan=E2=80=9D?= <“646903573@qq.com”> Date: Wed, 20 Jan 2021 10:48:43 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E5=A4=8D=E5=85=AC=E5=91=8A=E7=82=B9?= =?UTF-8?q?=E5=87=BB=E6=97=A0=E6=95=88=E9=97=AE=E9=A2=98=202.=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=90=AF=E5=8A=A8=E9=A1=B5=E5=BB=B6=E6=97=B6=E6=92=A4?= =?UTF-8?q?=E9=94=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/home_page/home_page.dart | 4 +++- lib/widgets/custom/multi_nav/custom_quick_entry.dart | 2 +- lib/widgets/custom/notice/custom_notice_widget.dart | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/pages/home_page/home_page.dart b/lib/pages/home_page/home_page.dart index cd36320..fb87466 100644 --- a/lib/pages/home_page/home_page.dart +++ b/lib/pages/home_page/home_page.dart @@ -64,7 +64,9 @@ class _HomePageState extends State with WidgetsBindingObserver, Ticker WidgetsBinding.instance.addObserver(this); ///渲染完第一帧后调用 WidgetsBinding.instance.addPostFrameCallback((timeStamp) { - NativeUtil.notifyInitSuccess(); + Timer(Duration(milliseconds: 500), (){ + NativeUtil.notifyInitSuccess(); + }); }); String data = BaseSettingModel.setting.tab['data']; try { diff --git a/lib/widgets/custom/multi_nav/custom_quick_entry.dart b/lib/widgets/custom/multi_nav/custom_quick_entry.dart index 4b2749c..da946a7 100644 --- a/lib/widgets/custom/multi_nav/custom_quick_entry.dart +++ b/lib/widgets/custom/multi_nav/custom_quick_entry.dart @@ -497,7 +497,7 @@ class MyNetWorkImage extends StatelessWidget { return RepaintBoundary( child: CachedNetworkImage( width: width, - imageUrl: imgUrl, + imageUrl: imgUrl ), ); } diff --git a/lib/widgets/custom/notice/custom_notice_widget.dart b/lib/widgets/custom/notice/custom_notice_widget.dart index 7f8c8c8..b8cb28c 100644 --- a/lib/widgets/custom/notice/custom_notice_widget.dart +++ b/lib/widgets/custom/notice/custom_notice_widget.dart @@ -43,7 +43,7 @@ class _CustomNoticeWidgetContainerState extends State<_CustomNoticeWidgetContain /// 子item跳转 void _itemJump(NoticeListStyle model) { print('${model?.contentText}'); - // RouterUtil.route(model, model.toJson(), context); + RouterUtil.route(model, model.toJson(), context); } @override