|
|
|
@ -22,8 +22,6 @@ import 'package:huixiang/view_widget/classic_header.dart';
|
|
|
|
|
import 'package:huixiang/view_widget/custom_image.dart'; |
|
|
|
|
import 'package:huixiang/view_widget/icon_text.dart'; |
|
|
|
|
import 'package:huixiang/view_widget/item_title.dart'; |
|
|
|
|
import 'package:huixiang/view_widget/request_permission.dart'; |
|
|
|
|
import 'package:permission_handler/permission_handler.dart'; |
|
|
|
|
import 'package:pull_to_refresh/pull_to_refresh.dart'; |
|
|
|
|
import 'package:shared_preferences/shared_preferences.dart'; |
|
|
|
|
import 'package:flutter/rendering.dart'; |
|
|
|
@ -432,8 +430,8 @@ class _UnionPage extends State<UnionPage>
|
|
|
|
|
children: [ |
|
|
|
|
MImage( |
|
|
|
|
store.logo, |
|
|
|
|
width: 100.h, |
|
|
|
|
height: 100.h, |
|
|
|
|
width: 100, |
|
|
|
|
height: 100, |
|
|
|
|
fit: BoxFit.cover, |
|
|
|
|
errorSrc: "assets/image/default_1.png", |
|
|
|
|
fadeSrc: "assets/image/default_1.png", |
|
|
|
@ -526,8 +524,8 @@ class _UnionPage extends State<UnionPage>
|
|
|
|
|
padding: EdgeInsets.only(top: 1.h, left: 2, right: 2), |
|
|
|
|
child: Image.asset( |
|
|
|
|
"assets/image/icon_union_location_black.png", |
|
|
|
|
width: 14.w, |
|
|
|
|
height: 14.w, |
|
|
|
|
width: 14, |
|
|
|
|
height: 14, |
|
|
|
|
), |
|
|
|
|
), |
|
|
|
|
Expanded( |
|
|
|
@ -554,7 +552,8 @@ class _UnionPage extends State<UnionPage>
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center, |
|
|
|
|
children: [ |
|
|
|
|
IconText( |
|
|
|
|
(store.openStartTime == null && store.openEndTime == null) |
|
|
|
|
(store.openStartTime == null && |
|
|
|
|
store.openEndTime == null) |
|
|
|
|
? S.of(context).quantian |
|
|
|
|
: "${store.openStartTime.substring(0, store.openStartTime.lastIndexOf(":"))} - ${store.openEndTime.substring(0, store.openEndTime.lastIndexOf(":"))}", |
|
|
|
|
textStyle: TextStyle( |
|
|
|
@ -567,8 +566,12 @@ class _UnionPage extends State<UnionPage>
|
|
|
|
|
Visibility( |
|
|
|
|
child: Text( |
|
|
|
|
(store.distance ?? 0) > 1000 |
|
|
|
|
? S.of(context).gongli(((store.distance ?? 0) / 1000 * 100) .toInt() / 100.0) |
|
|
|
|
: S.of(context).mi(((store.distance ?? 0) * 100).toInt() / 100.0), |
|
|
|
|
? S.of(context).gongli( |
|
|
|
|
((store.distance ?? 0) / 1000 * 100).toInt() / |
|
|
|
|
100.0) |
|
|
|
|
: S.of(context).mi( |
|
|
|
|
((store.distance ?? 0) * 100).toInt() / |
|
|
|
|
100.0), |
|
|
|
|
style: TextStyle( |
|
|
|
|
color: Color(0xFF4C4C4C), |
|
|
|
|
fontSize: 12, |
|
|
|
|