{"id":13669949,"url":"https://github.com/ponnamkarthik/FlutterHtmlView","last_synced_at":"2025-04-27T09:31:13.022Z","repository":{"id":56829514,"uuid":"129577124","full_name":"ponnamkarthik/FlutterHtmlView","owner":"ponnamkarthik","description":"Flutter Plugin to render html as a Widget","archived":false,"fork":false,"pushed_at":"2020-02-19T13:43:11.000Z","size":190,"stargazers_count":241,"open_issues_count":44,"forks_count":107,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-08-03T09:06:57.522Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ponnamkarthik.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-15T04:33:21.000Z","updated_at":"2024-05-05T00:49:34.000Z","dependencies_parsed_at":"2022-09-02T04:00:14.289Z","dependency_job_id":null,"html_url":"https://github.com/ponnamkarthik/FlutterHtmlView","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ponnamkarthik%2FFlutterHtmlView","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ponnamkarthik%2FFlutterHtmlView/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ponnamkarthik%2FFlutterHtmlView/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ponnamkarthik%2FFlutterHtmlView/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ponnamkarthik","download_url":"https://codeload.github.com/ponnamkarthik/FlutterHtmlView/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224066970,"owners_count":17250090,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T09:00:26.370Z","updated_at":"2024-11-11T07:30:58.927Z","avatar_url":"https://github.com/ponnamkarthik.png","language":"Dart","funding_links":[],"categories":["Dart"],"sub_categories":[],"readme":"# flutter_html_view\n\nFlutter Plugin to render html as a Widget,\n\n\u003e [Refer this for full support of inline webview for android and iOS](https://github.com/PonnamKarthik/FlutterWebView)\n\nFlutter has no default support to render html so this package helps you to render your html to native widgets\n\n- Video tag support added\n- Links are clickable now\n\n## Supported Tags\n\n- p\n- em\n- b\n- img\n- video\n- h1, h2, h3, h4, h5, h6\n\n\u003e **Note**\n\u003e\n\u003e - This plugin converts some of the html tags to flutter widgets\n\u003e - This plugin does't support rendering full html code (there is no built in support for web rendering in flutter)\n\n## How to Use\n\n```yaml\ndependencies:\n  flutter_html_view: ^0.5.11\n```\n\n```dart\n\nimport 'package:flutter_html_view/flutter_html_view.dart';\n\nString html = '\u003cbody\u003eHello world! \u003ca href=\"www.html5rocks.com\"\u003eHTML5 rocks!';\n\nnew HtmlView(\n  data: html,\n  baseURL: \"\", // optional, type String\n  onLaunchFail: (url) { // optional, type Function\n    print(\"launch $url failed\");\n  },\n  scrollable: false, //false to use MarksownBody and true to use Marksown\n)\n```\n\n## MarkdownStyleSheet\n\n```\nstyleSheet: MarkdownStyleSheet(\n\n),\n```\n\n### styleOptions\n\nThe default and available style options:\n\n| Name               |  Default   |                         Options |\n| ------------------ | :--------: | ------------------------------: |\n| headingStyle       |  \"setext\"  |                 \"setext\", \"atx\" |\n| hr                 | \"\\* \\* \\*\" | \"\\* \\* \\*\", \"- - -\", \"\\_ \\_ \\_\" |\n| bulletListMarker   |    \"\\*\"    |                 \"\\*\", \"-\", \"\\_\" |\n| codeBlockStyle     | \"indented\" |            \"indented\", \"fenced\" |\n| fence              |  \"\\`\\`\\`\"  |                 \"\\`\\`\\`\", \"~~~\" |\n| emDelimiter        |    \"\\_\"    |                      \"\\_\", \"\\*\" |\n| strongDelimiter    |   \"\\*\\*\"   |                  \"\\*\\*\", \"\\_\\_\" |\n| linkStyle          | \"inlined\"  |         \"inlined\", \"referenced\" |\n| linkReferenceStyle |   \"full\"   | \"full\", \"collapsed\", \"shortcut\" |\n\n### iOS\n\nWarning: The video player is not functional on iOS simulators. An iOS device must be used during development/testing.\n\nAdd the following entry to your _Info.plist_ file, located in `\u003cproject root\u003e/ios/Runner/Info.plist`:\n\n```xml\n\u003ckey\u003eNSAppTransportSecurity\u003c/key\u003e\n\u003cdict\u003e\n  \u003ckey\u003eNSAllowsArbitraryLoads\u003c/key\u003e\n  \u003ctrue/\u003e\n\u003c/dict\u003e\n```\n\nThis entry allows your app to access video files by URL.\n\n### Android\n\nEnsure the following permission is present in your Android Manifest file, located in `\u003cproject root\u003e/android/app/src/main/AndroidManifest.xml:\n\n```xml\n\u003cuses-permission android:name=\"android.permission.INTERNET\"/\u003e\n```\n\n# Thanks to\n\n[@Katran](https://github.com/Katarn)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fponnamkarthik%2FFlutterHtmlView","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fponnamkarthik%2FFlutterHtmlView","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fponnamkarthik%2FFlutterHtmlView/lists"}