Search packages, repositories and app categories

GitHub repositorywelitonsousa/whatsapp_camera

whatsapp_camera

this is a flutter package for to use a camera with list of files

whatsapp_camera project cover
Stars
4
Forks
9
Last push (UTC)
Oct 23, 2022
Project status
Active

Original README

English project snapshot. Visit GitHub 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

Weliton Sousa GitHub avatar
GitHub author

Weliton Sousa ↗

Sou desenvolvedor apaixonado por descobrir novas tecnologias. Gosto principalmente do desenvolvimento mobile, mas as tecs web e backend estão em dia 😉

FastzapPicos Piauí
LanguagesDartRubySwiftKotlinObjective-C

Packages published by this repository

Dependencies used

Dependency list 9 items

How do I choose a repository?

Start with your use case, compare repository activity, and check the original project before adopting it.

  1. Search by repository name, owner or description, then narrow the results by topic.
  2. Compare stars, forks and recent pushes. Stars show community interest, not a guarantee of quality.
  3. Read the README, license and issues on GitHub before using a project.

Sources and maintenance

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗