/*
 * @Author       : WuWei
 * @LastEditors  : WuWei
 * @Date         : 2021-09-02 15:57:58
 * @LastEditTime : 2023-02-09 16:29:11
 * @Description  : Do not edit
 */

import 'package:flutter/material.dart';
import 'package:wisdom_cli/wisdom_cli.dart';

class MarkWidget extends StatelessWidget {
  MarkWidget({
    Key? key,
    required this.text,
    this.textStyle,
    this.height,
    this.width,
  }) : super(key: key);
  final Widget? text;
  final TextStyle? textStyle;
  final double? height;
  final double? width;

  // final GlobalKey glkey = new GlobalKey();
  //暂时不不用
  //Size screenSize;
  // Future<Uint8List> addApturePng() async {
  //   return await capturePng(glkey);
  // }

  @override
  Widget build(BuildContext context) {
    //screenSize = MediaQuery.of(context).size;
    return RepaintBoundary(
      child: Wisdom(
        height: height!,
        width: width!,
        child: text,
      ),
    );
  }
}
