ダ・ヴィンチ
任意のウィジェットを画像に変換するためのFlutterパッケージ。
- スター
- 51
- フォーク
- 25
- 最終プッシュ(UTC)
- 2024/10/07
- プロジェクト状態
- 公開中
元の README
以下は英語原文のスナップショットです。最新版は 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.
言語C++CMakeDartRubyHTMLCSwiftKotlinObjective-C
カテゴリー
使用している依存関係
依存関係一覧 5 件
- flutter
{"sdk":"flutter"} - path_provider
^2.1.3 - open_filex
^4.4.0 - gal
^2.3.0 - flutter_test開発用
{"sdk":"flutter"}
プロジェクトに合うリポジトリを選ぶには?
用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。
- 名前・作者・説明で検索し、技術トピックで絞り込みます。
- スター、フォーク、最近のプッシュを比較します。スターは関心の目安であり、品質の保証ではありません。
- 利用前に GitHub で README、ライセンス、Issues を確認します。
情報源と管理
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗