|
|
|
@ -2,16 +2,12 @@ import 'package:flutter/material.dart'; |
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart'; |
|
|
|
import 'package:get/get.dart'; |
|
|
|
|
|
|
|
import '../controllers/meeting_mine_controller.dart'; |
|
|
|
import 'bottomSheet/statistics_bottom_sheet.dart'; |
|
|
|
|
|
|
|
class MeetingMineView extends StatefulWidget { |
|
|
|
class MeetingMineView extends GetView<MeetingMineController> { |
|
|
|
const MeetingMineView({super.key}); |
|
|
|
|
|
|
|
@override |
|
|
|
State<MeetingMineView> createState() => _MeetingMineViewState(); |
|
|
|
} |
|
|
|
|
|
|
|
class _MeetingMineViewState extends State<MeetingMineView> { |
|
|
|
@override |
|
|
|
Widget build(BuildContext context) { |
|
|
|
return Scaffold( |
|
|
|
@ -152,38 +148,52 @@ class _MeetingMineViewState extends State<MeetingMineView> { |
|
|
|
color: Colors.white, |
|
|
|
borderRadius: BorderRadius.circular(16.w), |
|
|
|
), |
|
|
|
child: Column( |
|
|
|
children: [ |
|
|
|
Row( |
|
|
|
children: [ |
|
|
|
_statisticsItem('2', '天', Colors.lime), |
|
|
|
_statisticsItem('4', '文件', Colors.lightGreen), |
|
|
|
_statisticsItem('1.5', '小时', Colors.blueGrey), |
|
|
|
], |
|
|
|
), |
|
|
|
Container( |
|
|
|
height: 80.w, |
|
|
|
padding: EdgeInsets.symmetric(horizontal: 2.w), |
|
|
|
margin: EdgeInsets.only(top: 8.w, bottom: 2.w), |
|
|
|
child: GridView.builder( |
|
|
|
scrollDirection: Axis.horizontal, |
|
|
|
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( |
|
|
|
crossAxisCount: 7, |
|
|
|
mainAxisSpacing: 2.w, |
|
|
|
crossAxisSpacing: 2.w, |
|
|
|
child: Obx( |
|
|
|
() => Column( |
|
|
|
children: [ |
|
|
|
Row( |
|
|
|
children: [ |
|
|
|
_statisticsItem( |
|
|
|
'${controller.days.value}', |
|
|
|
'天', |
|
|
|
Colors.lime, |
|
|
|
), |
|
|
|
_statisticsItem( |
|
|
|
'${controller.numberFiles.value}', |
|
|
|
'文件', |
|
|
|
Colors.lightGreen, |
|
|
|
), |
|
|
|
_statisticsItem( |
|
|
|
'${controller.hourage.value}', |
|
|
|
'小时', |
|
|
|
Colors.blueGrey, |
|
|
|
), |
|
|
|
], |
|
|
|
), |
|
|
|
Container( |
|
|
|
height: 80.w, |
|
|
|
padding: EdgeInsets.symmetric(horizontal: 2.w), |
|
|
|
margin: EdgeInsets.only(top: 8.w, bottom: 2.w), |
|
|
|
child: GridView.builder( |
|
|
|
scrollDirection: Axis.horizontal, |
|
|
|
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount( |
|
|
|
crossAxisCount: 7, |
|
|
|
mainAxisSpacing: 2.w, |
|
|
|
crossAxisSpacing: 2.w, |
|
|
|
), |
|
|
|
itemCount: 364, |
|
|
|
itemBuilder: (BuildContext context, int index) { |
|
|
|
return Container( |
|
|
|
decoration: BoxDecoration( |
|
|
|
color: Colors.grey[200], |
|
|
|
borderRadius: BorderRadius.circular(2.w), |
|
|
|
), |
|
|
|
); |
|
|
|
}, |
|
|
|
), |
|
|
|
itemCount: 364, |
|
|
|
itemBuilder: (BuildContext context, int index) { |
|
|
|
return Container( |
|
|
|
decoration: BoxDecoration( |
|
|
|
color: Colors.grey[200], |
|
|
|
borderRadius: BorderRadius.circular(2.w), |
|
|
|
), |
|
|
|
); |
|
|
|
}, |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
); |
|
|
|
|