From 27ad0e14b97a9da26fe8e010b607ce356d090691 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 11:34:47 +0800 Subject: [PATCH] 111 --- .../surrounding_enterprises_page.dart | 54 +++++++++++-------- 1 file changed, 33 insertions(+), 21 deletions(-) diff --git a/lib/pages/surrounding_enterprises/surrounding_enterprises_page.dart b/lib/pages/surrounding_enterprises/surrounding_enterprises_page.dart index 706e6fbb..d1922280 100644 --- a/lib/pages/surrounding_enterprises/surrounding_enterprises_page.dart +++ b/lib/pages/surrounding_enterprises/surrounding_enterprises_page.dart @@ -1,32 +1,35 @@ -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/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: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'; +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: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'; + + class SurroundingEnterprisesPage extends StatefulWidget { SurroundingEnterprisesPage({Key? key}) : super(key: key); @override - _SurroundingEnterprisesPageState createState() => - _SurroundingEnterprisesPageState(); + _SurroundingEnterprisesPageState createState() => _SurroundingEnterprisesPageState(); } -class _SurroundingEnterprisesPageState - extends State { + + +class _SurroundingEnterprisesPageState extends State { EasyRefreshController _refreshController = EasyRefreshController(); int _page = 1; int _size = 10; - @override void initState() { super.initState(); @@ -37,14 +40,14 @@ class _SurroundingEnterprisesPageState // HiveStore.appBox!.put('IndustryCommitteePage',true); // } // }); + } + Widget _buildCard(SurroundingEnterprisesModel model) { return GestureDetector( - onTap: () { - Get.to(SurroundingEnterprisesDetailPage( - surroundingEnterprisesModel: model, - )); + onTap: (){ + Get.to(SurroundingEnterprisesDetailPage(surroundingEnterprisesModel: model,)); }, child: Container( padding: EdgeInsets.all(20.w), @@ -77,7 +80,8 @@ class _SurroundingEnterprisesPageState style: TextStyle( fontSize: 30.sp, fontWeight: FontWeight.bold, - color: ktextPrimary), + color: ktextPrimary + ), maxLines: 4, overflow: TextOverflow.ellipsis, ), @@ -87,7 +91,11 @@ class _SurroundingEnterprisesPageState width: 440.w, child: Text( '${model.content}', - style: TextStyle(fontSize: 24.sp, color: ktextPrimary), + style: TextStyle( + fontSize: 24.sp, + + color: ktextPrimary + ), maxLines: 2, overflow: TextOverflow.ellipsis, ), @@ -95,7 +103,11 @@ class _SurroundingEnterprisesPageState Spacer(), Row( children: [ - '南宁人才公寓'.text.size(20.sp).color(ktextThirdColor).make(), + '南宁人才公寓' + .text + .size(20.sp) + .color(ktextThirdColor) + .make(), Spacer(), '发布于:${model.getReleaseDate}' .text