ruby_text_touch 0.0.2 ruby_text_touch: ^0.0.2 copied to clipboard
A RubyText widget with touch callback, you can easily use this library to achieve the furigana effect.
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add ruby_text_touch
With Flutter:
$ flutter pub add ruby_text_touch
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
ruby_text_touch: ^0.0.2
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:ruby_text_touch/ruby_text_touch.dart';