Pakete, Repositories und App-Kategorien suchen

Cover von quick_text
Paketdetailsv1.0.3

quick_text

Ein Flutter-Paket für vereinfachte Textformatierung mit markdownd-ähnlicher Syntax.

AndroidiOSWebmacOSWindowsLinux
30-Tage-Downloads
120
Likes
6
Pub-Punkte
160

Paket installieren

flutter pub add quick_text

Paketübersicht

Aus öffentlichen Paketdaten erstellte Orientierung.

QuickText ist ein Flutter-Paket, das die Textformatierung mithilfe einer Markdown-ähnlichen Syntax vereinfacht und Entwicklern ermöglicht, Texte mit minimalem Code zu formatieren. Es unterstützt gängige Formatierungsoptionen wie Fett, Kursiv, Unterstrichen und Farbe über eine intuitive Syntax. Ideal für die Anzeige von rich Text in Apps ohne die Komplexität vollständiger Markdown-Parser, integriert es sich nahtlos in Android, iOS, Web, macOS, Windows und Linux. Das Paket verbessert die Lesbarkeit und Wartbarkeit stilisierter Texte in Benutzeroberflächen.

Anwendungsfälle

  • Formatierten Inhalt in App-Oberflächen anzeigen
  • Reichhaltige Textnachrichten erstellen
  • Textformatierung in Chat-Apps vereinfachen
  • Dokumentationsschnipsel rendern
  • Dynamische Textwidgets erstellen

Hauptmerkmale

  • Markdown-artige Syntax
  • Plattformübergreifende Unterstützung
  • Einfache Integration
  • Lightweight
  • Unterstützt Farben und Stile
  • Minimales Boilerplate

Geeignet für

  • Entwickler, die einfache Textformatierung suchen
  • Apps mit anspruchsvollen Textanforderungen
  • UI-Komponenten, die stilisiertem Text benötigen
  • Rapid prototyping von Benutzeroberflächenänderungen
  • Projekte, die schwere Markdown-Bibliotheken vermeiden

Hinweise

  • Beschränkt auf grundlegende Formatierung
  • Nicht geeignet für komplexes Markdown
  • Erfordert sorgfältige Syntaxbehandlung
  • Keine Unterstützung für erweiterte HTML-Tags
  • Möglicherweise werden benutzerdefinierte Erweiterungen für spezielle Anwendungsfälle benötigt

Original-README

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

QuickText

QuickText is a Flutter package that simplifies text formatting with markdown-like syntax. It allow you to easily apply styles like bold, italic, underline, strikethrough color and links directly within a string, without the need to manually construct complex TextSpan trees. Similiar usage like Text widget.

Key Features

  • Simplified Syntax: Style your text with symbols like **bold**, *italic*, _underline_, ~strikethrough~, [colored](red), [colored](#FF0000) and [link](https://example.com).
  • Enhanced Readability: Clean and easy-to-read code, reducing the verbosity of RichText and TextSpan.
  • Customizable Styles: Includes options for text alignment, overflow, max lines, and more, providing the same flexibility as traditional Flutter text widgets.
  • Built-in Color Support: Apply named colors (like red, blue, etc.) or hex colors (e.g., #FF0000 for red) directly within your text string.
  • Link Support: Easily add links that open in the browser when tapped.

Why Use QuickText?

  • Time-Saving: Quickly format text without the hassle of constructing text spans.
  • User-Friendly: Ideal for developers who want rich text features without the complexity.
  • Rich Functionality: Despite its simplicity, QuickText supports a wide range of text styling options.

Sample Code

Here's how you can use QuickText in your Flutter app:


// Bold

QuickText(
  'This is **bold** text.',
),

// Italic

QuickText(
  'This is *italic* text.',
),

// Underline

QuickText(
  'This is _underline_ text.',
),

// Strikethrough

QuickText(
  'This is ~strikethrough~ text.',
),

// Using named colors

QuickText(
  'This is [colored](red) text.',
),

// Using hex colors

QuickText(
  'This is [colored](#FF0000) text.',
),

// links

QuickText(
  'This is [link](https://example.com).',
),

Installation

Add this to your package's pubspec.yaml file:

dependencies:
  quick_text: ^latest_version

Then run:

flutter pub get

Finally, import the package in your Dart code:

import 'package:quick_text/quick_text.dart';

Kategorien

Abhängigkeiten

Abhängigkeiten 1 Einträge

Quell-Repository

Projekte, die dieses Paket verwenden

Noch keine Daten verfügbar.