Skip to content

Commit 6fa75b6

Browse files
committed
fix null safety
1 parent b6a0721 commit 6fa75b6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/page/home/home_page.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ class _HomePageState extends State<HomePage> {
7979
onDoublePress: (index) {
8080
switch (index) {
8181
case 0:
82-
dynamicKey.currentState!.scrollToTop();
82+
dynamicKey.currentState?.scrollToTop();
8383
break;
8484
case 1:
85-
trendKey.currentState!.scrollToTop();
85+
trendKey.currentState?.scrollToTop();
8686
break;
8787
case 2:
88-
myKey.currentState!.scrollToTop();
88+
myKey.currentState?.scrollToTop();
8989
break;
9090
}
9191
},

0 commit comments

Comments
 (0)