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 ↗

언어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!