whatsapp_camera

Creator: coderz1093

Last updated:

Add to Cart

Description:

whatsapp camera

whatsapp_camera #

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

how to use #
Open camera:
List<File>? res = await Navigator.push(
context, MaterialPageRoute(
builder: (context) => const WhatsappCamera(),
),
);
copied to clipboard

Open image:
Navigator.push(
context, MaterialPageRoute(
builder: (context) => const ViewImage(
image: 'https://...',
imageType: ImageType.network,
),
),
);
copied to clipboard




Android #
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"
...
copied to clipboard
file: android/app/build.gradle
minSdkVersion 21
compileSdkVersion 33
copied to clipboard
ios #
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>
copied to clipboard
LICENSE



Feito com ❤️ by Weliton Sousa

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files:

Customer Reviews

There are no reviews.