print_image_generate_tool 0.0.2 print_image_generate_tool: ^0.0.2 copied to clipboard
flutter pos 终端应用中打印场景的工具包。提供 API 将 widget 视图转换成 Uint8List 数据,内部维护队列,按加入顺序生成返回图像数据。
Use this package as a library
Depend on it
Run this command:
With Flutter:
$ flutter pub add print_image_generate_tool
This will add a line like this to your package's pubspec.yaml (and run an implicit flutter pub get
):
dependencies:
print_image_generate_tool: ^0.0.2
Alternatively, your editor might support flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:print_image_generate_tool/print_image_generate_tool.dart';