0 purchases
sparrow camera
sparrow_camera #
Guide for instalation #
Android #
You need add in app/build.gradle
minSdkVersion 21
copied to clipboard
IOS #
You need add in info.plist
<key>NSCameraUsageDescription</key>
<string>Can I use the camera please?</string>
<key>NSMicrophoneUsageDescription</key>
<string>Can I use the mic please?</string>
copied to clipboard
Flutter #
Add package in pubspec.yaml
sparrow_camera: current_version
copied to clipboard
How to use #
Camera_Camera is widget, you can use anywhere
Example 01
return Scaffold(
body: SparrowCamera(
onFile: (file) => print(file);
maxCount: 6,
maxRecordingTime: 20,
onFile: (file) {
print("filePath=${file.path}");
},
onMessage: (message) {
print("message=$message");
},
onPreview: (file) {
print("file=${file?.path}");
},
)
);
copied to clipboard
Example 02
return Scaffold(
body: SparrowCamera(
onFile: (file) => print(file);
maxCount: 6,
maxRecordingTime: 20,
onFile: (file) {
print("filePath=${file.path}");
},
onMessage: (message) {
print("message=$message");
},
onPreview: (file) {
print("file=${file?.path}");
},
),
floatingActionButton: FloatingActionButton(
onPressed: (){
Navigator.push(
context,
MaterialPageRoute(
builder: (_) => SparrowCamera(
onFile: (file) {
photos.add(file);
//When take foto you should close camera
Navigator.pop(context);
setState(() {});
},
)))
},
child: Icon(Icons.camera_alt),
),
);
copied to clipboard
Roadmap 1.0 #
Feature
Progress
Zoom
✅
Flash
✅
CameraSide select
✅
nullsafety support
✅
Add Exposure controll
Add Easy Mode Video
✅
Add Gallery
✅
Contributing #
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License #
MIT
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.