पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv0.5.12

flutter_html_view

HTML को रेंडर करने के लिए Flutter प्लगइन, Flutter को डिफ़ॉल्ट रूप से HTML को रेंडर करने का समर्थन नहीं है, इसलिए यह पैकेज आपको HTML को मूल विजेट्स में रेंडर करने में मदद करता है

30-दिन डाउनलोड
131
लाइक
26
Pub अंक
40

पैकेज इंस्टॉल करें

flutter pub add flutter_html_view

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

एक फ्लटर प्लगइन जो फ्लटर ऐप में एचटीएमएल कंटेंट को मूल विजेट्स के रूप में रेंडर करने की अनुमति देता है। चूंकि फ्लटर में एचटीएमएल रेंडरिंग का निर्माण नहीं है, इस पैकेज ने एचटीएमएल स्ट्रिंग्स को पार्स करके संगत फ्लटर विजेट्स में बदलने के द्वारा खाई को पूरा किया है। यह मूल एचटीएमएल टैग और सीएसएस स्टाइलिंग का समर्थन करता है, जिससे फॉर्मेटेड टेक्स्ट, ब्लॉग पोस्ट या वेब स्रोतों से डायनामिक कंटेंट को दिखाने के लिए आदर्श है। पैकेज हल्का है और मौजूदा फ्लटर प्रोजेक्ट्स के साथ बिना किसी दिक्कत के एकीकृत हो जाता है।

उपयोग

  • प्रारूपित ब्लॉग सामग्री प्रदर्शित कर रहा है
  • API से डायनामिक HTML रेंडर करना
  • एप्स में रिच टेक्स्ट दिखाना
  • उपयोगकर्ता-उत्पादित HTML एम्बेड करें
  • सरल वेब-जैसे इंटरफ़ेस बनाना

मुख्य विशेषताएँ

  • HTML से विजेट कन्वर्शन
  • मूल एसएसी समर्थन
  • हल्का और तेज़
  • Flutter के साथ आसान एकीकरण
  • सामान्य HTML टैग का समर्थन करता है

इनके लिए उपयुक्त

  • समृद्ध पाठ प्रदर्शन की आवश्यकता वाले एप्स
  • सामग्री-भारी एप्लिकेशन
  • सरल वेब सामग्री रेंडरिंग
  • HTML डेटा के साथ काम करने वाले विकासकर्ता
  • न्यूनतम निर्भरता वाले प्रोजेक्ट्स

विचार योग्य बातें

  • सीमित उन्नत CSS समर्थन
  • कोई JavaScript निष्पादन नहीं
  • जटिल वेब पेज के लिए उपयुक्त नहीं
  • अविश्वसनीय HTML के सुरक्षा जोखिम
  • बड़े HTML कंटेंट के साथ प्रदर्शन में कमी आ सकती है

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

flutter_html_view

Flutter Plugin to render html as a Widget,

Refer this for full support of inline webview for android and iOS

Flutter has no default support to render html so this package helps you to render your html to native widgets

  • Video tag support added
  • Links are clickable now

Supported Tags

  • p
  • em
  • b
  • img
  • video
  • h1, h2, h3, h4, h5, h6

Note

  • This plugin converts some of the html tags to flutter widgets
  • This plugin does't support rendering full html code (there is no built in support for web rendering in flutter)

How to Use

dependencies:
  flutter_html_view: ^0.5.11

import 'package:flutter_html_view/flutter_html_view.dart';

String html = '<body>Hello world! <a href="www.html5rocks.com">HTML5 rocks!';

new HtmlView(
  data: html,
  baseURL: "", // optional, type String
  onLaunchFail: (url) { // optional, type Function
    print("launch $url failed");
  },
  scrollable: false, //false to use MarksownBody and true to use Marksown
)

MarkdownStyleSheet

styleSheet: MarkdownStyleSheet(

),
styleOptions

The default and available style options:

Name Default Options
headingStyle "setext" "setext", "atx"
hr "* * *" "* * *", "- - -", "_ _ _"
bulletListMarker "*" "*", "-", "_"
codeBlockStyle "indented" "indented", "fenced"
fence "```" "```", "~~~"
emDelimiter "_" "_", "*"
strongDelimiter "**" "**", "__"
linkStyle "inlined" "inlined", "referenced"
linkReferenceStyle "full" "full", "collapsed", "shortcut"
iOS

Warning: The video player is not functional on iOS simulators. An iOS device must be used during development/testing.

Add the following entry to your Info.plist file, located in <project root>/ios/Runner/Info.plist:

<key>NSAppTransportSecurity</key>
<dict>
  <key>NSAllowsArbitraryLoads</key>
  <true/>
</dict>

This entry allows your app to access video files by URL.

Android

Ensure the following permission is present in your Android Manifest file, located in `/android/app/src/main/AndroidManifest.xml:

<uses-permission android:name="android.permission.INTERNET"/>

Thanks to

@Katran

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 6 आइटम

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट