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

PlatformiOSmacOS

Flutter bindings for Apple's Core ML framework: compile and load models, inspect their inputs and outputs, and run single, batch and stateful predictions.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'demos.dart';

void main() => runApp(const CoreMLExampleApp());

/// Demonstrates the core_ml plugin with five tiny bundled models.
class CoreMLExampleApp extends StatelessWidget {
  /// Creates the app.
  const CoreMLExampleApp({super.key});

  @override
  Widget build(BuildContext context) {
    ThemeData theme(Brightness brightness) => ThemeData(
      colorScheme: ColorScheme.fromSeed(
        seedColor: Colors.teal,
        brightness: brightness,
      ),
    );
    return MaterialApp(
      title: 'core_ml',
      theme: theme(Brightness.light),
      darkTheme: theme(Brightness.dark),
      home: const HomePage(),
    );
  }
}
0
likes
160
points
409
downloads

Documentation

API reference

Publisher

verified publisherjamiewest.dev

Weekly Downloads

Flutter bindings for Apple's Core ML framework: compile and load models, inspect their inputs and outputs, and run single, batch and stateful predictions.

Homepage
Repository (GitHub)
View/report issues

Topics

#machine-learning #ai #apple #inference

License

MIT (license)

Dependencies

flutter, meta

More

Packages that depend on core_ml

Packages that implement core_ml