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.
60 lines
1.8 KiB
60 lines
1.8 KiB
4 years ago
|
import 'package:flutter/material.dart';
|
||
|
import 'package:flutter/cupertino.dart';
|
||
|
import 'package:akuCommunity/utils/screenutil.dart';
|
||
|
import 'package:akuCommunity/base/assets_image.dart';
|
||
|
import 'package:akuCommunity/base/base_style.dart';
|
||
|
|
||
|
class HouseInfo extends StatefulWidget {
|
||
|
final String title,subtitle;
|
||
|
HouseInfo({Key key,this.title,this.subtitle}) : super(key: key);
|
||
|
|
||
|
@override
|
||
|
_HouseInfoState createState() => _HouseInfoState();
|
||
|
}
|
||
|
|
||
|
class _HouseInfoState extends State<HouseInfo> {
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return Container(
|
||
|
padding: EdgeInsets.only(
|
||
|
bottom: Screenutil.length(32),
|
||
|
),
|
||
|
decoration: BoxDecoration(
|
||
|
border: Border(
|
||
|
bottom: BorderSide(color: BaseStyle.coloreeeeee, width: 0.5)),
|
||
|
),
|
||
|
child: Row(
|
||
|
mainAxisAlignment: MainAxisAlignment.start,
|
||
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||
|
children: [
|
||
|
Image.asset(
|
||
|
AssetsImage.HOUSEATTESTATION,
|
||
|
height: Screenutil.length(48),
|
||
|
width: Screenutil.length(48),
|
||
|
),
|
||
|
SizedBox(width: Screenutil.length(20)),
|
||
|
Column(
|
||
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||
|
children: [
|
||
|
Text(
|
||
|
widget.title,
|
||
|
style: TextStyle(
|
||
|
fontSize: BaseStyle.fontSize32,
|
||
|
color: BaseStyle.color474747,
|
||
|
),
|
||
|
),
|
||
|
SizedBox(height: Screenutil.length(10)),
|
||
|
Text(
|
||
|
widget.subtitle,
|
||
|
style: TextStyle(
|
||
|
fontSize: BaseStyle.fontSize32,
|
||
|
color: BaseStyle.color474747,
|
||
|
),
|
||
|
)
|
||
|
],
|
||
|
),
|
||
|
],
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|