|
|
@@ -1,10 +1,11 @@
|
|
|
import 'package:common_pub/model/distance.dart';
|
|
|
import 'package:flutter/material.dart';
|
|
|
import 'package:get/get.dart';
|
|
|
-import 'package:track_offical/service/api.dart' as api;
|
|
|
-import 'package:track_offical/utils.dart';
|
|
|
+import '../../../service/api.dart' as api;
|
|
|
+import '../../../utils.dart';
|
|
|
import 'package:common_pub/model/position.dart' as m;
|
|
|
import '../../../generated/assets.dart';
|
|
|
+import '../../../widget/app_net_image.dart';
|
|
|
|
|
|
typedef MapInfo = api.ToMapSimpleV2;
|
|
|
|
|
|
@@ -87,7 +88,7 @@ class MapPage extends StatelessWidget {
|
|
|
crossAxisSpacing: 10,
|
|
|
//设置主轴间距
|
|
|
mainAxisSpacing: 10,
|
|
|
- childAspectRatio: 0.66),
|
|
|
+ childAspectRatio: 1.3),
|
|
|
itemBuilder: (context, i) {
|
|
|
return GalleryCardWidget(data: c.mapList[i], position: c.position.value);
|
|
|
})))
|
|
|
@@ -126,10 +127,11 @@ class GalleryCardWidget extends StatelessWidget {
|
|
|
shape: const RoundedRectangleBorder(
|
|
|
borderRadius: BorderRadius.all(Radius.circular(5.44))),
|
|
|
clipBehavior: Clip.antiAlias,
|
|
|
+ elevation: 2,
|
|
|
child: Column(
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
children: [
|
|
|
- AspectRatio(aspectRatio: 1, child: wImage()),
|
|
|
+ AspectRatio(aspectRatio: 1.1, child: AppNetImage(netImage: data.image, fit: BoxFit.fitHeight)),
|
|
|
Expanded(
|
|
|
child: Padding(
|
|
|
padding: const EdgeInsets.all(6),
|
|
|
@@ -140,7 +142,7 @@ class GalleryCardWidget extends StatelessWidget {
|
|
|
Text(
|
|
|
data.name,
|
|
|
style: const TextStyle(
|
|
|
- fontSize: 15.24,
|
|
|
+ fontSize: 13.5,
|
|
|
fontWeight: FontWeight.w500,
|
|
|
),
|
|
|
textAlign: TextAlign.start,
|
|
|
@@ -150,7 +152,7 @@ class GalleryCardWidget extends StatelessWidget {
|
|
|
Text(
|
|
|
data.description,
|
|
|
style: const TextStyle(
|
|
|
- fontSize: 19,
|
|
|
+ fontSize: 10,
|
|
|
color: Color(0xffc6c6c6),
|
|
|
),
|
|
|
textAlign: TextAlign.start,
|
|
|
@@ -160,17 +162,17 @@ class GalleryCardWidget extends StatelessWidget {
|
|
|
const Spacer(),
|
|
|
DefaultTextStyle(
|
|
|
style: const TextStyle(
|
|
|
- color: Colors.black, fontSize: 14),
|
|
|
+ color: Colors.black, fontSize: 10),
|
|
|
child: Row(
|
|
|
crossAxisAlignment: CrossAxisAlignment.end,
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
children: [
|
|
|
Image.asset(Assets.imagesIcMapScale,
|
|
|
- height: 14),
|
|
|
+ height: 9.6),
|
|
|
Text(' 1:${data.mapScaleNumber}'),
|
|
|
const Spacer(),
|
|
|
Image.asset(Assets.imagesIcLocation,
|
|
|
- height: 14),
|
|
|
+ height: 9.6),
|
|
|
Text(' $distance'),
|
|
|
],
|
|
|
))
|
|
|
@@ -187,18 +189,8 @@ class GalleryCardWidget extends StatelessWidget {
|
|
|
children: [
|
|
|
SizedBox(
|
|
|
height: double.infinity,
|
|
|
- // child: AppNetImage(netImage: data.image, fit: BoxFit.fitHeight)
|
|
|
+ child: AppNetImage(netImage: data.image, fit: BoxFit.fitHeight)
|
|
|
),
|
|
|
- Container(
|
|
|
- width: double.infinity,
|
|
|
- height: double.infinity,
|
|
|
- color: Colors.white.withAlpha(178),
|
|
|
- alignment: Alignment.center,
|
|
|
- child: const Text(
|
|
|
- '待开放',
|
|
|
- style: TextStyle(color: Color(0xffff6203), fontSize: 15.24),
|
|
|
- ),
|
|
|
- )
|
|
|
],
|
|
|
);
|
|
|
}
|