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接口的请求地址 /// app接口的请求地址
// const localBaseUrl = "http://192.168.10.54:8766/app/"; /// const localBaseUrl = "http://192.168.10.54:8766/app/"; ///
const localBaseUrl = "https://pos.platform.yixinhuixiang.com/app/"; ///
///线 ///线
const serviceBaseUrl = "https://pos.platform.yixinhuixiang.com/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_screenutil/flutter_screenutil.dart';
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart'; import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
import 'package:flutter_swiper_view/flutter_swiper_view.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/activity_pos.dart';
import 'package:huixiang/data/article.dart'; import 'package:huixiang/data/article.dart';
import 'package:huixiang/data/banner.dart'; import 'package:huixiang/data/banner.dart';
@ -51,9 +53,7 @@ class HomePage extends StatefulWidget {
final List<InterviewCouponList>? interviewCouponList; final List<InterviewCouponList>? interviewCouponList;
final List<FirstLoginCouponList>? firstLoginCouponList; final List<FirstLoginCouponList>? firstLoginCouponList;
HomePage(Key key, this.changeTab, HomePage(Key key, this.changeTab, {this.invite, this.interviewCouponList, this.firstLoginCouponList}) : super(key: key);
{this.invite, this.interviewCouponList, this.firstLoginCouponList})
: super(key: key);
@override @override
State<StatefulWidget> createState() { State<StatefulWidget> createState() {
@ -607,7 +607,6 @@ class HomePageState extends State<HomePage> with AutomaticKeepAliveClientMixin {
Widget spread() { Widget spread() {
return Container( return Container(
width: double.infinity, width: double.infinity,
// margin: EdgeInsets.symmetric(horizontal:14.w),
height: 85.h, height: 85.h,
child: activityBannerData.isNotEmpty child: activityBannerData.isNotEmpty
? Swiper( ? Swiper(
@ -633,7 +632,7 @@ class HomePageState extends State<HomePage> with AutomaticKeepAliveClientMixin {
spreadBannerClick(activityBannerData[position]); spreadBannerClick(activityBannerData[position]);
}, },
child: Container( child: Container(
margin: EdgeInsets.symmetric(horizontal: 14.w), padding: EdgeInsets.symmetric(horizontal: 14.w),
child: MImage( child: MImage(
activityBannerData[position].imgUrl ?? "", activityBannerData[position].imgUrl ?? "",
fit: BoxFit.cover, 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) { if (imageUrl.isEmpty) {
return Image.asset( return Image.asset(

Loading…
Cancel
Save