You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

60 lines
1.6 KiB

import 'package:flutter/material.dart';
import 'package:huixiang/view_widget/message_item.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class MineMessagePage extends StatefulWidget {
final int status;
MineMessagePage(this.status);
@override
State<StatefulWidget> createState() {
return _MineMessagePage();
}
}
class _MineMessagePage extends State<MineMessagePage> {
@override
Widget build(BuildContext context) {
return SingleChildScrollView(
physics: BouncingScrollPhysics(),
child: Container(
margin: EdgeInsets.only(
left: 16.w,
right: 16.w,
top: 22.h,
),
padding: EdgeInsets.only(top: 16.h, bottom: 16.h),
decoration: BoxDecoration(
color: Colors.white,
boxShadow: [
BoxShadow(
color: Colors.black.withAlpha(12),
offset: Offset(0, 3),
blurRadius: 14,
spreadRadius: 0,
)
],
borderRadius: BorderRadius.circular(8.w),
),
child: ListView.builder(
itemCount: 1,
shrinkWrap: true,
physics: new NeverScrollableScrollPhysics(),
itemBuilder: (context, position) {
return Container(
margin: EdgeInsets.only(top: 12.h, bottom: 12.h),
child: GestureDetector(
onTap: () {
Navigator.of(context).pushNamed('/router/system_msg_page');
},
child: MessageItem(widget.status),
),
);
}),
),
);
}
}