Pakete, Repositories und App-Kategorien suchen

Cover von rich_editor
Paketdetailsv0.5.0

rich_editor

WYSIWYG-Editor für Flutter mit einer Vielzahl unterstützter Formatierungsoptionen.

AndroidiOSmacOSWindows
30-Tage-Downloads
1030
Likes
93
Pub-Punkte
150

Paket installieren

flutter pub add rich_editor

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

Ein WYSIWYG-Editor für Flutter, der reichhaltige Textformatierung mit Unterstützung für fett, kursiv, Listen, Links und mehr ermöglicht. Für nahtlose Integration in Apps mit fortgeschrittener Texteingabe konzipiert, bietet er eine saubere, intuitive Benutzeroberfläche zur Erstellung formatierter Inhalte. Mit Fokus auf Erweiterbarkeit unterstützt er benutzerdefinierte Stile und Plugins. Das Paket wird aktiv gepflegt und ist kompatibel mit Android, iOS, macOS und Windows.

Anwendungsfälle

  • Reichhaltigen Textinhalt in Notiz-Apps erstellen
  • Blog- oder Artikel-Editor erstellen
  • Implementierung von Benutzer-Inhalten Formularen
  • Entwicklung von kooperativen Dokumentenwerkzeugen
  • Formatierte Messaging-Schnittstellen aktivieren

Hauptmerkmale

  • Echtzeit-WYSIWYG-Editierung
  • Umfangreiche Formatierungsoptionen (Fett, Kursiv, Unterstrichen usw.)
  • Unterstützung für Links, Bilder und Listen
  • Anpassbare Werkzeugleiste und Themen
  • Plattformübergreifende Kompatibilität

Geeignet für

  • Entwickler, die inhaltsreiche Flutter-Anwendungen erstellen
  • Apps, die eine benutzerfreundliche Textbearbeitung erfordern
  • Projekte, die Markdown- oder HTML-Ausgabe benötigen
  • Teams, die an Multiplattform-Texteditoren arbeiten

Hinweise

  • Kann zusätzliche Konfiguration für komplexe Stilisierung erfordern
  • Die Leistung kann bei großen Dokumenten variieren
  • Eingeschränkte integrierte Bildupload-Verarbeitung
  • Erfordert Verständnis des Rendering-Modells von Flutter

Original-README

Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.

✨ rich_editor

pub package pub points

WYSIWYG editor for Flutter with a rich set of supported formatting options.

Based on https://github.com/dankito/RichTextEditor, but for Flutter.

✨ Features

  • [x] Bold, Italic, Underline, Strike through, Subscript, Superscript
  • [x] Heading 1 - 6, Text body, Preformatted, Block quote
  • [x] Font (reads all system fonts) (Android only)
  • [x] Font Size
  • [x] Text Color
  • [x] Text Background Color
  • [x] Highlight text
  • [x] Justify Left, Center, Right, Blockquote
  • [x] Indent, Outdent
  • [x] Undo, Redo
  • [x] Unordered List (Bullets)
  • [x] Ordered List (Numbers)
  • [x] Insert local or remote Image
  • [x] Insert Link
  • [x] Insert Checkbox
  • [ ] Search
  • [ ] Icon indicators

📸 Screenshots

Usage

      // Insert widget into tree
      RichEditor(
        key: keyEditor,
        value: 'initial html here',
        editorOptions: RichEditorOptions(
          placeholder: 'Start typing',
          // backgroundColor: Colors.blueGrey, // Editor's bg color
          // baseTextColor: Colors.white,
          // editor padding
          padding: EdgeInsets.symmetric(horizontal: 5.0),
          // font name
          baseFontFamily: 'sans-serif',
          // Position of the editing bar (BarPosition.TOP or BarPosition.BOTTOM)
          barPosition: BarPosition.TOP,
        ),
        // You can return a Link (maybe you need to upload the image to your
        // storage before displaying in the editor or you can also use base64
        getImageUrl: (image) {
          String link = 'https://avatars.githubusercontent.com/u/24323581?v=4';
          String base64 = base64Encode(image.readAsBytesSync());
          String base64String = 'data:image/png;base64, $base64';
          return base64String;
        },
      )

Get current HTML from editor

String? html = await keyEditor.currentState?.getHtml();
print(html);

Set Focus and Unfocus

await keyEditor.currentState?.focus();
await keyEditor.currentState?.unFocus();

Clear Editor content

await keyEditor.currentState?.clear();
Custom Toolbar

If you're interested in creating your own toolbar check the custom_toolbar_demo.dart in the example

License

Copyright 2021 JideGuru

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.

Kategorien

Abhängigkeiten

Abhängigkeiten 4 Einträge

Quell-Repository

Projekte, die dieses Paket verwenden