Skip to content

Commit

Permalink
🐛 Fix issue (daohoangson#1320):
Browse files Browse the repository at this point in the history
  - The widget was not being rendered when the html content is empty
  • Loading branch information
vanvixi committed Aug 21, 2024
1 parent 214e551 commit 215a06b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/core/lib/src/core_html_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,10 @@ class HtmlWidgetState extends State<HtmlWidget> {
? SliverToBoxAdapter(child: child)
: child;

Widget _wrapper(Widget child) =>
_RootWidget(resolved: _rootProperties, child: child);
Widget _wrapper(Widget child) => _RootWidget(
resolved: _rootProperties,
child: child != widget0 ? child : _sliverToBoxAdapterIfNeeded(child),
);
}

class _RootResolvers extends InheritanceResolvers {
Expand Down

0 comments on commit 215a06b

Please sign in to comment.