FLUTTER ECOSYSTEM

nbrucker/widget_to_image

nbrucker/widget_to_image open-source repository details.

widget_to_image 專案封面
Stars
13
Forks
22
最近推送(UTC)
2023年6月25日
專案狀態
未封存
Nicolas Bruckert GitHub avatar
GITHUB User

Nicolas Bruckert ↗

AmazonParis官方網站 ↗
語言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!