v3.0.3ruby_text
A RubyText widget, you can easily use this library to achieve the furigana effect.
38Likes 1.2K30-day downloads150Pub points
AndroidiOSWebmacOSWindowsLinux
a ruby text widget with flutter
^2.0.5{"sdk":"flutter"}^0.18.6^2.0.1{"sdk":"flutter"}^5.0.0+1English project snapshot. Visit GitHub for the latest content.
A ruby text widget with flutter.
https://raw.githubusercontent.com/YeungKC/RubyText/HEAD/Screenshot.png
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,
});
const RubyTextData(
String text, {
String? ruby,
TextStyle? style,
TextStyle? rubyStyle,
TextDirection? textDirection,
});
const RubySpanWidget(BuildContext context, RubyTextData data);