hmxc
张萌 3 years ago
parent 27ad0e14b9
commit 123b87fe52

@ -2,14 +2,14 @@ import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_new_community/const/resource.dart'; import 'package:aku_new_community/const/resource.dart';
import 'package:aku_new_community/constants/api.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/model/common/img_model.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/models/surrounding_enterprises/surrounding_enterprises_model.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart'; import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:velocity_x/velocity_x.dart'; import 'package:velocity_x/velocity_x.dart';
class SurroundingEnterprisesDetailPage extends StatefulWidget { class SurroundingEnterprisesDetailPage extends StatefulWidget {
final HouseIntroduceModel houseIntroduceModel; final SurroundingEnterprisesModel houseIntroduceModel;
SurroundingEnterprisesDetailPage( SurroundingEnterprisesDetailPage(
{Key? key, required this.houseIntroduceModel}) {Key? key, required this.houseIntroduceModel})
@ -36,7 +36,7 @@ class _SurroundingEnterprisesDetailPageState
placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP, placeholder: R.ASSETS_IMAGES_PLACEHOLDER_WEBP,
fit: BoxFit.cover, fit: BoxFit.cover,
image: API image: API
.image(ImgModel.first(widget.houseIntroduceModel.imgUrls))), .image(ImgModel.first(widget.houseIntroduceModel.imgList))),
width: double.infinity, width: double.infinity,
height: 424.w, height: 424.w,
), ),

@ -1,32 +1,30 @@
import 'package:aku_community/models/house_introduce/house_introduce_model.dart'; import 'package:aku_new_community/base/base_style.dart';
import 'package:aku_community/models/surrounding_enterprises/surrounding_enterprises_model.dart'; import 'package:aku_new_community/const/resource.dart';
import 'package:aku_community/pages/surrounding_enterprises/surrounding_enterprises_detail_page.dart'; import 'package:aku_new_community/constants/api.dart';
import 'package:aku_new_community/constants/app_theme.dart';
import 'package:aku_new_community/extensions/num_ext.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/surrding_enterprises_detail_page.dart';
import 'package:aku_new_community/pages/things_page/widget/bee_list_view.dart';
import 'package:aku_new_community/widget/bee_scaffold.dart';
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart'; import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart'; import 'package:get/get.dart';
import 'package:velocity_x/velocity_x.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 { class SurroundingEnterprisesPage extends StatefulWidget {
SurroundingEnterprisesPage({Key? key}) : super(key: key); SurroundingEnterprisesPage({Key? key}) : super(key: key);
@override @override
_SurroundingEnterprisesPageState createState() => _SurroundingEnterprisesPageState(); _SurroundingEnterprisesPageState createState() =>
_SurroundingEnterprisesPageState();
} }
class _SurroundingEnterprisesPageState
extends State<SurroundingEnterprisesPage> {
class _SurroundingEnterprisesPageState extends State<SurroundingEnterprisesPage> {
EasyRefreshController _refreshController = EasyRefreshController(); EasyRefreshController _refreshController = EasyRefreshController();
int _page = 1; int _page = 1;
int _size = 10; int _size = 10;
@ -40,14 +38,14 @@ class _SurroundingEnterprisesPageState extends State<SurroundingEnterprisesPage>
// HiveStore.appBox!.put('IndustryCommitteePage',true); // HiveStore.appBox!.put('IndustryCommitteePage',true);
// } // }
// }); // });
} }
Widget _buildCard(SurroundingEnterprisesModel model) { Widget _buildCard(SurroundingEnterprisesModel model) {
return GestureDetector( return GestureDetector(
onTap: () { onTap: () {
Get.to(SurroundingEnterprisesDetailPage(surroundingEnterprisesModel: model,)); Get.to(SurroundingEnterprisesDetailPage(
houseIntroduceModel: model,
));
}, },
child: Container( child: Container(
padding: EdgeInsets.all(20.w), padding: EdgeInsets.all(20.w),
@ -80,8 +78,7 @@ class _SurroundingEnterprisesPageState extends State<SurroundingEnterprisesPage>
style: TextStyle( style: TextStyle(
fontSize: 30.sp, fontSize: 30.sp,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
color: ktextPrimary color: ktextPrimary),
),
maxLines: 4, maxLines: 4,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),
@ -91,11 +88,7 @@ class _SurroundingEnterprisesPageState extends State<SurroundingEnterprisesPage>
width: 440.w, width: 440.w,
child: Text( child: Text(
'${model.content}', '${model.content}',
style: TextStyle( style: TextStyle(fontSize: 24.sp, color: ktextPrimary),
fontSize: 24.sp,
color: ktextPrimary
),
maxLines: 2, maxLines: 2,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
), ),
@ -103,11 +96,7 @@ class _SurroundingEnterprisesPageState extends State<SurroundingEnterprisesPage>
Spacer(), Spacer(),
Row( Row(
children: [ children: [
'南宁人才公寓' '南宁人才公寓'.text.size(20.sp).color(ktextThirdColor).make(),
.text
.size(20.sp)
.color(ktextThirdColor)
.make(),
Spacer(), Spacer(),
'发布于:${model.getReleaseDate}' '发布于:${model.getReleaseDate}'
.text .text

@ -6,8 +6,6 @@ import FlutterMacOS
import Foundation import Foundation
import device_info_plus_macos import device_info_plus_macos
import firebase_core
import firebase_crashlytics
import package_info import package_info
import package_info_plus_macos import package_info_plus_macos
import path_provider_macos import path_provider_macos
@ -17,8 +15,6 @@ import url_launcher_macos
func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) { func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin")) DeviceInfoPlusMacosPlugin.register(with: registry.registrar(forPlugin: "DeviceInfoPlusMacosPlugin"))
FLTFirebaseCorePlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCorePlugin"))
FLTFirebaseCrashlyticsPlugin.register(with: registry.registrar(forPlugin: "FLTFirebaseCrashlyticsPlugin"))
FLTPackageInfoPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlugin")) FLTPackageInfoPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlugin"))
FLTPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlusPlugin")) FLTPackageInfoPlusPlugin.register(with: registry.registrar(forPlugin: "FLTPackageInfoPlusPlugin"))
PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin")) PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))

Loading…
Cancel
Save