Skip to content
forked from YeungKC/RubyText

a ruby text widget with flutter

License

Notifications You must be signed in to change notification settings

knil0o/RubyText

 
 

Repository files navigation

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);

About

a ruby text widget with flutter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 100.0%