From ce46917c48f3a2b7950d95c8fe8407e70b0e7712 Mon Sep 17 00:00:00 2001 From: anfe <448468458@qq.com> Date: Wed, 5 Jun 2024 18:38:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E5=A4=8D=20test=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/main/lockMian/lockMain/lockMain_page.dart | 2 +- test/widget_test.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/main/lockMian/lockMain/lockMain_page.dart b/lib/main/lockMian/lockMain/lockMain_page.dart index 4400e484..34319dbe 100755 --- a/lib/main/lockMian/lockMain/lockMain_page.dart +++ b/lib/main/lockMian/lockMain/lockMain_page.dart @@ -55,7 +55,7 @@ class _StarLockMainPageState extends State with BaseWidget { setState(() {}); }); // if (mounted) { - // setState(() {}); + // setSÅ’e(() {}); // } } diff --git a/test/widget_test.dart b/test/widget_test.dart index 1c7575bf..a9af1c20 100755 --- a/test/widget_test.dart +++ b/test/widget_test.dart @@ -13,7 +13,7 @@ import 'package:star_lock/app.dart'; void main() { testWidgets('Counter increments smoke test', (WidgetTester tester) async { // Build our app and trigger a frame. - await tester.pumpWidget(const MyApp()); + await tester.pumpWidget(MyApp(isLogin: false)); // Verify that our counter starts at 0. expect(find.text('0'), findsOneWidget);