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.

62 lines
1.7 KiB

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