camera_bloc 0.0.1
camera_bloc: ^0.0.1 copied to clipboard
Camera Interface.
import 'package:camera_bloc/camera_bloc.dart';
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatelessWidget {
const MyApp({Key? key}) : super(key: key);
// This widget is the root of your application.
@override
Widget build(BuildContext context) {
return MaterialApp(
title: 'Flutter Demo',
theme: ThemeData(
primarySwatch: Colors.blue,
),
home: MyHomePage(key: key),
);
}
}
class MyHomePage extends StatelessWidget {
const MyHomePage({super.key});
@override
Widget build(BuildContext context) {
return CameraScreen(onTakePhoto: (file) {
print("take photo");
});
}
}