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.1 KiB

4 years ago
// Flutter imports:
import 'package:aku_community_manager/models/announce/announcement_detail_model.dart';
4 years ago
import 'package:flutter/material.dart';
4 years ago
// Package imports:
4 years ago
import 'package:flutter_screenutil/flutter_screenutil.dart';
4 years ago
// Project imports:
import 'package:aku_community_manager/style/app_style.dart';
import 'package:aku_community_manager/ui/widgets/common/aku_scaffold.dart';
4 years ago
class AnouncementDetails extends StatelessWidget {
final AnnouncementDetailModel model;
4 years ago
const AnouncementDetails({
Key key,
@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('深圳永成物业有限公司', style: AppStyle().primaryStyle),
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
),
);
}
}