text_latin_reading 0.1.0 copy "text_latin_reading: ^0.1.0" to clipboard
text_latin_reading: ^0.1.0 copied to clipboard

Shows how text sounds, written in Latin letters. Japanese readings come from the system dictionary on iOS and from a bundled morphological dictionary on Android; other scripts go through ICU.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:text_latin_reading/text_latin_reading.dart';

void main() => runApp(const MaterialApp(home: Demo()));

class Demo extends StatefulWidget {
  const Demo({super.key});
  @override
  State<Demo> createState() => _DemoState();
}

class _DemoState extends State<Demo> {
  String _reading = '';

  @override
  void initState() {
    super.initState();
    TextLatinReading.of('東京駅で会いましょう', 'ja').then((String? value) {
      if (mounted) setState(() => _reading = value ?? '(なし)');
    });
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(body: Center(child: Text(_reading)));
  }
}
0
likes
0
points
230
downloads

Publisher

unverified uploader

Weekly Downloads

Shows how text sounds, written in Latin letters. Japanese readings come from the system dictionary on iOS and from a bundled morphological dictionary on Android; other scripts go through ICU.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on text_latin_reading

Packages that implement text_latin_reading