da Vinci
Ein Flutter-Paket, um jedes Widget in ein Bild zu konvertieren.
- Sterne
- 51
- Forks
- 25
- Letzter Push (UTC)
- 07.10.2024
- Projektstatus
- Aktiv
Original-README
Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.
Davinci is a powerful package that allows you to convert any widget into an image, which can be saved locally or shared across apps and chats. Perfect for creating snapshots of your UI! 📸
🛠️ Supported Platforms
| Platform | Status |
|---|---|
| Android | ✅ |
| iOS | ✅ |
| Web | ✅ |
Feel free to test it on other platforms and report back with your findings! 🚀
📹 Preview
Prerequisites
For 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.
For Android
Add the following permission to your AndroidManifest.xml:
android.permission.WRITE_EXTERNAL_STORAGE- Permission for usage of external storage.
ℹ️ Usage
Imports
import 'package:davinci/core/davinci_capture.dart';
import 'package:davinci/davinci.dart';
Code
If the widget is in the widget tree, use the click method:
If the widget is not in the widget tree, use the offStage method:
🎨 Customization
ℹ️ All the parameters in the click method are present in the offStage method except the brandTag prop.
🛎️ Note:
- If you wish to save the generated images locally, do remember to add the necessary permissions in
Info.plistandAndroidManifest.xml.
SprachenC++CMakeDartRubyHTMLCSwiftKotlinObjective-C
Kategorien
Verwendete Abhängigkeiten
Abhängigkeiten 5 Einträge
- flutter
{"sdk":"flutter"} - path_provider
^2.1.3 - open_filex
^4.4.0 - gal
^2.3.0 - flutter_testEntwicklung
{"sdk":"flutter"}
Wie wähle ich ein passendes Repository?
Nach Anwendungsfall filtern, Aktivität vergleichen und vor der Nutzung das Originalprojekt prüfen.
- Nach Name, Autor oder Beschreibung suchen und nach Thema eingrenzen.
- Sterne, Forks und letzte Pushes vergleichen. Sterne zeigen Interesse, garantieren aber keine Qualität.
- Vor der Nutzung README, Lizenz und Issues auf GitHub prüfen.
Quellen und Pflege
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗
- Imgkl/davinci · GitHub ↗
- GitHub Docs — Saving repositories with stars ↗
- Verzeichnis gepflegt von Ducafecat ↗