whatsapp_camera 1.0.0 copy "whatsapp_camera: ^1.0.0" to clipboard
whatsapp_camera: ^1.0.0 copied to clipboard

This is a package to open a camera along with a photo gallery, to simplify the steps of the end user

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(),
  ),
);

Open image:

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


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"
  ...

file: android/app/build.gradle

minSdkVersion 21
compileSdkVersion 33

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>

LICENSE



Feito com ❤️ by Weliton Sousa

44
likes
150
pub points
72%
popularity

Publisher

unverified uploader

This is a package to open a camera along with a photo gallery, to simplify the steps of the end user

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

camera_camera, file_picker, flutter, flutter_sliding_up_panel, permission_handler, photo_gallery, photo_view

More

Packages that depend on whatsapp_camera