패키지, 저장소 및 앱 카테고리 검색

패키지 상세v1.0.1

html_editor

Flutter HTML 편집기는 Summernote 자바스크립트 래퍼를 기반으로 WYSIWYG HTML 코드를 작성하는 데 도움이 되는 안드로이드 및 iOS용 텍스트 편집기입니다.

30일 다운로드
57
좋아요
118
Pub 점수
40

패키지 설치

flutter pub add html_editor

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

Flutter HTML Editor는 Android 및 iOS용 WYSIWYG 텍스트 에디터로, 사용자가 Flutter 앱 내에서 직접 HTML 콘텐츠를 생성하고 편집할 수 있도록 해줍니다. Summernote 자바스크립트 라이브러리 기반으로 구축되어 있으며, 서식, 이미지, 링크 등을 지원하는 익숙한 리치 텍스트 편집 경험을 제공합니다. 간단한 pub add 명령어를 통해 Flutter 프로젝트에 원활하게 통합되며, 개발자가 애플리케이션에 HTML 입력 기능을 포함하기 위해 깔끔한 인터페이스를 제공합니다. 콘텐츠 제작 도구, CMS 통합 또는 HTML 출력이 필요한 모든 앱에 적합합니다.

사용 사례

  • 모바일 앱에서의 콘텐츠 생성
  • CMS 또는 블로그 편집기
  • 리치 텍스트 입력 폼
  • HTML 기반 메모 앱
  • 사용자 생성 콘텐츠 플랫폼

주요 기능

  • WYSIWYG HTML 편집
  • 이미지 및 링크 지원
  • Summernote와의 통합
  • 크로스 플랫폼(iOS 및 Android)
  • pub를 통한 간단한 플러터 통합

적합한 대상

  • 풍부한 텍스트 편집기를 구축하는 개발자
  • HTML 입력이 필요한 앱
  • 모바일 콘텐츠 관리 시스템
  • 교육 또는 출판 앱
  • 풍부한 텍스트를 요구하는 폼 빌더

고려 사항

  • 네이티브 코드 없이 제한적인 사용자 정의
  • WebView 렌더링에 의존합니다
  • 일관성을 위해 추가적인 스타일링이 필요할 수 있습니다
  • 복잡한 문서 처리에 적합하지 않음
  • 오래된 기기에서는 성능이 다를 수 있습니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

Flutter Html Editor

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

Setup

add html_editor: ^1.0.1 as deppendecy to pubspec.yaml

iOS

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>
Usage
  1. import flutter html editor
    import 'package:html_editor/html_editor.dart';
  1. Create Global key from HTML Editor State
    GlobalKey<HtmlEditorState> keyEditor = GlobalKey();
  1. Add HTML Editor to widget
    HtmlEditor(
        hint: "Your text here...",
        //value: "text content initial, if any",
        key: keyEditor,
        height: 400,
    ),
  1. Get text from Html Editor
    final txt = await keyEditor.currentState.getText();
Avalaible option parameters
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

License

This project is licensed under the MIT License - see the LICENSE file for details.

#MajalengkaExoticSundaland

카테고리

의존성

의존성 목록 4 개

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.