Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.
Dart blogconfluence-alternativecontent-managementcontent-servicesdocumentationflutternote-takingnotion-alternativeproject-managementtask-managementteam-collaborationwiki
fix: ProviderNotFound exception in overlay demo example
sky1095fecc1ec31b0b
diff --git a/frontend/app_flowy/packages/flowy_infra_ui/lib/src/flowy_overlay/list_overlay.dart b/frontend/app_flowy/packages/flowy_infra_ui/lib/src/flowy_overlay/list_overlay.dartindex 16d3b55f47..0b247267eb 100644--- a/frontend/app_flowy/packages/flowy_infra_ui/lib/src/flowy_overlay/list_overlay.dart+++ b/frontend/app_flowy/packages/flowy_infra_ui/lib/src/flowy_overlay/list_overlay.dart@@ -41,20 +41,22 @@ class ListOverlay extends StatelessWidget {return OverlayContainer(constraints: BoxConstraints.tight(Size(width, totalHeight)),padding: padding,- child: Column(- children: [- ListView.builder(- shrinkWrap: true,- itemBuilder: itemBuilder,- itemCount: itemCount,- controller: controller,- ),- if (footer != null)- Padding(- padding: footer!.padding,- child: footer!.widget,+ child: SingleChildScrollView(+ child: Column(+ children: [+ ListView.builder(+ shrinkWrap: true,+ itemBuilder: itemBuilder,+ itemCount: itemCount,+ controller: controller,),- ],+ if (footer != null)+ Padding(+ padding: footer!.padding,+ child: footer!.widget,+ ),+ ],+ ),),);}diff --git a/frontend/app_flowy/packages/flowy_infra_ui/lib/src/flowy_overlay/overlay_container.dart b/frontend/app_flowy/packages/flowy_infra_ui/lib/src/flowy_overlay/overlay_container.dartindex 85de2c71a7..96b566b308 100644--- a/frontend/app_flowy/packages/flowy_infra_ui/lib/src/flowy_overlay/overlay_container.dart+++ b/frontend/app_flowy/packages/flowy_infra_ui/lib/src/flowy_overlay/overlay_container.dart@@ -18,7 +18,7 @@ class OverlayContainer extends StatelessWidget {@overrideWidget build(BuildContext context) {- final theme = context.watch<AppTheme>();+ final theme = context.watch<AppTheme?>() ?? AppTheme.fromType(ThemeType.light);return Material(type: MaterialType.transparency,child: Container(