Search packages, repositories and app categories

whatsapp_camera cover
Package detailsv1.0.0

whatsapp_camera

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

AndroidiOS
30-day downloads
10
Likes
47
Pub points
140

Install package

flutter pub add whatsapp_camera

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

The whatsapp_camera package provides a streamlined camera interface integrated with a photo gallery, designed to simplify image capture and selection for users. It mimics WhatsApp's intuitive camera experience, allowing quick access to the camera and recent photos without navigating through multiple steps. Built for Android and iOS, it enhances user flow in apps requiring photo uploads or profile pictures. The package is lightweight and easy to integrate, making it ideal for social, messaging, or content-sharing applications.

Use cases

  • Quick photo capture in messaging apps
  • Simplified profile picture upload
  • In-app photo sharing workflows
  • User-friendly media selection
  • Social media content creation
  • Camera integration in chat interfaces

Key features

  • Integrated camera and gallery view
  • WhatsApp-style user interface
  • Cross-platform support (Android & iOS)
  • Minimal setup required
  • Smooth transition between camera and gallery
  • Easy integration with Flutter projects

Suitable for

  • Developers building messaging apps
  • Apps needing fast photo capture
  • UX-focused mobile applications
  • Social platforms with media sharing
  • Prototyping camera features quickly

Considerations

  • Requires camera and storage permissions
  • Limited customization options
  • Depends on external GitHub repository
  • May need additional styling for brand alignment
  • Not suitable for advanced camera controls
  • Best for basic photo capture needs

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

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

Categories

Dependencies

Dependency list 6 items

Source repository

Projects using this package