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

Xtyle provides mutiligual-styled Text and TextEditingController. You can use different 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 (+Upper/Lower case)
  • Digit
  • AlphaNumeric (English + Digit)
  • Emoji
  • ...(other languages will be supported. Create issue or PR with regex.)
3
likes
130
pub points
45%
popularity

Publisher

verified publishertykan.dev

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on xtyle