Closed Sembauke closed 1 year ago
This actually got a lot more difficult! I just opened a pull request (#1264) that simplifies wrapping any html tag in a widget and updated the example to use the new WrapperExtension
to wrap a <table>
in a SingleChildScrollView
as you were trying to do here.
If the PR gets merged, the API looks like:
extensions: [
WrapperExtension(
tagsToWrap: {'table'},
builder: (child) {
return SingleChildScrollView(
scrollDirection: Axis.horizontal,
child: child,
);
}
),
],
Please let me know what you think of the new helper extension!
Now that child is no longer here and context is no longer type of
RenderContext
butExtensionContext
I can't seem to find a way to do this correctly.