Skip to content

HighLiuk/RubyText

 
 

Repository files navigation

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

About

a ruby text widget with flutter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 76.8%
  • Swift 7.4%
  • HTML 7.2%
  • CMake 4.7%
  • C 1.9%
  • C++ 1.0%
  • Other 1.0%