Flutter SDK

Preview

The ctrlapp_flutter plugin wraps CtrlApp for Flutter apps on Android, iOS, web, and desktop.

Source preview · registry release pending

This SDK's source lives in this repository. A public registry install may not resolve yet. Use REST today, or use a local path / project reference from a checked-out source tree (requires repository access) — see SDK & package availability.

Source preview · registry release pending
The plugin source lives at sdk/ctrlapp_flutter/. A public flutter pub add ctrlapp_flutter may not resolve today. Until the pub.dev release ships, add the package as a local path dependency against a checked-out copy of this repository — or call REST directly.

Local-path pubspec entry (requires a checkout of this repo)

yaml· pubspec.yaml
dependencies:
  ctrlapp_flutter:
    path: ../path/to/ctrlapp/sdk/ctrlapp_flutter

Initialize on app start

dart· lib/main.dart
import 'package:ctrlapp/ctrlapp.dart';

Future<void> main() async {
  WidgetsFlutterBinding.ensureInitialized();
  final ctrl = await CtrlApp.init(
    apiKey: '<PUBLISHABLE_KEY>',
    deviceId: '<DEVICE_ID>',
    baseUrl: 'https://ctrlapp.krdcode.com',
  );
  runApp(MyApp(ctrl: ctrl));
}

For platform-specific screen-capture protection behavior, see Privacy & screen protection.

Back to top