ruby_text_touch 0.0.3 ruby_text_touch: ^0.0.3 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);