FLUTTER ECOSYSTEM

welitonsousa/whatsapp_camera

यह एक फ्लटर पैकेज है जिसका उपयोग कैमरा के साथ फ़ाइलों की सूची के लिए किया जाता है।

whatsapp_camera प्रोजेक्ट कवर
Stars
4
Forks
9
अंतिम पुश (UTC)
23 अक्टू॰ 2022
प्रोजेक्ट स्थिति
सक्रिय
Weliton Sousa GitHub avatar
GITHUB User

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í
भाषाएँDartRubySwiftKotlinObjective-C

इस रिपॉज़िटरी के पैकेज

उपयोग की गई निर्भरताएँ

निर्भरता सूची 9 आइटम

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

README खोलें / बंद करें

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

https://github.com/welitonsousa/whatsapp_camera/blob/main/assets/example.gif?raw=true


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