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

outdated

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

RubyText #

A ruby text widget with flutter.

Install #

dependencies:
    ruby_text: ^1.0.2

Example #

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

Other #

  RubyText(
    this.data, {
    this.style,
    this.rubyStyle,
    this.onTapDown,
    this.onTapUp,
    this.onTap,
    this.onTapCancel,
    this.textAlign,
    this.textDirection,
    this.softWrap,
    this.overflow,
    this.maxLines,
  });

  RubyTextData(
    this.text, {
    this.ruby,
    this.style,
    this.rubyStyle,
    this.onTapDown,
    this.onTapUp,
    this.onTap,
    this.onTapCancel,
  });

// if you want to can use buildRubySpan 

WidgetSpan buildRubySpan(
  String text, {
  String ruby,
  BuildContext context,
  TextStyle style,
  TextStyle rubyStyle,
  GestureTapDownCallback onTapDown,
  GestureTapUpCallback onTapUp,
  GestureTapCallback onTap,
  GestureTapCancelCallback onTapCancel,
})
36
likes
40
pub points
79%
popularity

Publisher

verified publisheryeungkc.com

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

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on ruby_text