v1.0.3quick_text
Ein Flutter-Paket für vereinfachte Textformatierung mit markdownd-ähnlicher Syntax.
6Likes 26530-Tage-Downloads160Pub-Punkte
AndroidiOSWebmacOSWindowsLinux
anees7757/quick_text open-source repository details.
{"sdk":"flutter"}^6.3.1{"sdk":"flutter"}^4.0.0Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.
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.
**bold**, *italic*, _underline_, ~strikethrough~, [colored](red), [colored](#FF0000) and [link](https://example.com).RichText and TextSpan.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).',
),
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';