flutter_litert 0.1.2 copy "flutter_litert: ^0.1.2" to clipboard
flutter_litert: ^0.1.2 copied to clipboard

LiteRT (formerly TensorFlow Lite) Flutter plugin. Drop-in on-device ML inference with bundled native libraries for all platforms.

flutter_litert #

A drop-in LiteRT (formerly TensorFlow Lite) plugin for Flutter, with all native libraries bundled automatically for Android, iOS, macOS, Windows, and Linux.

No manual setup or handling of native libraries required.

Why this package? #

Google's official litert_flutter package is still a placeholder. This package provides a production-ready LiteRT integration based on tflite_flutter, with the friction removed.

  • No more copying .so, .dll, or .dylib files
  • Works out of the box on all supported platforms
  • Same API as tflite_flutter
  • Custom ops support (e.g., MediaPipe models)

Installation #

dependencies:
  flutter_litert: ^0.0.1

Usage #

import 'package:flutter_litert/flutter_litert.dart';

void main() async {
  final interpreter = await Interpreter.fromAsset('model.tflite');
  print('Model loaded successfully!');
}

Platform Support #

  • Android
  • iOS
  • macOS
  • Windows
  • Linux

All required native binaries are automatically included in the build.

Credits #

This project is based on tflite_flutter by the TensorFlow team and contributors, and tflite_flutter_custom by Hugo Cornellier.

0
likes
160
points
47
downloads

Publisher

verified publisherhugocornellier.com

Weekly Downloads

LiteRT (formerly TensorFlow Lite) Flutter plugin. Drop-in on-device ML inference with bundled native libraries for all platforms.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

ffi, flutter, path, plugin_platform_interface, quiver

More

Packages that depend on flutter_litert

Packages that implement flutter_litert