flutter_android_opencc 0.0.1+1 copy "flutter_android_opencc: ^0.0.1+1" to clipboard
flutter_android_opencc: ^0.0.1+1 copied to clipboard

PlatformAndroid

A Flutter plugin to wrap [android-opencc](https://github.com/qichuan/android-opencc)

flutter_android_opencc #

A Flutter plugin to wrap android-opencc, which is an android port to OPENCC. This plugin only works with Android as the name suggested.

supports the Android V2 embedding and null safety for flutter, and is dart3 ready.

usage #

run the following command to add flutter_android_opencc to your dependency

flutter pub add flutter_android_opencc

You probably need to update your android/app/build.gradle. If you need support to a lower sdkversion, change the config in android/build.gradle of this plugin instead.

android {
    defaultConfig {
        ...
        minSdkVersion 21
    }
}
import 'package:flutter_android_opencc/conversion_type.dart';
import 'package:flutter_android_opencc/chinese_converter.dart';

var testResult = await _flutterAndroidOpenccPlugin.convert(
            "鼠标里面的硅二极管坏了,导致光标分辨率降低。", ConversionType.s2twp) ??
        "unknown error";
0
likes
160
points
6
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter plugin to wrap [android-opencc](https://github.com/qichuan/android-opencc)

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_android_opencc