ruby_text 3.0.3 copy "ruby_text: ^3.0.3" to clipboard
ruby_text: ^3.0.3 copied to clipboard

A RubyText widget, you can easily use this library to achieve the furigana effect.

RubyText #

Pub

A ruby text widget with flutter.

Install #

dependencies:
    ruby_text: <Latest version.>

Example #

  RubyText(
    [
      RubyTextData(
        '検査',
        ruby: 'けんさ',
      ),
    ],
  );

Other #

const RubyText(
  List<RubyTextData> data, {
  double spacing = 0.0,
  TextStyle? style,
  TextStyle? rubyStyle,
  TextAlign? textAlign,
  TextDirection? textDirection,
  bool? softWrap,
  TextOverflow? overflow,
  int? maxLines,
});

const RubyTextData(
  String text, {
  String? ruby, 
  TextStyle? style,
  TextStyle? rubyStyle,
  TextDirection? textDirection,
});

const RubySpanWidget(BuildContext context, RubyTextData data);
37
likes
140
points
308
downloads

Publisher

verified publisheryeungkc.com

Weekly Downloads

A RubyText widget, you can easily use this library to achieve the furigana effect.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

equatable, flutter, flutter_hooks, tuple

More

Packages that depend on ruby_text