v3.0.0camera_camera
프로젝트용 간편한 플러그인 카메라, 플랫폼은 안드로이드 및 iOS입니다.
185좋아요 87230일 다운로드130Pub 점수
AndroidiOS
gabuldev/camera_camera open-source repository details.
^0.10.0+3^10.2.1{"sdk":"flutter"}{"sdk":"flutter"}^0.3.0아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
example
You need add in app/build.gradle
minSdkVersion 21
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>
Add package in pubspec.yaml
camera_camera: current_version
Camera_Camera is widget, you can use anywhere
Example 01
return Scaffold(
body: CameraCamera(
onFile: (file) => print(file);
)
);
Example 02
return Scaffold(
body: CameraCamera(
onFile: (file) => print(file);
),
floatingActionButton: FloatingActionButton(
onPressed: (){
Navigator.push(
context,
MaterialPageRoute(
builder: (_) => CameraCamera(
onFile: (file) {
photos.add(file);
//When take foto you should close camera
Navigator.pop(context);
setState(() {});
},
)))
},
child: Icon(Icons.camera_alt),
),
);
| Feature | Progress |
|---|---|
| Zoom | ✅ |
| Flash | ✅ |
| CameraSide select | ✅ |
| Nullsafety support | ✅ |
| Web support (beta) | ✅ |
| Desktop support | |
| Custom Layouts | |
| Add Exposure controll | |
| Add Easy Mode Video | |
| Add Gallery |
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.