1.会议列表取消滑动波浪效果

This commit is contained in:
fuenmao 2024-11-22 14:33:42 +08:00
parent 297d09ffd6
commit ae520861ad
2 changed files with 80 additions and 76 deletions

View File

@ -8,6 +8,7 @@ import 'package:wgshare/common/models/user_info_detail.dart';
import 'package:wgshare/common/store/user_store.dart'; import 'package:wgshare/common/store/user_store.dart';
import 'package:wgshare/main.dart'; import 'package:wgshare/main.dart';
import 'package:wgshare/routes/app_routes.dart'; import 'package:wgshare/routes/app_routes.dart';
import 'package:wgshare/utils/cus_behavior.dart';
import 'package:wgshare/utils/my_text.dart'; import 'package:wgshare/utils/my_text.dart';
import 'package:wgshare/utils/storage.dart'; import 'package:wgshare/utils/storage.dart';
import '../../utils/color_util.dart'; import '../../utils/color_util.dart';
@ -69,106 +70,109 @@ class HomePageState extends State<HomePage> with AutomaticKeepAliveClientMixin {
Expanded( Expanded(
child: Container( child: Container(
color: ColorUtil.Color_244_244_244, color: ColorUtil.Color_244_244_244,
child: ListView.builder( child: ScrollConfiguration(
itemBuilder: (context, index) { behavior: CusBehavior(),
return Container( child: ListView.builder(
width: double.infinity, itemBuilder: (context, index) {
decoration: const BoxDecoration( return Container(
borderRadius: BorderRadius.all(Radius.circular(6)), width: double.infinity,
color: Colors.white, decoration: const BoxDecoration(
), borderRadius: BorderRadius.all(Radius.circular(6)),
margin: EdgeInsets.only(top: index == 0 ? 20 : 12, bottom: index == 19 ? 20 : 0, left: 16, right: 16), color: Colors.white,
padding: const EdgeInsets.all(12),
child: Column(
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Text(
'奉节中学期末考试分析总结会议',
style: TextStyle(
fontSize: 14.sp,
color: ColorUtil.Color_89_88_88,
fontWeight: FontWeight.w500
),
),
Row(
children: [
Image.asset(
'assets/images/index_persons.png',
width: 16.w,
height: 16.h,
),
Text(
'2人',
style: TextStyle(
fontSize: 12.sp,
color: ColorUtil.Color_177_177_177,
),
),
],
)
],
), ),
SizedBox(height: 20.h), margin: EdgeInsets.only(top: index == 0 ? 20 : 12, bottom: index == 19 ? 20 : 0, left: 16, right: 16),
Row( padding: const EdgeInsets.all(12),
mainAxisAlignment: MainAxisAlignment.spaceBetween, child: Column(
children: [ children: [
Row( Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
Text( Text(
'2525353', '奉节中学期末考试分析总结会议',
style: TextStyle( style: TextStyle(
fontSize: 12.sp, fontSize: 14.sp,
color: ColorUtil.Color_177_177_177, color: ColorUtil.Color_89_88_88,
fontWeight: FontWeight.w500
), ),
), ),
SizedBox(width: 6.w), Row(
Image.asset( children: [
'assets/images/index_copy.png', Image.asset(
width: 16.w, 'assets/images/index_persons.png',
height: 16.h, width: 16.w,
height: 16.h,
),
Text(
'2人',
style: TextStyle(
fontSize: 12.sp,
color: ColorUtil.Color_177_177_177,
),
),
],
) )
], ],
), ),
GestureDetector( SizedBox(height: 20.h),
child: Container( Row(
width: 78.w, mainAxisAlignment: MainAxisAlignment.spaceBetween,
height: 30.h, children: [
decoration: BoxDecoration( Row(
borderRadius: const BorderRadius.all(Radius.circular(6)),
color: ColorUtil.Color_85_117_242,
),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [ children: [
Text( Text(
'进入', '2525353',
style: TextStyle( style: TextStyle(
fontSize: 12.sp, fontSize: 12.sp,
color: Colors.white, color: ColorUtil.Color_177_177_177,
), ),
), ),
SizedBox(width: 6.w),
Image.asset( Image.asset(
'assets/images/index_right.png', 'assets/images/index_copy.png',
width: 16.w, width: 16.w,
height: 16.h, height: 16.h,
) )
], ],
), ),
), GestureDetector(
onTap: (){ child: Container(
Get.toNamed(Routes.meetingMainPage); width: 78.w,
// Navigator.of(context).push(MaterialPageRoute(builder: (context) => MeetingMainPage())); height: 30.h,
}, decoration: BoxDecoration(
borderRadius: const BorderRadius.all(Radius.circular(6)),
color: ColorUtil.Color_85_117_242,
),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text(
'进入',
style: TextStyle(
fontSize: 12.sp,
color: Colors.white,
),
),
Image.asset(
'assets/images/index_right.png',
width: 16.w,
height: 16.h,
)
],
),
),
onTap: (){
Get.toNamed(Routes.meetingMainPage);
// Navigator.of(context).push(MaterialPageRoute(builder: (context) => MeetingMainPage()));
},
)
],
) )
], ],
) ),
], );
), },
); itemCount: 20,
}, )
itemCount: 20,
), ),
), ),
) )

View File

@ -637,7 +637,7 @@ class MeetingMainPage extends StatelessWidget {
), ),
Expanded( Expanded(
child: Container( child: Container(
color: ColorUtil.Color_57_57_57, color: ColorUtil.Color_57_57_57_08,
)) ))
], ],
), ),