parent
ab44aa38c8
commit
16934b5f8e
@ -0,0 +1,24 @@
|
||||
import 'package:equatable/equatable.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
part 'system_message_green_model.g.dart';
|
||||
|
||||
@JsonSerializable()
|
||||
class SystemMessageGreenModel extends Equatable {
|
||||
final int id;
|
||||
final String name;
|
||||
final String tel;
|
||||
final String areaName;
|
||||
SystemMessageGreenModel({
|
||||
required this.id,
|
||||
required this.name,
|
||||
required this.tel,
|
||||
required this.areaName,
|
||||
});
|
||||
factory SystemMessageGreenModel.fromJson(Map<String, dynamic> json) =>
|
||||
_$SystemMessageGreenModelFromJson(json);
|
||||
@override
|
||||
List<Object> get props => [id, name, tel, areaName];
|
||||
|
||||
factory SystemMessageGreenModel.fail() =>
|
||||
SystemMessageGreenModel(id: -1, name: '', tel: '', areaName: '');
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'system_message_green_model.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
SystemMessageGreenModel _$SystemMessageGreenModelFromJson(
|
||||
Map<String, dynamic> json) {
|
||||
return SystemMessageGreenModel(
|
||||
id: json['id'] as int,
|
||||
name: json['name'] as String,
|
||||
tel: json['tel'] as String,
|
||||
areaName: json['areaName'] as String,
|
||||
);
|
||||
}
|
||||
|
||||
Map<String, dynamic> _$SystemMessageGreenModelToJson(
|
||||
SystemMessageGreenModel instance) =>
|
||||
<String, dynamic>{
|
||||
'id': instance.id,
|
||||
'name': instance.name,
|
||||
'tel': instance.tel,
|
||||
'areaName': instance.areaName,
|
||||
};
|
@ -0,0 +1,22 @@
|
||||
import 'package:equatable/equatable.dart';
|
||||
import 'package:json_annotation/json_annotation.dart';
|
||||
part 'system_message_hygience_model.g.dart';
|
||||
@JsonSerializable()
|
||||
class SystemMessageHygineceModel extends Equatable {
|
||||
final int id;
|
||||
final String name;
|
||||
final String tel;
|
||||
final String areaName;
|
||||
SystemMessageHygineceModel({
|
||||
required this.id,
|
||||
required this.name,
|
||||
required this.tel,
|
||||
required this.areaName,
|
||||
});
|
||||
|
||||
factory SystemMessageHygineceModel.fromJson(Map<String, dynamic> json) =>
|
||||
_$SystemMessageHygineceModelFromJson(json);
|
||||
|
||||
@override
|
||||
List<Object> get props => [id, name, tel, areaName];
|
||||
}
|
@ -0,0 +1,26 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'system_message_hygience_model.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// JsonSerializableGenerator
|
||||
// **************************************************************************
|
||||
|
||||
SystemMessageHygineceModel _$SystemMessageHygineceModelFromJson(
|
||||
Map<String, dynamic> json) {
|
||||
return SystemMessageHygineceModel(
|
||||
id: json['id'] as int,
|
||||
name: json['name'] as String,
|
||||
tel: json['tel'] as String,
|
||||
areaName: json['areaName'] as String,
|
||||
);
|
||||
}
|
||||
|
||||
Map<String, dynamic> _$SystemMessageHygineceModelToJson(
|
||||
SystemMessageHygineceModel instance) =>
|
||||
<String, dynamic>{
|
||||
'id': instance.id,
|
||||
'name': instance.name,
|
||||
'tel': instance.tel,
|
||||
'areaName': instance.areaName,
|
||||
};
|
@ -0,0 +1,16 @@
|
||||
class MessageMap {
|
||||
static sysType(int type){
|
||||
switch (type) {
|
||||
case 1:
|
||||
return '报事报修';
|
||||
case 2:
|
||||
return '装修';
|
||||
case 3:
|
||||
return '绿化任务';
|
||||
case 4:
|
||||
return '卫生任务';
|
||||
default:
|
||||
return '未知';
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,345 @@
|
||||
// Flutter imports:
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:aku_community_manager/json_models/system_message_green_model.dart';
|
||||
import 'package:aku_community_manager/ui/home/messages/message_map.dart';
|
||||
import 'package:aku_community_manager/ui/manage_pages/green_manage/green_manage_page.dart';
|
||||
import 'package:aku_community_manager/ui/widgets/common/aku_button.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
// Package imports:
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:shimmer/shimmer.dart';
|
||||
import 'package:velocity_x/velocity_x.dart';
|
||||
|
||||
// Project imports:
|
||||
import 'package:aku_community_manager/const/api.dart';
|
||||
import 'package:aku_community_manager/style/app_style.dart';
|
||||
import 'package:aku_community_manager/utils/network/base_model.dart';
|
||||
import 'package:aku_community_manager/utils/network/net_util.dart';
|
||||
|
||||
class SystemMessageGreenCard extends StatefulWidget {
|
||||
final int relationId;
|
||||
final String? date;
|
||||
final int type;
|
||||
SystemMessageGreenCard({
|
||||
Key? key,
|
||||
required this.relationId,
|
||||
required this.date,
|
||||
required this.type,
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
_SystemMessageGreenCardState createState() => _SystemMessageGreenCardState();
|
||||
}
|
||||
|
||||
class _SystemMessageGreenCardState extends State<SystemMessageGreenCard> {
|
||||
SystemMessageGreenModel? _systemModel;
|
||||
bool _onLoad = true;
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
Future.delayed(Duration(milliseconds: 300), () async {
|
||||
_systemModel = await getSystemMessage(widget.relationId);
|
||||
_onLoad = false;
|
||||
setState(() {});
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return (_systemModel == null || _onLoad)
|
||||
? _loadingWidget()
|
||||
:_messageList(_systemModel!);
|
||||
}
|
||||
|
||||
Future<SystemMessageGreenModel> getSystemMessage(int repairId) async {
|
||||
BaseModel baseModel =
|
||||
await NetUtil().get(API.message.getSysGreenMessageById, params: {
|
||||
"greenTaskId": repairId,
|
||||
});
|
||||
if (baseModel.status ?? false) {
|
||||
return SystemMessageGreenModel.fromJson(baseModel.data);
|
||||
} else {
|
||||
return SystemMessageGreenModel.fail();
|
||||
}
|
||||
}
|
||||
|
||||
Widget _loadingWidget() {
|
||||
return Column(
|
||||
children: [
|
||||
Container(
|
||||
margin: EdgeInsets.only(top: 24.w, bottom: 24.w),
|
||||
alignment: Alignment.center,
|
||||
width: double.infinity,
|
||||
child: Shimmer.fromColors(
|
||||
baseColor: kPrimaryColor.withOpacity(0.3),
|
||||
highlightColor: kPrimaryColor.withOpacity(0.1),
|
||||
child: Text(
|
||||
'',
|
||||
style: TextStyle(color: AppStyle.minorTextColor, fontSize: 24.sp),
|
||||
),
|
||||
),
|
||||
),
|
||||
Container(
|
||||
padding: EdgeInsets.only(top: 24.w, left: 24.w, right: 24.w),
|
||||
color: Color(0xFFFFFFFF),
|
||||
child: Shimmer.fromColors(
|
||||
baseColor: kPrimaryColor.withOpacity(0.3),
|
||||
highlightColor: kPrimaryColor.withOpacity(0.1),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(children: [
|
||||
Container(
|
||||
width: 16.w,
|
||||
height: 16.w,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(8.w),
|
||||
color: Color(0xFFFF4501)),
|
||||
),
|
||||
SizedBox(
|
||||
width: 16.w,
|
||||
),
|
||||
Text(
|
||||
'',
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor,
|
||||
fontSize: 32.sp,
|
||||
fontWeight: FontWeight.w600),
|
||||
),
|
||||
SizedBox(height: 8.w),
|
||||
]),
|
||||
Text(
|
||||
'',
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor,
|
||||
fontSize: 28.sp,
|
||||
fontWeight: FontWeight.bold),
|
||||
),
|
||||
SizedBox(height: 24.w),
|
||||
Row(
|
||||
children: [
|
||||
Image.asset(
|
||||
R.ASSETS_MESSAGE_IC_PEOPLE_PNG,
|
||||
width: 40.w,
|
||||
height: 40.w,
|
||||
),
|
||||
SizedBox(
|
||||
width: 4.w,
|
||||
),
|
||||
Text(
|
||||
'',
|
||||
style: TextStyle(
|
||||
color: AppStyle.minorTextColor, fontSize: 28.sp),
|
||||
),
|
||||
Spacer(),
|
||||
Text(
|
||||
'',
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor, fontSize: 28.sp),
|
||||
),
|
||||
],
|
||||
),
|
||||
SizedBox(height: 16.w),
|
||||
Row(
|
||||
children: [
|
||||
Image.asset(
|
||||
R.ASSETS_MESSAGE_IC_STAR_PNG,
|
||||
width: 40.w,
|
||||
height: 40.w,
|
||||
),
|
||||
SizedBox(
|
||||
width: 4.w,
|
||||
),
|
||||
Text('',
|
||||
style: TextStyle(
|
||||
color: AppStyle.minorTextColor, fontSize: 28.sp)),
|
||||
Spacer(),
|
||||
Text('',
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor, fontSize: 28.sp)),
|
||||
],
|
||||
),
|
||||
SizedBox(height: 16.w),
|
||||
Divider(height: 1.w),
|
||||
AkuButton(
|
||||
onPressed: () {},
|
||||
child: Container(
|
||||
height: 88.w,
|
||||
alignment: Alignment.center,
|
||||
padding: EdgeInsets.only(left: 24.w),
|
||||
child: Row(
|
||||
children: [
|
||||
Text(
|
||||
'',
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor,
|
||||
fontSize: 28.sp),
|
||||
),
|
||||
Spacer(),
|
||||
Icon(Icons.arrow_forward_ios, size: 22.w),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Widget _messageList(SystemMessageGreenModel model) {
|
||||
return Column(
|
||||
children: [
|
||||
|
||||
widget.date==null?16.w.heightBox:SizedBox(),
|
||||
widget.date == null
|
||||
? SizedBox()
|
||||
: Container(
|
||||
margin: EdgeInsets.only(top: 24.w, bottom: 24.w),
|
||||
alignment: Alignment.center,
|
||||
width: double.infinity,
|
||||
child: Text(
|
||||
widget.date!,
|
||||
style: TextStyle(
|
||||
color: AppStyle.minorTextColor, fontSize: 24.sp),
|
||||
),
|
||||
),
|
||||
Container(
|
||||
padding: EdgeInsets.only(top:24.w,left: 24.w, right: 24.w),
|
||||
color: Color(0xFFFFFFFF),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(children: [
|
||||
// Container(
|
||||
// width: 16.w,
|
||||
// height: 16.w,
|
||||
// decoration: BoxDecoration(
|
||||
// borderRadius: BorderRadius.circular(8.w),
|
||||
// color: Color(0xFFFF4501)),
|
||||
// ),
|
||||
// SizedBox(
|
||||
// width: 16.w,
|
||||
// ),
|
||||
Text(
|
||||
'系统通知',
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor,
|
||||
fontSize: 32.sp,
|
||||
fontWeight: FontWeight.w600),
|
||||
),
|
||||
SizedBox(height: 8.w),
|
||||
]),
|
||||
Text(
|
||||
'你有一条新的${MessageMap.sysType(widget.type)},请立即处理',
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor,
|
||||
fontSize: 28.sp,
|
||||
fontWeight: FontWeight.bold),
|
||||
),
|
||||
SizedBox(height: 24.w),
|
||||
Row(
|
||||
children: [
|
||||
Image.asset(
|
||||
R.ASSETS_MESSAGE_IC_PEOPLE_PNG,
|
||||
width: 40.w,
|
||||
height: 40.w,
|
||||
),
|
||||
SizedBox(
|
||||
width: 4.w,
|
||||
),
|
||||
Text(
|
||||
'保修人',
|
||||
style: TextStyle(
|
||||
color: AppStyle.minorTextColor, fontSize: 28.sp),
|
||||
),
|
||||
Spacer(),
|
||||
Text(
|
||||
model.name,
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor,
|
||||
fontSize: 28.sp),
|
||||
),
|
||||
],
|
||||
),
|
||||
SizedBox(height: 16.w),
|
||||
Row(
|
||||
children: [
|
||||
Image.asset(
|
||||
R.ASSETS_MESSAGE_IC_PHONE_PNG,
|
||||
width: 40.w,
|
||||
height: 40.w,
|
||||
),
|
||||
SizedBox(
|
||||
width: 4.w,
|
||||
),
|
||||
Text('联系电话',
|
||||
style: TextStyle(
|
||||
color: AppStyle.minorTextColor,
|
||||
fontSize: 28.sp)),
|
||||
Spacer(),
|
||||
Text(model.tel,
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor,
|
||||
fontSize: 28.sp)),
|
||||
],
|
||||
),
|
||||
SizedBox(height: 16.w),
|
||||
Row(
|
||||
children: [
|
||||
Image.asset(
|
||||
R.ASSETS_MESSAGE_IC_AREA_PNG,
|
||||
width: 40.w,
|
||||
height: 40.w,
|
||||
),
|
||||
SizedBox(
|
||||
width: 4.w,
|
||||
),
|
||||
Text('报修区域',
|
||||
style: TextStyle(
|
||||
color: AppStyle.minorTextColor,
|
||||
fontSize: 28.sp)),
|
||||
Spacer(),
|
||||
Text('area',
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor,
|
||||
fontSize: 28.sp)),
|
||||
],
|
||||
),
|
||||
SizedBox(height: 16.w),
|
||||
Divider(
|
||||
height: 1.w,
|
||||
),
|
||||
AkuButton(
|
||||
onPressed: () {
|
||||
Get.to(() => GreenManagePage());
|
||||
},
|
||||
child: Container(
|
||||
height: 88.w,
|
||||
alignment: Alignment.center,
|
||||
child: Row(
|
||||
children: [
|
||||
Text(
|
||||
'查看详情',
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor,
|
||||
fontSize: 28.sp),
|
||||
),
|
||||
Spacer(),
|
||||
Icon(Icons.arrow_forward_ios, size: 22.w),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
@ -0,0 +1,337 @@
|
||||
// Flutter imports:
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:aku_community_manager/json_models/system_message_hygience_model.dart';
|
||||
import 'package:aku_community_manager/ui/home/messages/message_map.dart';
|
||||
import 'package:aku_community_manager/ui/manage_pages/hygience_manage/hygience_manage_page.dart';
|
||||
import 'package:aku_community_manager/ui/widgets/common/aku_button.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
// Package imports:
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:shimmer/shimmer.dart';
|
||||
import 'package:velocity_x/velocity_x.dart';
|
||||
|
||||
// Project imports:
|
||||
import 'package:aku_community_manager/const/api.dart';
|
||||
import 'package:aku_community_manager/style/app_style.dart';
|
||||
import 'package:aku_community_manager/utils/network/base_model.dart';
|
||||
import 'package:aku_community_manager/utils/network/net_util.dart';
|
||||
|
||||
class SystemMessageHygienceCard extends StatefulWidget {
|
||||
final int relationId;
|
||||
final String? date;
|
||||
final int type;
|
||||
SystemMessageHygienceCard({
|
||||
Key? key,
|
||||
required this.relationId,
|
||||
required this.date,
|
||||
required this.type,
|
||||
}) : super(key: key);
|
||||
|
||||
@override
|
||||
_SystemMessageHygienceCardState createState() =>
|
||||
_SystemMessageHygienceCardState();
|
||||
}
|
||||
|
||||
class _SystemMessageHygienceCardState extends State<SystemMessageHygienceCard> {
|
||||
SystemMessageHygineceModel? _systemModel;
|
||||
bool _onLoad = true;
|
||||
@override
|
||||
void initState() {
|
||||
super.initState();
|
||||
Future.delayed(Duration(milliseconds: 300), () async {
|
||||
_systemModel = await getSystemMessage(widget.relationId);
|
||||
_onLoad = false;
|
||||
setState(() {});
|
||||
});
|
||||
}
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return (_systemModel == null || _onLoad)
|
||||
? _loadingWidget()
|
||||
: _messageList(_systemModel!);
|
||||
}
|
||||
|
||||
Future getSystemMessage(int repairId) async {
|
||||
BaseModel baseModel =
|
||||
await NetUtil().get(API.message.getSysHygienceMessageById, params: {
|
||||
"hygieneTaskId": repairId,
|
||||
});
|
||||
if (baseModel.status ?? false) {
|
||||
return SystemMessageHygineceModel.fromJson(baseModel.data);
|
||||
}
|
||||
}
|
||||
|
||||
Widget _loadingWidget() {
|
||||
return Column(
|
||||
children: [
|
||||
Container(
|
||||
margin: EdgeInsets.only(top: 24.w, bottom: 24.w),
|
||||
alignment: Alignment.center,
|
||||
width: double.infinity,
|
||||
child: Shimmer.fromColors(
|
||||
baseColor: kPrimaryColor.withOpacity(0.3),
|
||||
highlightColor: kPrimaryColor.withOpacity(0.1),
|
||||
child: Text(
|
||||
'',
|
||||
style: TextStyle(color: AppStyle.minorTextColor, fontSize: 24.sp),
|
||||
),
|
||||
),
|
||||
),
|
||||
Container(
|
||||
padding: EdgeInsets.only(top: 24.w, left: 24.w, right: 24.w),
|
||||
color: Color(0xFFFFFFFF),
|
||||
child: Shimmer.fromColors(
|
||||
baseColor: kPrimaryColor.withOpacity(0.3),
|
||||
highlightColor: kPrimaryColor.withOpacity(0.1),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(children: [
|
||||
Container(
|
||||
width: 16.w,
|
||||
height: 16.w,
|
||||
decoration: BoxDecoration(
|
||||
borderRadius: BorderRadius.circular(8.w),
|
||||
color: Color(0xFFFF4501)),
|
||||
),
|
||||
SizedBox(
|
||||
width: 16.w,
|
||||
),
|
||||
Text(
|
||||
'',
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor,
|
||||
fontSize: 32.sp,
|
||||
fontWeight: FontWeight.w600),
|
||||
),
|
||||
SizedBox(height: 8.w),
|
||||
]),
|
||||
Text(
|
||||
'',
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor,
|
||||
fontSize: 28.sp,
|
||||
fontWeight: FontWeight.bold),
|
||||
),
|
||||
SizedBox(height: 24.w),
|
||||
Row(
|
||||
children: [
|
||||
Image.asset(
|
||||
R.ASSETS_MESSAGE_IC_PEOPLE_PNG,
|
||||
width: 40.w,
|
||||
height: 40.w,
|
||||
),
|
||||
SizedBox(
|
||||
width: 4.w,
|
||||
),
|
||||
Text(
|
||||
'',
|
||||
style: TextStyle(
|
||||
color: AppStyle.minorTextColor, fontSize: 28.sp),
|
||||
),
|
||||
Spacer(),
|
||||
Text(
|
||||
'',
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor, fontSize: 28.sp),
|
||||
),
|
||||
],
|
||||
),
|
||||
SizedBox(height: 16.w),
|
||||
Row(
|
||||
children: [
|
||||
Image.asset(
|
||||
R.ASSETS_MESSAGE_IC_STAR_PNG,
|
||||
width: 40.w,
|
||||
height: 40.w,
|
||||
),
|
||||
SizedBox(
|
||||
width: 4.w,
|
||||
),
|
||||
Text('',
|
||||
style: TextStyle(
|
||||
color: AppStyle.minorTextColor, fontSize: 28.sp)),
|
||||
Spacer(),
|
||||
Text('',
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor, fontSize: 28.sp)),
|
||||
],
|
||||
),
|
||||
SizedBox(height: 16.w),
|
||||
Divider(height: 1.w),
|
||||
AkuButton(
|
||||
onPressed: () {},
|
||||
child: Container(
|
||||
height: 88.w,
|
||||
alignment: Alignment.center,
|
||||
padding: EdgeInsets.only(left: 24.w),
|
||||
child: Row(
|
||||
children: [
|
||||
Text(
|
||||
'',
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor,
|
||||
fontSize: 28.sp),
|
||||
),
|
||||
Spacer(),
|
||||
Icon(Icons.arrow_forward_ios, size: 22.w),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Widget _messageList(SystemMessageHygineceModel model) {
|
||||
return Column(
|
||||
children: [
|
||||
widget.date == null ? 16.w.heightBox : SizedBox(),
|
||||
widget.date == null
|
||||
? SizedBox()
|
||||
: Container(
|
||||
margin: EdgeInsets.only(top: 24.w, bottom: 24.w),
|
||||
alignment: Alignment.center,
|
||||
width: double.infinity,
|
||||
child: Text(
|
||||
widget.date!,
|
||||
style: TextStyle(
|
||||
color: AppStyle.minorTextColor, fontSize: 24.sp),
|
||||
),
|
||||
),
|
||||
Container(
|
||||
padding: EdgeInsets.only(top: 24.w, left: 24.w, right: 24.w),
|
||||
color: Color(0xFFFFFFFF),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(children: [
|
||||
// Container(
|
||||
// width: 16.w,
|
||||
// height: 16.w,
|
||||
// decoration: BoxDecoration(
|
||||
// borderRadius: BorderRadius.circular(8.w),
|
||||
// color: Color(0xFFFF4501)),
|
||||
// ),
|
||||
// SizedBox(
|
||||
// width: 16.w,
|
||||
// ),
|
||||
Text(
|
||||
'系统通知',
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor,
|
||||
fontSize: 32.sp,
|
||||
fontWeight: FontWeight.w600),
|
||||
),
|
||||
SizedBox(height: 8.w),
|
||||
]),
|
||||
Text(
|
||||
'你有一条新的${MessageMap.sysType(widget.type)},请立即处理',
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor,
|
||||
fontSize: 28.sp,
|
||||
fontWeight: FontWeight.bold),
|
||||
),
|
||||
SizedBox(height: 24.w),
|
||||
Row(
|
||||
children: [
|
||||
Image.asset(
|
||||
R.ASSETS_MESSAGE_IC_PEOPLE_PNG,
|
||||
width: 40.w,
|
||||
height: 40.w,
|
||||
),
|
||||
SizedBox(
|
||||
width: 4.w,
|
||||
),
|
||||
Text(
|
||||
'绿化人员',
|
||||
style: TextStyle(
|
||||
color: AppStyle.minorTextColor, fontSize: 28.sp),
|
||||
),
|
||||
Spacer(),
|
||||
Text(
|
||||
model.name,
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor, fontSize: 28.sp),
|
||||
),
|
||||
],
|
||||
),
|
||||
SizedBox(height: 16.w),
|
||||
Row(
|
||||
children: [
|
||||
Image.asset(
|
||||
R.ASSETS_MESSAGE_IC_PHONE_PNG,
|
||||
width: 40.w,
|
||||
height: 40.w,
|
||||
),
|
||||
SizedBox(
|
||||
width: 4.w,
|
||||
),
|
||||
Text('联系电话',
|
||||
style: TextStyle(
|
||||
color: AppStyle.minorTextColor, fontSize: 28.sp)),
|
||||
Spacer(),
|
||||
Text(model.tel,
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor, fontSize: 28.sp)),
|
||||
],
|
||||
),
|
||||
SizedBox(height: 16.w),
|
||||
Row(
|
||||
children: [
|
||||
Image.asset(
|
||||
R.ASSETS_MESSAGE_IC_AREA_PNG,
|
||||
width: 40.w,
|
||||
height: 40.w,
|
||||
),
|
||||
SizedBox(
|
||||
width: 4.w,
|
||||
),
|
||||
Text('报修区域',
|
||||
style: TextStyle(
|
||||
color: AppStyle.minorTextColor, fontSize: 28.sp)),
|
||||
Spacer(),
|
||||
Text('area',
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor, fontSize: 28.sp)),
|
||||
],
|
||||
),
|
||||
SizedBox(height: 16.w),
|
||||
Divider(
|
||||
height: 1.w,
|
||||
),
|
||||
AkuButton(
|
||||
onPressed: () {
|
||||
Get.to(() => HygienceManagePage());
|
||||
},
|
||||
child: Container(
|
||||
height: 88.w,
|
||||
alignment: Alignment.center,
|
||||
child: Row(
|
||||
children: [
|
||||
Text(
|
||||
'查看详情',
|
||||
style: TextStyle(
|
||||
color: AppStyle.primaryTextColor, fontSize: 28.sp),
|
||||
),
|
||||
Spacer(),
|
||||
Icon(Icons.arrow_forward_ios, size: 22.w),
|
||||
],
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
}
|
Loading…
Reference in new issue