FilePreviewWidget constructor

FilePreviewWidget(
  1. {Key? key,
  2. required double width,
  3. required double height,
  4. required String path,
  5. FilePreviewController? controller,
  6. FilePreviewCallBack? callBack}
)

文件预览widget

width

height

path 文件地址 https\http开头、文件格式结尾的地址,或者本地绝对路径

controller FilePreviewController控制器

Implementation

FilePreviewWidget(
    {Key? key,
    required this.width,
    required this.height,
    required this.path,
    this.controller,
    this.callBack})
    : super(key: key);