0 purchases
auto size styled text
AutoSizeStyledText #
Text widget with formatted text using tags. Makes it easier to use formatted text in multilingual applications.(styled_text) Combined with auto_size_text that automatically resizes text to fit perfectly within its bounds.
Table of Contents #
Getting Started
Usage examples
Getting Started #
In your flutter project add the dependency:
dependencies:
...
auto_size_styled_text: ^[version]
copied to clipboard
Import package:
import 'package:auto_size_styled_text/auto_size_styled_text.dart';
copied to clipboard
Usage Examples #
AutoSizeStyledText(
text: 'Test: <bold>bold</bold> and <red>red color</red> text.',
tags: {
'bold': AutoSizeStyledTextTag(style: TextStyle(fontWeight: FontWeight.bold)),
'red': AutoSizeStyledTextTag(style: TextStyle(fontWeight: FontWeight.bold, color: Colors.red)),
},
)
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.