camera_works 0.0.2
camera_works: ^0.0.2 copied to clipboard

A camera plugin for flutter, which use CameraX on Android, native API on iOS, supports camera capture, flash, & switch camera.

example/lib/main.dart

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

import 'camera_page.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();
  await SystemChrome.setPreferredOrientations([DeviceOrientation.portraitUp]);
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    final style =
        SystemUiOverlayStyle.light.copyWith(statusBarColor: Colors.transparent);
    SystemChrome.setSystemUIOverlayStyle(style);

    return MaterialApp(
      home: CameraPage(),
    );
  }
}
5
likes
110
pub points
56%
popularity

A camera plugin for flutter, which use CameraX on Android, native API on iOS, supports camera capture, flash, & switch camera.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on camera_works