FLUTTER ECOSYSTEM

nbrucker/widget_to_image

nbrucker/widget_to_image open-source repository details.

widget_to_image のプロジェクト画像
Stars
13
Forks
22
最終プッシュ(UTC)
2023/06/25
プロジェクト状態
公開中
Nicolas Bruckert GitHub avatar
GITHUB User

Nicolas Bruckert ↗

言語Dart

このリポジトリが公開するパッケージ

使用している依存関係

依存関係一覧 1 件
  • flutter{"sdk":"flutter"}

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

README を開く / 閉じる

Widget To Image

pub package

A simple package to convert any of your widgets into an image

Usage

Import the package
import 'package:widget_to_image/widget_to_image.dart';
Use the package
ByteData byteData = await WidgetToImage.widgetToImage(Container(
    width: 100,
    height: 100,
    color: Colors.blue
));
OR
ByteData byteData = await WidgetToImage.repaintBoundaryToImage(key);

Example

Find the example wiring in the widget_to_image example application.

Details

See the widget_to_image.dart for more details.

Issues and feedback

Please file issues to send feedback or report a bug. Thank you!