/*
 * @Author: wangyang 1147192855@qq.com
 * @Date: 2022-07-14 18:16:06
 * @LastEditors: wangyang 1147192855@qq.com
 * @LastEditTime: 2022-08-01 16:17:33
 * @FilePath: \marking_app\lib\provider\user_provider.dart
 * @Description: APP上传文件状态
 */

import 'dart:ui';

import 'package:hooks_riverpod/hooks_riverpod.dart';

import '../../../components/PictureOverview.dart';

// 批阅痕迹同步
final drawMarkingProvider =
    StateNotifierProvider<DrawMarkingProviderHandle, DrawMarkingVal>((ref) => DrawMarkingProviderHandle(DrawMarkingVal([], [])));

class DrawMarkingProviderHandle extends StateNotifier<DrawMarkingVal> {
  DrawMarkingProviderHandle(DrawMarkingVal val) : super(val);

  void setState(DrawMarkingVal val) {
    state = val;
  }
}

class DrawMarkingVal {
  List<GestureRecording> data;
  List<Offset?> offsets;

  DrawMarkingVal(this.data, this.offsets);
}
