Closed Sub6Resources closed 1 year ago
Patch coverage: 94.64
% and project coverage change: +0.56
:tada:
Comparison is base (
8ac444b
) 57.16% compared to head (e467e3f
) 57.73%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.
It might be hard for the user to know what the difference is between a TagExtension and a WrapperExtension class. Because they basically do the same thing?
Fair. I can add some more documentation. Essentially the TagExtension
is for providing a custom widget in place of a tag. For example, rendering all <flutter>
tags as a FlutterLogo
widget. The WrapperExtension
is for wrapping any instance of a tag inside of another widget, while still rendering the tag using the built-in tag support or other extensions.
Would naming like WrapTagExtension
be clearer?
Yes, I think WrapTagExtension
would make things a bit more clear. But I also think there should be some good documentation on what the differences are. Keep them close in the example too.
I just renamed the Extension and added a bit more documentation.
Some of the documentation is yet to come in the form of the wiki: https://github.com/Sub6Resources/flutter_html/wiki/How-To-Use-Extensions. Sorry my documentation isn't super flushed out yet!
No worries, I am only pointing these things out cause I am trying to help and make it better!
Fixes #1262