v1.0.0whatsapp_camera
这是一个用于打开相机和相册的包,以简化最终用户的操作步骤
47喜欢 10近 30 天下载140Pub 分数
AndroidiOS
这是一个用于使用相机并列出文件的 Flutter 包。
以下为英文项目原文快照,最新内容请访问 GitHub。
This is a package to open a camera along with a photo gallery, to simplify the steps of the end user
It also has a widget for viewing images
Open camera:
List<File>? res = await Navigator.push(
context, MaterialPageRoute(
builder: (context) => const WhatsappCamera(),
),
);
Open image:
Navigator.push(
context, MaterialPageRoute(
builder: (context) => const ViewImage(
image: 'https://...',
imageType: ImageType.network,
),
),
);
add permissions:
file: /android/app/main/AndroidManifest.xml
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<application
android:requestLegacyExternalStorage="true"
...
file: android/app/build.gradle
minSdkVersion 21
compileSdkVersion 33
file: /ios/Runner/Info.plist
<key>NSCameraUsageDescription</key>
<string>Can I use the camera please?</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>Used to demonstrate image picker plugin</string>
Feito com ❤️ by Weliton Sousa
依赖清单 9 项
{"sdk":"flutter"}2.0.25.2.22.0.11.1.10.14.010.2.0{"sdk":"flutter"}^2.0.0先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗