ruby_text_touch 0.0.4 copy "ruby_text_touch: ^0.0.4" to clipboard
ruby_text_touch: ^0.0.4 copied to clipboard

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

RubyText touch version #

A ruby text widget with flutter with touch callback.

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,
  onPressed
});

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

const RubySpanWidget(BuildContext context, RubyTextData data);
1
likes
100
pub points
0%
popularity

Publisher

unverified uploader

A RubyText widget with touch callback, 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_touch