/*
 * @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 'package:hooks_riverpod/hooks_riverpod.dart';

// 评分进度还是批阅进度
final ratingProgressProvider = StateNotifierProvider<ZoomHeightProviderHandle, EndDrawerViewEnum>(
    (ref) => ZoomHeightProviderHandle(EndDrawerViewEnum.REVIEW_RECORD));

class ZoomHeightProviderHandle extends StateNotifier<EndDrawerViewEnum> {
  ZoomHeightProviderHandle(EndDrawerViewEnum theHeight) : super(theHeight);

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

// 批阅
enum EndDrawerViewEnum {
  RATING_PROGRESS, // 评分进度
  REVIEW_RECORD, // 评阅记录
}
