RubyText
A ruby text widget with flutter.
Install
dependencies:
ruby_text: ^1.0.2Example
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,
})On this page
Languages
Dart80.8%Swift9.2%HTML8.7%Kotlin1.0%Objective-C0.3%
Contributors
MIT License
Created May 16, 2021
Updated May 16, 2021
