FLUTTER ECOSYSTEM

YeungKC/RubyText

a ruby text widget with flutter

RubyText project cover
Stars
49
Forks
15
Last push (UTC)
Jun 5, 2023
Project status
Active
YeungKC GitHub avatar
GITHUB User

YeungKC ↗

One day you will die, Life is a journey.

LanguagesDartSwiftHTMLKotlinObjective-C

Packages published by this repository

Dependencies used

Dependency list 6 items

Original README

English project snapshot. Visit GitHub for the latest content.

Expand / collapse project README

RubyText

Pub

A ruby text widget with flutter.

https://raw.githubusercontent.com/YeungKC/RubyText/HEAD/Screenshot.png

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