imgly_camera 1.55.2 copy "imgly_camera: ^1.55.2" to clipboard
imgly_camera: ^1.55.2 copied to clipboard

A Flutter plugin for the IMG.LY Camera SDK.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:imgly_camera/imgly_camera.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('IMGLY Camera Example'),
        ),
        body: Center(
          child: Column(
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              ElevatedButton(
                onPressed: () async {
                  final result = await IMGLYCamera.openCamera(
                    const CameraSettings(
                      license: 'YOUR_LICENSE',
                      userId: 'test-user',
                    ),
                  );

                  if (result != null) {
                    debugPrint('Recording result: $result');
                  } else {
                    debugPrint('Camera cancelled');
                  }
                },
                child: const Text('Open Camera'),
              ),
              const SizedBox(height: 16),
              ElevatedButton(
                onPressed: () async {
                  final result = await IMGLYCamera.openCamera(
                    const CameraSettings(
                      license: 'YOUR_LICENSE',
                      userId: 'test-user',
                    ),
                    video: 'https://example.com/test-video.mp4',
                    metadata: {'test': 'data'},
                  );

                  if (result != null) {
                    debugPrint('Reaction result: $result');
                  } else {
                    debugPrint('Camera cancelled');
                  }
                },
                child: const Text('Open Camera with Reaction'),
              ),
            ],
          ),
        ),
      ),
    );
  }
}
0
likes
0
points
465
downloads

Publisher

verified publisherimg.ly

Weekly Downloads

A Flutter plugin for the IMG.LY Camera SDK.

Homepage

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on imgly_camera

Packages that implement imgly_camera