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.

68 lines
2.2 KiB

4 years ago
// Flutter imports:
// Project imports:
3 years ago
import 'package:aku_new_community_manager/models/announce/announcement_detail_model.dart';
import 'package:aku_new_community_manager/style/app_style.dart';
import 'package:aku_new_community_manager/tools/user_tool.dart';
3 years ago
import 'package:aku_new_community_manager/ui/widgets/common/aku_scaffold.dart';
import 'package:flutter/material.dart';
// Package imports:
import 'package:flutter_screenutil/flutter_screenutil.dart';
4 years ago
4 years ago
class AnouncementDetails extends StatelessWidget {
final AnnouncementDetailModel model;
4 years ago
const AnouncementDetails({
Key? key,
/*required*/ required this.model,
4 years ago
}) : super(key: key);
@override
Widget build(BuildContext context) {
return AkuScaffold(
title: '活动详情',
body: Container(
color: Color(0xFFFFFFFF),
padding: EdgeInsets.only(top: 24.w, left: 33.w, right: 33.w),
width: double.infinity,
height: double.infinity,
4 years ago
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.center,
4 years ago
children: [
4 years ago
Text(
model.title!,
4 years ago
style: AppStyle().barTitleStyle,
),
SizedBox(
height: 16.w,
),
Text(model.content!,
4 years ago
style: TextStyle(
color: AppStyle.primaryTextColor, fontSize: 28.sp)),
SizedBox(
height: 120.w,
),
Row(
4 years ago
children: [
4 years ago
Spacer(),
Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('${UserTool.userProvider.userInfoModel!.communityName}物业管理处',
style: AppStyle().primaryStyle),
4 years ago
SizedBox(
height: 4.w,
),
Text(model.releaseTime!, style: AppStyle().primaryStyle),
4 years ago
],
),
4 years ago
SizedBox(
4 years ago
width: 56.w - 31.w,
4 years ago
),
],
),
4 years ago
]),
4 years ago
),
);
}
}