Skip to content

Commit

Permalink
Move reload after animate
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Jan 26, 2025
1 parent cd6634e commit 74786c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -242,9 +242,10 @@ class _PlatformAdaptingHomePageState extends State<PlatformAdaptingHomePage> {
} else {
webviewOwner = WebViewOwner.Main;
}
await webview.reload();
// webview.reload may hang on ohos, animate first
topController!.animateToPage(e,
duration: Duration(milliseconds: 500), curve: Curves.ease);
await webview.reload();
},
items: <BottomNavigationBarItem>[
BottomNavigationBarItem(
Expand Down

0 comments on commit 74786c0

Please sign in to comment.