v1.0.1
html_editor
Flutter HTML 편집기는 Summernote 자바스크립트 래퍼를 기반으로 WYSIWYG HTML 코드를 작성하는 데 도움이 되는 안드로이드 및 iOS용 텍스트 편집기입니다.
118좋아요 3030일 다운로드40Pub 점수
플랫폼 정보 없음
xrb21/flutter-html-editor open-source repository details.
{"sdk":"flutter"}^1.0.7^0.6.4^1.6.4^0.9.6+3{"sdk":"flutter"}아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Flutter HTML Editor is a text editor for android and iOS to help write WYSIWYG HTML code based on the Summernote javascript wrapper. with this library you can insert images into the text editor
demo example demo android demo ios
add html_editor: ^1.0.1 as deppendecy to pubspec.yaml
Add the following keys to your Info.plist file, located in /ios/Runner/Info.plist:
<key>io.flutter.embedded_views_preview</key>
<true/>
<key>NSCameraUsageDescription</key>
<string>Used to demonstrate image picker plugin</string>
<key>NSMicrophoneUsageDescription</key>
<string>Used to capture audio for image picker plugin</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Used to demonstrate image picker plugin</string>
<key>NSAppTransportSecurity</key>
<dict>
<key>NSAllowsArbitraryLoads</key>
<true/>
</dict>
import 'package:html_editor/html_editor.dart';
GlobalKey<HtmlEditorState> keyEditor = GlobalKey();
HtmlEditor(
hint: "Your text here...",
//value: "text content initial, if any",
key: keyEditor,
height: 400,
),
final txt = await keyEditor.currentState.getText();
| Parameter | Type | Default | Description |
|---|---|---|---|
| key | GlobalKey | required | for get method & reset |
| value | String | empty | iniate text content for text editor |
| height | double | 380 | height of text editor |
| decoration | BoxDecoration | Decoration editor | |
| useBottomSheet | bool | true | if true Pickup image user bottomsheet or dialog if else |
| widthImage | String | 100% | width of image picker |
| showBottomToolbar | bool | true | show hide bottom toolbar |
| hint | String | empty | Placeholder hint text |
This project is licensed under the MIT License - see the LICENSE file for details.
#MajalengkaExoticSundaland