auto_size_styled_text 1.1.0 copy "auto_size_styled_text: ^1.1.0" to clipboard
auto_size_styled_text: ^1.1.0 copied to clipboard

Text widget with formatted text using tags. Makes it easier to use formatted text in multilingual applications.Automatically resizes text to fit perfectly within its bounds.

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 #

In your flutter project add the dependency:

dependencies:
  ...
  auto_size_styled_text: ^[version]

Import package:

import 'package:auto_size_styled_text/auto_size_styled_text.dart';

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)),
  },
)


14
likes
90
pub points
61%
popularity

Publisher

unverified uploader

Text widget with formatted text using tags. Makes it easier to use formatted text in multilingual applications.Automatically resizes text to fit perfectly within its bounds.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause, MIT (LICENSE)

Dependencies

auto_size_text_pk, flutter, xmlstream

More

Packages that depend on auto_size_styled_text