budoux_dart 1.3.0 copy "budoux_dart: ^1.3.0" to clipboard
budoux_dart: ^1.3.0 copied to clipboard

A BudouX implementation in Dart.

BudouX-Dart #

pub package

This is the Dart implementation of BudouX.

This is referencing the Java implementation of Release v0.6.2 · google/budoux.

Flutter Example #

# pubspec.yaml
flutter:
  assets:
    - packages/budoux_dart/models/ja.json
    # or ja_knbc.json
    # or zh-hans.json
    # or zh-hant.json
    # or th.json
copied to clipboard
  final budouX = BudouX(
    await rootBundle.loadString('packages/budoux_dart/models/ja.json'),
    // or ja_knbc.json
    // or zh-hans.json
    // or zh-hant.json
    // or th.json
  );
copied to clipboard
return Scaffold(
  body: DefaultTextStyle(
    style: const TextStyle(
      fontSize: 48,
      color: Colors.black,
    ),
    child: Column(
      mainAxisAlignment: MainAxisAlignment.center,
      crossAxisAlignment: CrossAxisAlignment.start,
      children: [
        const Text('今日はいい天気ですね。'),
        const Divider(),
        Wrap(
          children: budouX
              .parse(
                '今日はいい天気ですね。',
              )
              .map(Text.new)
              .toList(),
        ),
      ],
    ),
  ),
);
copied to clipboard
スクリーンショット 2023-09-25 17 59 52
3
likes
140
points
124
downloads

Publisher

verified publisherkingu.dev

Weekly Downloads

2024.09.14 - 2025.03.29

A BudouX implementation in Dart.

Repository (GitHub)

Documentation

API reference

License

Apache-2.0 (license)

More

Packages that depend on budoux_dart