embed_webview 0.0.1
embed_webview: ^0.0.1 copied to clipboard
A widget that display webview content inner flutter widget. It can change it's size automatically to fit the children.
embed_webview
is a widget that display webview content inner flutter widget. It can change it's size automatically to fit the children.
By now, it support Android/iOS/Web.
Getting started #
Add embed_webview
to your project.
dependencies:
flutter:
sdk: flutter
embed_webview:last_version
Usage #
Simply use it as other flutter widget:
const String SampleWebContent =
"""<p style="text-align: center;"><span style="color: rgb(41, 44, 50); font-size: 19px;">an open-source Embed Webview library.</span></p><p style="text-align: center;"><span style="color: rgb(41, 44, 50); font-size: 19px;">Made With ❤️ by JI,XIAOYONG.</span></p><p><br></p>""";
// somewhere need a widget:
return EmbedWebView(WebContent);
For more Infomation please checkout: example.