embed_webview 0.0.2 embed_webview: ^0.0.2 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 displays web view content inner flutter widget. It can change its size automatically to fit the children.
By now, it supports Android/iOS/Web.
Getting started #
embed_webview to your project:
dependencies: flutter: sdk: flutter embed_webview: latest_version
Simply use it as other flutter widgets:
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(SampleWebContent);
Save and run the project, you will see the web content:
For more Infomation please checkout: example.
Copyright 2022-present jixiaoyong Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.