From 3591623133ed4faeccc15b9d6c0188307bcade34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=AB=A0=E6=96=87=E8=BD=A9?= <12812285557@qq.com> Date: Fri, 17 Dec 2021 14:58:32 +0800 Subject: [PATCH] bug fix --- .../surrding_enterprises_detail_page.dart | 80 ------------------- .../surrounding_enterprises_page.dart | 21 +++-- 2 files changed, 10 insertions(+), 91 deletions(-) delete mode 100644 lib/pages/surrounding_enterprises/surrding_enterprises_detail_page.dart diff --git a/lib/pages/surrounding_enterprises/surrding_enterprises_detail_page.dart b/lib/pages/surrounding_enterprises/surrding_enterprises_detail_page.dart deleted file mode 100644 index 73b90ece..00000000 --- a/lib/pages/surrounding_enterprises/surrding_enterprises_detail_page.dart +++ /dev/null @@ -1,80 +0,0 @@ -import 'package:aku_new_community/base/base_style.dart'; -import 'package:aku_new_community/const/resource.dart'; -import 'package:aku_new_community/constants/api.dart'; -import 'package:aku_new_community/model/common/img_model.dart'; -import 'package:aku_new_community/models/house_introduce/house_introduce_model.dart'; -import 'package:aku_new_community/widget/bee_scaffold.dart'; -import 'package:flutter/material.dart'; -import 'package:flutter_screenutil/flutter_screenutil.dart'; -import 'package:velocity_x/velocity_x.dart'; - -class SurroundingEnterprisesDetailPage extends StatefulWidget { - final HouseIntroduceModel houseIntroduceModel; - - SurroundingEnterprisesDetailPage( - {Key? key, required this.houseIntroduceModel}) - : super(key: key); - - @override - _SurroundingEnterprisesDetailPageState createState() => - _SurroundingEnterprisesDetailPageState(); -} - -class _SurroundingEnterprisesDetailPageState - extends State { - 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), - )), - ], - ), - ); - } -} diff --git a/lib/pages/surrounding_enterprises/surrounding_enterprises_page.dart b/lib/pages/surrounding_enterprises/surrounding_enterprises_page.dart index d1922280..60283632 100644 --- a/lib/pages/surrounding_enterprises/surrounding_enterprises_page.dart +++ b/lib/pages/surrounding_enterprises/surrounding_enterprises_page.dart @@ -1,20 +1,19 @@ -import 'package:aku_community/models/house_introduce/house_introduce_model.dart'; -import 'package:aku_community/models/surrounding_enterprises/surrounding_enterprises_model.dart'; -import 'package:aku_community/pages/surrounding_enterprises/surrounding_enterprises_detail_page.dart'; + +import 'package:aku_new_community/model/common/img_model.dart'; +import 'package:aku_new_community/models/surrounding_enterprises/surrounding_enterprises_model.dart'; +import 'package:aku_new_community/pages/surrounding_enterprises/surrounding_enterprises_detail_page.dart'; import 'package:flutter/cupertino.dart'; import 'package:flutter/material.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:get/get.dart'; import 'package:velocity_x/velocity_x.dart'; - -import 'package:aku_community/base/base_style.dart'; -import 'package:aku_community/constants/api.dart'; -import 'package:aku_community/constants/app_theme.dart'; -import 'package:aku_community/model/common/img_model.dart'; -import 'package:aku_community/pages/things_page/widget/bee_list_view.dart'; -import 'package:aku_community/utils/headers.dart'; -import 'package:aku_community/widget/bee_scaffold.dart'; +import 'package:aku_new_community/base/base_style.dart'; +import 'package:aku_new_community/constants/api.dart'; +import 'package:aku_new_community/constants/app_theme.dart'; +import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart'; +import 'package:aku_new_community/utils/headers.dart'; +import 'package:aku_new_community/widget/bee_scaffold.dart'; class SurroundingEnterprisesPage extends StatefulWidget {