Browse Source

UI调整

dart3_last
fff 2 weeks ago
parent
commit
4352be2d89
  1. 3
      lib/constant.dart
  2. 9
      lib/home/home_page.dart
  3. 2
      lib/view_widget/custom_image.dart

3
lib/constant.dart

@ -20,8 +20,7 @@ const serviceMiniBaseUrl = "https://pos.api.yixinhuixiang.com/app/";
///线
/// app接口的请求地址
// const localBaseUrl = "http://192.168.10.54:8766/app/"; ///
const localBaseUrl = "https://pos.platform.yixinhuixiang.com/app/"; ///
const localBaseUrl = "http://192.168.10.54:8766/app/"; ///
///线
const serviceBaseUrl = "https://pos.platform.yixinhuixiang.com/app/";

9
lib/home/home_page.dart

@ -6,6 +6,8 @@ import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
import 'package:flutter_swiper_view/flutter_swiper_view.dart';
import 'package:get/get.dart';
import 'package:get/utils.dart';
import 'package:huixiang/data/activity_pos.dart';
import 'package:huixiang/data/article.dart';
import 'package:huixiang/data/banner.dart';
@ -51,9 +53,7 @@ class HomePage extends StatefulWidget {
final List<InterviewCouponList>? interviewCouponList;
final List<FirstLoginCouponList>? firstLoginCouponList;
HomePage(Key key, this.changeTab,
{this.invite, this.interviewCouponList, this.firstLoginCouponList})
: super(key: key);
HomePage(Key key, this.changeTab, {this.invite, this.interviewCouponList, this.firstLoginCouponList}) : super(key: key);
@override
State<StatefulWidget> createState() {
@ -607,7 +607,6 @@ class HomePageState extends State<HomePage> with AutomaticKeepAliveClientMixin {
Widget spread() {
return Container(
width: double.infinity,
// margin: EdgeInsets.symmetric(horizontal:14.w),
height: 85.h,
child: activityBannerData.isNotEmpty
? Swiper(
@ -633,7 +632,7 @@ class HomePageState extends State<HomePage> with AutomaticKeepAliveClientMixin {
spreadBannerClick(activityBannerData[position]);
},
child: Container(
margin: EdgeInsets.symmetric(horizontal: 14.w),
padding: EdgeInsets.symmetric(horizontal: 14.w),
child: MImage(
activityBannerData[position].imgUrl ?? "",
fit: BoxFit.cover,

2
lib/view_widget/custom_image.dart

@ -74,7 +74,7 @@ class MImage extends StatelessWidget {
}
}
debugPrint("imageUrl: $imageUrl");
// debugPrint("imageUrl: $imageUrl");
if (imageUrl.isEmpty) {
return Image.asset(

Loading…
Cancel
Save