flutter_draw

Last updated:

0 purchases

flutter_draw Image
flutter_draw Images
Add to Cart

Description:

flutter draw

Flutter Draw #
A beautiful drawing view for a your flutter application with single line of code.
To start with this, we need to simply add the dependencies in the gradle file of our app module like this
Don't forget to star ⭐ the repo it motivates me to share more open source
Installation #
First, add flutter_draw: as a dependency in your pubspec.yaml file.
Import
import 'package:flutter_draw/flutter_draw.dart';
copied to clipboard
iOS #
Add the following keys to your Info.plist file, located in <project root>/ios/Runner/Info.plist:

NSPhotoLibraryUsageDescription - describe why your app needs permission for the photo library. This is called Privacy - Photo Library Usage Description in the visual editor.
NSCameraUsageDescription - describe why your app needs access to the camera. This is called Privacy - Camera Usage Description in the visual editor.
NSMicrophoneUsageDescription - describe why your app needs access to the microphone, if you intend to record videos. This is called Privacy - Microphone Usage Description in the visual editor.

Or in text format add the key:
<key>NSPhotoLibraryUsageDescription</key>
<string>Used to demonstrate image picker plugin</string>
<key>NSCameraUsageDescription</key>
<string>Used to demonstrate image picker plugin</string>
<key>NSMicrophoneUsageDescription</key>
<string>Used to capture audio for image picker plugin</string>
copied to clipboard
Android #
No configuration required - the plugin should work out of the box.

Add this function to Your StateFull Widget Check the Example
File _drawImage;
copied to clipboard
Future<void> getDrawing() {
final getDraw = Navigator.push(context, MaterialPageRoute(
builder: (context){
return HomePage();
}
)).then((getDraw){
if(getDraw != null){
setState(() {
_drawImage = getDraw;
});
}
}).catchError((er){print(er);});

}
copied to clipboard
Developed By #

Sanskar Tiwari

Special Thanks #

EPNW

Getting Started #
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:

Lab: Write your first Flutter app
Cookbook: Useful Flutter samples

For help getting started with Flutter, view our
online documentation, which offers tutorials,
samples, guidance on mobile development, and a full API reference.

License:

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

Files In This Product:

Customer Reviews

There are no reviews.