flutter_mobile_camera 0.0.1+2 copy "flutter_mobile_camera: ^0.0.1+2" to clipboard
flutter_mobile_camera: ^0.0.1+2 copied to clipboard

outdated

This plugin allows you to take photos directly integrated into your application.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:flutter_mobile_camera/flutter_mobile_camera.dart';
import 'package:flutter_mobile_camera/CameraBuilder.dart';

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

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      // To initialize camera mobile
      home: CameraBuilder(
        // Display the camera in the app
        child: Camera(
          // Lets go back !
          onBack: () => print('Back navigator'),
          // When you want to recover the photo to send it to the cloud
          onSend: (imagePath) => print(imagePath),
          // Capture the photo taking event
          onTakePhoto: (imagePath) => print(imagePath),
        ),
      ),
    );
  }
}
5
likes
0
pub points
25%
popularity

Publisher

unverified uploader

This plugin allows you to take photos directly integrated into your application.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

camera, flutter, flutter_spinkit, path, path_provider

More

Packages that depend on flutter_mobile_camera