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.

82 lines
2.6 KiB

import 'package:aku_community/models/house_introduce/house_introduce_model.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart';
import 'package:aku_community/base/base_style.dart';
import 'package:aku_community/const/resource.dart';
import 'package:aku_community/constants/api.dart';
import 'package:aku_community/model/common/img_model.dart';
import 'package:aku_community/widget/bee_scaffold.dart';
class HouseDetailPage extends StatefulWidget {
final HouseIntroduceModel houseIntroduceModel;
HouseDetailPage({Key? key, required this.houseIntroduceModel})
: super(key: key);
@override
_HouseDetailPageState createState() => _HouseDetailPageState();
}
class _HouseDetailPageState extends State<HouseDetailPage> {
bool _onload = false;
@override
Widget build(BuildContext context) {
return BeeScaffold(
bodyColor: Colors.white,
title: '住房详情',
body: ListView(
children: [
SizedBox(
child: FadeInImage.assetNetwork(
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
fit: BoxFit.cover,
image: API
.image(ImgModel.first(widget.houseIntroduceModel.imgUrls))),
width: double.infinity,
height: 424.w,
),
24.w.heightBox,
Padding(
padding: EdgeInsets.symmetric(horizontal: 32.w),
child:
// widget.houseIntroduceModel.content!.text
// .size(28.sp)
// .color(ktextPrimary)
// .make(),
Text(
widget.houseIntroduceModel.name ?? '',
style: TextStyle(
fontSize: 30.sp,
color: (ktextPrimary),
fontWeight: FontWeight.bold),
)),
Padding(
padding: EdgeInsets.only(left: 32.w,right: 32.w,top: 16.w),
child: Text(
'发布于:${widget.houseIntroduceModel.getReleaseDate}' ,
style: TextStyle(
fontSize: 20.sp,
color: (ktextThirdColor),
fontWeight: FontWeight.bold),
)),
Padding(
padding: EdgeInsets.only(left: 32.w,right: 32.w,top: 40.w),
child: Text(
widget.houseIntroduceModel.content ?? '',
style: TextStyle(
fontSize: 26.sp,
color: (ktextSubColor),
fontWeight: FontWeight.bold),
)),
],
),
);
}
}