// import 'package:flutter/material.dart';
// import 'package:hooks_riverpod/hooks_riverpod.dart';
// import 'package:marking_app/common/model/job/marking_text_question_job.dart';
// import 'package:marking_app/provider/annotation_graffiti_switch_provider.dart';

// import 'jobPictureOverview.dart';

// class MainContentBox extends StatefulHookConsumerWidget {
//   final MarkingTextQuestionJob jobData;
//   final bool isHorizontal;
//   final GlobalKey<JobPictureOverviewState> scaffoldKeyPictureOverview;
//   const MainContentBox(
//       {required this.scaffoldKeyPictureOverview, required this.isHorizontal, required this.jobData, Key? key})
//       : super(key: key);

//   @override
//   _MainContentBoxState createState() => _MainContentBoxState();
// }

// class _MainContentBoxState extends ConsumerState<MainContentBox> {
//   late MarkingTextQuestionJob jobData;

//   @override
//   void initState() {
//     jobData = widget.jobData;
//     super.initState();
//   }

//   @override
//   void dispose() {
//     super.dispose();
//   }

//   @override
//   Widget build(BuildContext context) {
//     bool annotationSwitch = ref.watch(annotationGraffitiSwitchProvider).annotationSwitch;
//     bool magnifier = ref.watch(annotationGraffitiSwitchProvider).magnifier;

//     if (magnifier) annotationSwitch = false;

//     return LayoutBuilder(
//       builder: (BuildContext context, BoxConstraints constraints) {
//         final double containerWidth = constraints.maxWidth; // 展示区域总宽度
//         final double containerHeight = constraints.maxHeight; // 展示区域总宽度

//         return JobPictureOverview(
//           containerWidth: containerWidth,
//           containerHeight: containerHeight,
//           key: widget.scaffoldKeyPictureOverview,
//           annotationsFlag: annotationSwitch,
//           imageItems: jobData.studentAnswerList,
//           commentImageMap: jobData.commentImageMap,
//           questionImgUrl: jobData.questionImgUrl,
//           taskdetailId: jobData.taskSubjectiveDetailId,
//         );
//       },
//     );
//   }
// }
