fix: mobile regression (#4747)

This commit is contained in:
Richard Shiue 2024-02-27 10:51:32 +08:00 committed by GitHub
parent faea0fa532
commit 74233d2606
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -71,10 +71,9 @@ class _MobileViewPageState extends State<MobileViewPage> {
body = state.data!.fold((view) {
viewPB = view;
actions.add(_buildAppBarMoreButton(view));
return view
.plugin(arguments: widget.arguments ?? const {})
.widgetBuilder
.buildWidget(shrinkWrap: false);
final plugin = view.plugin(arguments: widget.arguments ?? const {})
..init();
return plugin.widgetBuilder.buildWidget(shrinkWrap: false);
}, (error) {
return FlowyMobileStateContainer.error(
emoji: '😔',