All Projects → Imgkl → davinci

Imgkl / davinci

Licence: MIT license
A flutter package to convert any widget to an Image.

Programming Languages

dart
5743 projects

Projects that are alternatives of or similar to davinci

stop watch timer
This is Stop Watch Timer for flutter plugin.🏃‍♂️
Stars: ✭ 76 (+130.3%)
Mutual labels:  flutter-plugin, flutter-package
Free-RASP-Flutter
Flutter library for improving app security and threat monitoring on Android and iOS mobile devices.
Stars: ✭ 62 (+87.88%)
Mutual labels:  flutter-plugin, flutter-package
getwidget-docs
Get Widgets UI library docs.
Stars: ✭ 17 (-48.48%)
Mutual labels:  flutter-plugin, flutter-package
flutter ume
UME is an in-app debug kits platform for Flutter. Produced by Flutter Infra team of ByteDance
Stars: ✭ 1,792 (+5330.3%)
Mutual labels:  flutter-plugin, flutter-package
FlutterLoadingGIFs
Loading indicator GIFs. Material and Cupertino (Android and iOS) loading indicators in assorted sizes. Use as placeholders for loading remote image assets. Demo: https://gallery.codelessly.com/flutterwebsites/loadinggifs/
Stars: ✭ 28 (-15.15%)
Mutual labels:  flutter-plugin, flutter-package
flutter easyloading
✨A clean and lightweight loading/toast widget for Flutter, easy to use without context, support iOS、Android and Web
Stars: ✭ 1,021 (+2993.94%)
Mutual labels:  flutter-plugin, flutter-package
seo renderer
A Flutter Web Plugin to display Text Widget as Html for SEO purpose
Stars: ✭ 103 (+212.12%)
Mutual labels:  flutter-plugin, flutter-package
Interactive-Add-Button-Layout
Custom Layout with interactive add button to impove your UI and UX .
Stars: ✭ 20 (-39.39%)
Mutual labels:  widgets, flutter-package
link text
Easy to use text widget for Flutter apps, which converts inlined urls into working, clickable links
Stars: ✭ 20 (-39.39%)
Mutual labels:  flutter-plugin, flutter-package
simple gesture detector
Easy to use, reliable and lightweight gesture detector for Flutter apps, exposing simple API for basic gestures
Stars: ✭ 26 (-21.21%)
Mutual labels:  flutter-plugin, flutter-package
flutter sliding tutorial
User onboarding library with smooth animation of objects and background colors
Stars: ✭ 127 (+284.85%)
Mutual labels:  flutter-plugin, flutter-package
Motion-Tab-Bar
A beautiful animated flutter widget package library. The tab bar will attempt to use your current theme out of the box, however you may want to theme it.
Stars: ✭ 237 (+618.18%)
Mutual labels:  flutter-plugin, flutter-package
Flutter rating bar
A simple ratingbar for flutter which also include a rating bar indicator, supporting any fraction of rating.
Stars: ✭ 211 (+539.39%)
Mutual labels:  widgets, flutter-plugin
barcode.flutter
barcode generate library for Flutter
Stars: ✭ 58 (+75.76%)
Mutual labels:  flutter-plugin, flutter-package
Stream Chat Flutter
Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter.
Stars: ✭ 220 (+566.67%)
Mutual labels:  widgets, flutter-plugin
flutter-app
Full Feature Todos Flutter Mobile app with fireStore integration.
Stars: ✭ 138 (+318.18%)
Mutual labels:  flutter-plugin, flutter-package
cross connectivity
A Flutter plugin for handling Connectivity and REAL Connection state in the mobile, web and desktop platforms. Supports iOS, Android, Web, Windows, Linux and macOS.
Stars: ✭ 27 (-18.18%)
Mutual labels:  flutter-plugin, flutter-package
juxtapose
A flutter widget for comparing two stacked widgets by dragging a slider thumb to reveal either sides of the slider horizontally or vertically.
Stars: ✭ 75 (+127.27%)
Mutual labels:  widgets, flutter-package
fancy bar
A fancy yet beautiful animated widget for your Flutter apps
Stars: ✭ 33 (+0%)
Mutual labels:  flutter-plugin, flutter-package
flutter google maps
A Flutter plugin for integrating Google Maps in iOS, Android and Web applications. It is a wrapper of google_maps_flutter for Mobile and google_maps for Web.
Stars: ✭ 86 (+160.61%)
Mutual labels:  flutter-plugin, flutter-package

Davinci Supported Platforms Pub version MIT Lisence linter Codacy Badge PR's welcome


A package to convert any widget to an image which can be saved locally or can be shared to other apps and chats.

📹 Preview

ℹ️ Usage

Prerequisites

on 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.

on Android

  • android.permission.WRITE_EXTERNAL_STORAGE - Permission for usage of external storage

Imports

import 'package:davinci/core/davinci_capture.dart';
import 'package:davinci/davinci.dart';

Pseudo code

If the widget is in the widget tree
Use click method
If the widget is not in the widget tree
Use offStage method

By default the generated image name will be "davinci". But if you wish to change it, you can pass the image name in DavinciCapture.click method.
await DavinciCapture.click(imageKey, fileName: "Hello");

When the image is captured, you can either open the image preview or get the image in Uint8List.
await DavinciCapture.click(imageKey, fileName: "Hello", openFilePreview = false, returnImageUint8List = true);

If the captured image is pixelated, calculate the pixel ratio dynamically based on the device and pass it to the DavinciCapture.click method.
double pixelRatio = MediaQuery.of(context).devicePixelRatio;

await DavinciCapture.click(imageKey, fileName: "Hello", pixelRatio: pixelRatio);

To save the image directly to the device, set saveToDevice flag to true. You can also specify the album name or you can leave it undefined.

await DavinciCapture.click(imageKey, fileName: "Hello", saveToDevice = true, album: "Davinci", openFilePreview = false);

ℹ️ All the parameters in the click method is present in offStage method too.

🛎️ Note :

  • Cannot capture Platformview due to issue flutter/flutter#25306
  • If you wish to save the generated images locally, do remember to add necessary permissions in info.plist and AndroidManifest.xml.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].