Browse Source

轮播时长更改

new_revision_app
wurong 2 years ago
parent
commit
ccac5f3938
  1. 6
      lib/community/community_view/course_banner.dart
  2. 4
      lib/home/home_view/home_banner.dart
  3. 5
      lib/home/huixiang_view/huixiang_banner.dart
  4. 2
      lib/retrofit/min_api.dart
  5. 2
      lib/retrofit/retrofit_api.dart
  6. 4
      lib/store/store_order.dart

6
lib/community/community_view/course_banner.dart

@ -38,8 +38,8 @@ class _CourseBanner extends State<CourseBanner> {
viewportFraction: 0.88,
scale: 0.93,
autoplay: true,
duration: 1500,
autoplayDelay: 2500,
duration: 1000,
autoplayDelay: 2000,
pagination: SwiperPagination(
alignment: Alignment.bottomCenter,
builder: DotSwiperPaginationBuilder(
@ -60,7 +60,7 @@ class _CourseBanner extends State<CourseBanner> {
(widget.bannerData != null && position < widget.bannerData.length)
? widget.bannerData[position].imgUrl
: "",
fit: BoxFit.cover,
fit: BoxFit.fill,
radius: BorderRadius.circular(8),
errorSrc: "assets/image/default_2_1.webp",
fadeSrc: "assets/image/default_2_1.webp",

4
lib/home/home_view/home_banner.dart

@ -37,8 +37,8 @@ class _HomeBanner extends State<HomeBanner> {
),
),
autoplay: true,
duration: 1500,
autoplayDelay: 2500,
duration: 1000,
autoplayDelay: 2000,
controller: widget.controller,
physics: BouncingScrollPhysics(),
itemBuilder: (context, position) {

5
lib/home/huixiang_view/huixiang_banner.dart

@ -28,6 +28,9 @@ class _HuiXiangBanner extends State<HuiXiangBanner> {
child: Swiper(
viewportFraction: 0.88,
scale: 0.93,
autoplay: true,
duration: 1000,
autoplayDelay: 2000,
pagination: SwiperPagination(
alignment: Alignment.bottomCenter,
builder: DotSwiperPaginationBuilder(
@ -48,7 +51,7 @@ class _HuiXiangBanner extends State<HuiXiangBanner> {
(widget.bannerData != null && position < widget.bannerData.length)
? widget.bannerData[position].imgUrl
: "",
fit: BoxFit.cover,
fit: BoxFit.fill,
radius: BorderRadius.circular(8),
errorSrc: "assets/image/default_2_1.webp",
fadeSrc: "assets/image/default_2_1.webp",

2
lib/retrofit/min_api.dart

@ -26,7 +26,7 @@ import 'data/shopping_home_config.dart';
part 'min_api.g.dart';
const localBaseUrl = "http://192.168.10.78:8765/app/";///
const localBaseUrl = "http://192.168.10.24:8765/app/";///
// const localBaseUrl = "https://2946-27-19-77-115.jp.ngrok.io/app/";///
const serviceBaseUrl = "https://pos.api.lotus-wallet.com/app/";///线

2
lib/retrofit/retrofit_api.dart

@ -64,7 +64,7 @@ import 'data/wx_pay.dart';
part 'retrofit_api.g.dart';
const localBaseUrl = "http://192.168.10.78:8766/app/";///
const localBaseUrl = "http://192.168.10.24:8766/app/";///
// const localBaseUrl = "https://2946-27-19-77-115.jp.ngrok.io/app/";///
const serviceBaseUrl = "https://pos.platform.lotus-wallet.com/app/";///线

4
lib/store/store_order.dart

@ -677,8 +677,8 @@ class _StoreOrderPage extends State<StoreOrderPage>
),
),
autoplay: true,
duration: 1500,
autoplayDelay: 2500,
duration: 1000,
autoplayDelay: 2000,
itemBuilder: (context, position) {
return Container(
child: MImage(

Loading…
Cancel
Save