Skip to content

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. Combination of styled_text and auto_size_text package.

License

Notifications You must be signed in to change notification settings

barisozbey/auto_size_styled_text

Repository files navigation

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


About

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. Combination of styled_text and auto_size_text package.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published