|
@@ -1,3 +1,4 @@
|
|
|
+import 'package:cpt_community/modules/garage/for_rent/for_rent_page.dart';
|
|
|
import 'package:cs_resources/generated/assets.dart';
|
|
|
import 'package:flutter/material.dart';
|
|
|
import 'package:auto_route/auto_route.dart';
|
|
@@ -7,6 +8,7 @@ import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|
|
import 'package:plugin_basic/provider/app_config/app_config_service.dart';
|
|
|
import 'package:router/ext/auto_router_extensions.dart';
|
|
|
import 'package:shared/utils/color_utils.dart';
|
|
|
+import 'package:shared/utils/ext_dart.dart';
|
|
|
import 'package:shared/utils/log_utils.dart';
|
|
|
import 'package:shared/utils/screen_util.dart';
|
|
|
import 'package:widgets/load_state_layout.dart';
|
|
@@ -88,7 +90,8 @@ class ForsalePage extends HookConsumerWidget {
|
|
|
mainAxisSpacing: 15,
|
|
|
crossAxisSpacing: 15,
|
|
|
// childAspectRatio: 166.5/214, // 宽高比
|
|
|
- childAspectRatio: 166.5/214 * ScreenUtil.getAdapterSizeCtx(context, 166.5/214), // 宽高比
|
|
|
+ // childAspectRatio: 166.5/214 * ScreenUtil.getAdapterSizeCtx(context, 166.5/214), // 宽高比
|
|
|
+ childAspectRatio: 166.5/214 * ((166.5/214).ap), // 宽高比
|
|
|
),
|
|
|
delegate: SliverChildBuilderDelegate(
|
|
|
(context, index) {
|