nativemind_copilot 2.0.0
nativemind_copilot: ^2.0.0 copied to clipboard
The NativeMind copilot for Flutter: agent panel, decisions and spending policy, voice and attachments, protocol client, OAuth / MCP connect screens.
example/example.dart
// The agent panel driven by a scripted engine (no network): swap NmScriptedEngine for NmRemoteEngine or
// NmHybridEngine in an app.
// written by Claude Code (generated by Claude Code), 2026-11-16; pub.dev example (pana "Package has an example")
import 'package:flutter/material.dart';
import 'package:nativemind_copilot/nativemind_copilot.dart';
import 'package:nativemind_core/nativemind_core.dart';
// written by Claude Code (generated by Claude Code), 2026-11-16; pub.dev example (pana "Package has an example")
void main() {
final controller = NmCopilotController(NmCopilotConfig(engine: NmScriptedEngine(const [])));
runApp(
MaterialApp(
localizationsDelegates: NmApp.delegates([NmCopilot.delegate]),
theme: const NmTheme(palette: NmPalette.pink).toThemeData(Brightness.light),
home: Scaffold(body: NmCopilotScope(controller: controller, child: const NmCopilotPanel())),
),
);
}