A ruby text widget with flutter with touch callback.
dependencies:
ruby_text: <Latest version.>
RubyText(
[
RubyTextData(
'検査',
ruby: 'けんさ',
),
],
);
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);