Untitled
unknown
plain_text
5 months ago
2.1 kB
3
Indexable
import 'package:Buildeffective/src/model/property_info_response.dart'; import 'package:Buildeffective/src/screens/homeguide_screen/widget/title_sub_title_widget.dart'; import 'package:Buildeffective/src/screens/splash/splash_screen.dart'; import 'package:Buildeffective/src/utils/custom_exceptions.dart'; import 'package:flutter/material.dart'; import 'package:nb_utils/nb_utils.dart'; class SpaceInfoComponent extends StatelessWidget { final MyProperty ownProperty; final bool? isTablet; const SpaceInfoComponent({Key? key, required this.ownProperty, this.isTablet}) : super(key: key); @override Widget build(BuildContext context) { double titleSize = !SplashScreen.isMobileDevice ? 19 : 16; int superScriptSize = !SplashScreen.isMobileDevice ? 13 : 10; int subTitleSize = !SplashScreen.isMobileDevice ? 12 : 11; return Row( mainAxisAlignment: SplashScreen.isMobileDevice ? MainAxisAlignment.spaceBetween : MainAxisAlignment.spaceAround, children: [ TitleSubTitleWidget( title: ownProperty.squareFt.validate().isNotEmpty ? ownProperty.squareFt.validate().removeDecimalIfZero() : "0", subTitle: "Total Size", superScript: "SF", titleSize: titleSize, superScriptSize: superScriptSize, subTitleSize: subTitleSize, ).paddingLeft(!SplashScreen.isMobileDevice ? 0 : 16), TitleSubTitleWidget( title: "${ownProperty.noOfBedroom.validate(value: 0)}/${ownProperty.noOfBathroom.validate(value: 0)}", subTitle: "Beds/Baths", titleSize: titleSize, superScriptSize: superScriptSize, subTitleSize: subTitleSize, ), TitleSubTitleWidget( title: "${ownProperty.lotSize.validate()}", subTitle: "Lot Size", superScript: "SF", titleSize: titleSize, superScriptSize: superScriptSize, subTitleSize: subTitleSize, ).paddingRight(!SplashScreen.isMobileDevice ? 0 : 16), ], ).paddingOnly(left: 16, right: 32); } }
Editor is loading...
Leave a Comment