xtyle 0.1.3 copy "xtyle: ^0.1.3" to clipboard
xtyle: ^0.1.3 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
150
pub points
40%
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