Browse Source

联盟列表更改;

路径宽度更改
dev
huixiang_app 1 year ago
parent
commit
1a0c6f7282
  1. 4
      lib/store/store_view/store_info.dart
  2. 20
      lib/union/location_map_page.dart
  3. 10
      lib/union/union_list.dart
  4. 1
      lib/union/union_page.dart

4
lib/store/store_view/store_info.dart

@ -298,8 +298,8 @@ class _StoreInfoView extends State<StoreInfoView> {
text: "$e", text: "$e",
backgroup: Color(0xFFFF7A1A), backgroup: Color(0xFFFF7A1A),
padding: EdgeInsets.only( padding: EdgeInsets.only(
left: 2.w, left: 4.w,
right: 2.w, right: 4.w,
), ),
fontSize: 10.sp, fontSize: 10.sp,
textColor: Colors.white, textColor: Colors.white,

20
lib/union/location_map_page.dart

@ -1,4 +1,5 @@
import 'dart:convert'; import 'dart:convert';
import 'dart:io';
import 'dart:ui'; import 'dart:ui';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_baidu_mapapi_base/flutter_baidu_mapapi_base.dart'; import 'package:flutter_baidu_mapapi_base/flutter_baidu_mapapi_base.dart';
@ -162,7 +163,7 @@ class _LocationMap extends State<LocationMap> with WidgetsBindingObserver {
Expanded( Expanded(
child: Container( child: Container(
//BMFMapWidget ,BMFTextureMapWidget不会强制遮盖其他控件 //BMFMapWidget ,BMFTextureMapWidget不会强制遮盖其他控件
child: BMFTextureMapWidget( child: (Platform.isAndroid) ? BMFTextureMapWidget(
mapOptions: BMFMapOptions( mapOptions: BMFMapOptions(
center: BMFCoordinate( center: BMFCoordinate(
double.tryParse(widget.arguments["lat"]), double.tryParse(widget.arguments["lat"]),
@ -174,7 +175,20 @@ class _LocationMap extends State<LocationMap> with WidgetsBindingObserver {
zoomLevel: 15, zoomLevel: 15,
), ),
onBMFMapCreated: onMapCreated, onBMFMapCreated: onMapCreated,
)), ) :
BMFMapWidget(
mapOptions: BMFMapOptions(
center: BMFCoordinate(
double.tryParse(widget.arguments["lat"]),
double.tryParse(widget.arguments["lng"]),
),
showZoomControl: false,
showMapScaleBar: false,
rotateEnabled: false,
zoomLevel: 15,
),
onBMFMapCreated: onMapCreated,
)),
flex: 3, flex: 3,
), ),
navigationState == 0 navigationState == 0
@ -460,7 +474,7 @@ class _LocationMap extends State<LocationMap> with WidgetsBindingObserver {
? 'assets/image/traffic_texture_unknown.png' ? 'assets/image/traffic_texture_unknown.png'
: 'assets/image/traffic_texture_smooth.png' : 'assets/image/traffic_texture_smooth.png'
], ],
width: 16, width: 16.w.toInt(),
lineDashType: BMFLineDashType.LineDashTypeNone, lineDashType: BMFLineDashType.LineDashTypeNone,
lineCapType: BMFLineCapType.LineCapButt, lineCapType: BMFLineCapType.LineCapButt,
lineJoinType: BMFLineJoinType.LineJoinRound); lineJoinType: BMFLineJoinType.LineJoinRound);

10
lib/union/union_list.dart

@ -195,7 +195,7 @@ class _UnionList extends State<UnionList> with AutomaticKeepAliveClientMixin {
Widget buildStoreItem(Store store, position) { Widget buildStoreItem(Store store, position) {
return Container( return Container(
margin: EdgeInsets.fromLTRB(16.w, 8.h, 16.w, 12.h), margin: EdgeInsets.fromLTRB(16.w, 8.h, 16.w, 12.h),
padding: EdgeInsets.all(12.h), padding: EdgeInsets.symmetric(horizontal:12.w,vertical: 12.h),
decoration: BoxDecoration( decoration: BoxDecoration(
color: Colors.white, color: Colors.white,
borderRadius: BorderRadius.all(Radius.circular(6)), borderRadius: BorderRadius.all(Radius.circular(6)),
@ -208,7 +208,6 @@ class _UnionList extends State<UnionList> with AutomaticKeepAliveClientMixin {
) )
]), ]),
width: double.infinity, width: double.infinity,
// height: 235.h,
child: Row( child: Row(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
@ -307,7 +306,7 @@ class _UnionList extends State<UnionList> with AutomaticKeepAliveClientMixin {
SizedBox(height: store.businessService == "" ? 40.h : 23.h), SizedBox(height: store.businessService == "" ? 40.h : 23.h),
if (storeList[position].productShow != null) if (storeList[position].productShow != null)
Container( Container(
height: 120.h, height: 100.h,
child: ListView.builder( child: ListView.builder(
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
itemCount: itemCount:
@ -343,9 +342,9 @@ class _UnionList extends State<UnionList> with AutomaticKeepAliveClientMixin {
child: Container( child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xFFF65720), color: Color(0xFFF65720),
borderRadius: BorderRadius.circular(1), borderRadius: BorderRadius.circular(2),
), ),
padding: EdgeInsets.all(2), padding: EdgeInsets.symmetric(vertical:2.h,horizontal:3.w),
margin: EdgeInsets.only(right: 10.w), margin: EdgeInsets.only(right: 10.w),
child: Text( child: Text(
"$e", "$e",
@ -365,6 +364,7 @@ class _UnionList extends State<UnionList> with AutomaticKeepAliveClientMixin {
width: 74.h, width: 74.h,
margin: EdgeInsets.only(right: 8.w), margin: EdgeInsets.only(right: 8.w),
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.spaceAround,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
MImage( MImage(

1
lib/union/union_page.dart

@ -109,7 +109,6 @@ class UnionPageState extends State<UnionPage>
} }
}); });
queryIpInfo(); queryIpInfo();
// loadFinish(showLoading: false);
} }
startLocation() async { startLocation() async {

Loading…
Cancel
Save