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.

69 lines
2.3 KiB

// Flutter imports:
// Project imports:
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';
import 'package:aku_new_community_manager/ui/widgets/common/aku_scaffold.dart';
import 'package:flutter/material.dart';
import 'package:flutter_gen/gen_l10n/app_localizations.dart';
// Package imports:
import 'package:flutter_screenutil/flutter_screenutil.dart';
class AnouncementDetails extends StatelessWidget {
final AnnouncementDetailModel model;
const AnouncementDetails({
Key? key,
/*required*/ required this.model,
}) : 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,
child: Column(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(
model.title!,
style: AppStyle().barTitleStyle,
),
SizedBox(
height: 16.w,
),
Text(model.content!,
style: TextStyle(
color: AppStyle.primaryTextColor, fontSize: 28.sp)),
SizedBox(
height: 120.w,
),
Row(
children: [
Spacer(),
Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Text('${UserTool.userProvider.userInfoModel!.communityName}物业管理处',
style: AppStyle().primaryStyle),
SizedBox(
height: 4.w,
),
Text(model.releaseTime!, style: AppStyle().primaryStyle),
],
),
SizedBox(
width: 56.w - 31.w,
),
],
),
]),
),
);
}
}