instant_camera 0.0.2 copy "instant_camera: ^0.0.2" to clipboard
instant_camera: ^0.0.2 copied to clipboard

A flutter plugin to quickly take pictures and videos using a built-in camera interface.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:instant_camera/camera_manager_service.dart';
import 'package:instant_camera/instant_camera_widget.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await CameraManagerService().initializeCameras();
  runApp(const MyApp());
}

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      title: 'My Camera App',
      debugShowCheckedModeBanner: false,
      home: MyCameraScreen(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Camera Screen'),
      ),
      body: const Center(
        child: InstantCameraWidget(), // This is the camera widget
      ),
    );
  }
}
5
likes
0
pub points
37%
popularity

Publisher

verified publisheradarsh7.dev

A flutter plugin to quickly take pictures and videos using a built-in camera interface.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

camera, flutter, gallery_saver, path_provider, permission_handler

More

Packages that depend on instant_camera