flutter_draw 1.1.0 copy "flutter_draw: ^1.1.0" to clipboard
flutter_draw: ^1.1.0 copied to clipboard

A beautiful drawing view for a your flutter application with single line of code

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';

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>

Android #

No configuration required - the plugin should work out of the box.

draw

Add this function to Your StateFull Widget Check the Example

 File _drawImage;
 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);});

  }

Developed By #

Special Thanks #

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:

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

42
likes
10
pub points
25%
popularity

Publisher

unverified uploader

A beautiful drawing view for a your flutter application with single line of code

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

dio, flutter, image_gallery_saver, path_provider, permission_handler, random_string

More

Packages that depend on flutter_draw