xtyle 0.1.1 copy "xtyle: ^0.1.1" to clipboard
xtyle: ^0.1.1 copied to clipboard

outdated

Xtyle provides mutiligual-styled Text and TextEditingController. You can use diffrenet fontFamily for each languages.

pub package likes

English

Xtyle #

Xtyle means "Multilingual-style".

As a design requirement, there are many requests for different fonts in English and native language.

This package allows you to use different fonts for different types of characters, including English, numbers, alphanumeric characters, Korean, emoji, and so on.

Getting Started #

Add xtyle to your pubspec.yaml file:

dependencies:
  xtyle:

Example #

import 'package:xtyle/xtyle.dart';

// initialize Xtyle before runApp() in main.dart
void main() {
...
  Xtyle.init(
    configuration: XtyleConfig.korean(
      fontFamilyKor: 'SpoqaHanSansNeo', // FontFamily for Korean
      defaultFontFamily: 'DancingScript', // Default FontFamily
    ),
  );
  runApp(const MyApp());
}

// Just use XtyleText Widget instead of Text Widget
XtyleText(
    'Hello안녕123한글과English',
    style: Theme.of(context).textTheme.bodyMedium,
),

Supported Lauguages for xtyle-mapping #

  • Korean
  • English
  • Digit
  • AlphaNumeric (English + Digit)
  • Emoji
  • ...(other languages will be supported. Create issue or PR with regex.)
3
likes
0
pub points
40%
popularity

Publisher

verified publishertykan.dev

Xtyle provides mutiligual-styled Text and TextEditingController. You can use diffrenet fontFamily for each languages.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on xtyle