// import 'package:dotted_border/dotted_border.dart';
// import 'package:flutter/material.dart';
// import 'package:flutter_hooks/flutter_hooks.dart';
// import 'package:flutter_screenutil/flutter_screenutil.dart';
// import 'package:marking_app/common/model/event_bus/job_large_question_scoring_bus.dart';
// import 'package:marking_app/common/model/job/marking_text_question_job.dart';
// import 'package:marking_app/pages/common/event_bus_mixin.dart';

// /// 答题得分框
// class LargeQuestionScoring extends HookWidget with EventBusMixin<JobLargeQuestionScoringBus> {
//   final MarkingTextQuestionJob job;
//   LargeQuestionScoring({required this.job});

//   @override
//   Widget build(BuildContext context) {
//     UseLargeQuestionScoring _useReadoverScore = UseLargeQuestionScoring.use(score: job.readoverScore);

//     useEffect(() {
//       // 事件总线监听
//       eventOn(callback: (JobLargeQuestionScoringBus item) {
//         if (_useReadoverScore.ratingScore.hasListeners) _useReadoverScore.ratingScore.value = item.ratingScore;
//       });
//       return () {
//         eventCancel();
//       };
//     }, []);

//     return DottedBorder(
//       dashPattern: const [8, 4],
//       strokeWidth: 2,
//       padding: EdgeInsets.zero,
//       color: const Color.fromRGBO(46, 91, 255, 1),
//       child: Container(
//         padding: EdgeInsets.symmetric(horizontal: 6.w, vertical: 6.h),
//         alignment: Alignment.center,
//         child: Text(
//           _useReadoverScore.ratingScore.value?.toString() ?? '请评分',
//           style: TextStyle(
//             fontSize: 18.sp,
//             color: const Color.fromRGBO(46, 91, 255, 1),
//           ),
//         ),
//       ),
//     );
//   }
// }

// class UseLargeQuestionScoring {
//   ValueNotifier<double?> ratingScore; // 分数

//   UseLargeQuestionScoring._({required this.ratingScore});

//   factory UseLargeQuestionScoring.use({double? score}) {
//     return UseLargeQuestionScoring._(ratingScore: useState(score));
//   }
// }
