当前位置:网站首页>flutter_swiper 轮播图 插件
flutter_swiper 轮播图 插件
2022-06-11 00:45:00 【weixin_38107457】
flutter_swiper_null_safety: ^1.0.2 # 轮播图
属性解读(常用)
Swiper(
scrollDirection: Axis.horizontal,// 方向 Axis.horizontal Axis.vertical
itemCount: 4, // 展示数量
autoplay: true,// 自动翻页
itemBuilder:(){...},// 布局构建
onTap:(){...}, // 点击时间
pagination: SwiperPagination(), // 分页指示
viewportFraction: 0.8, // 视窗比例
layout: SwiperLayout.STACK, // 布局方式
itemWidth: MediaQuery.of(context).size.width, // 条目宽度
itemHeight: MediaQuery.of(context).size.height, // 条目高度
autoplayDisableOnInteraction: true, // 用户进行操作时停止自动翻页
loop: true, // 无线轮播
indicatorLayout: PageIndicatorLayout.SLIDE, // 指标布局 试了半天也没试出来这是啥
)
去掉control:属性,图上的左右控制翻页按钮就会消失了。
Container(
height: ScreenUtil().setHeight(300), // 高度 插件 flutter_screenutil
child: Swiper(
边栏推荐
- 2021-2-26编程语言知识点整理
- Daily problem essay | 21.11.29: use resttemplate to call external put request, and prompt '400 bad request'
- Leetcode 1094 car pooling (Analog)
- 2.0、ROS与PX4通信详解
- Makefile:1860: recipe for target ‘cmake_ check_ build_ system‘ failed make: *** [cmake_check_build_syst
- Px4 from abandonment to mastery (twenty four): customized model
- 晚餐阿帮的手艺
- 1.2. Ros+px4 preliminary basic knowledge
- threejs:如何获得几何体的boundingBox?
- Detectron2 trains its own dataset and converts it to coco format
猜你喜欢

detectron2训练自己的数据集和转coco格式
![[ROS] review of 2021 ROS Summer School](/img/1c/588d29b60071628c7c9fdce17e8b84.jpg)
[ROS] review of 2021 ROS Summer School

Function of barcode fixed assets management system, barcode management of fixed assets
![[geometric vision] 4.2 piecewise linear transformation](/img/9e/ad010e0b55c88f2c0244442ae20fb3.jpg)
[geometric vision] 4.2 piecewise linear transformation

Hao expresses his opinions: what small good habits have you adhered to?

Detailed explanation of classic papers on OCR character recognition

Garbled code when the command parameter contains% in VisualStudio debugging
![[Li mu] how to read papers [intensive reading of papers]](/img/41/7e1ff1db2f7a848c8702c186c79fe5.jpg)
[Li mu] how to read papers [intensive reading of papers]

1.4PX4程序下载

CLIP论文详解
随机推荐
1.5 Px4 vehicle selection
Leetcode 1116 print zero even odd (concurrent multithreading countdownlatch lock condition)
2021-2-26编程语言知识点整理
Negative number +0+ positive number
I was so excited about the college entrance examination in 2022
How to use user-defined annotation for parameter verification
Uninstall mavros
Leetcode linked list queue stack problem
Px4 installation tutorial (VI) vertical fixed wing (tilting)
1.2、ROS+PX4预备基础知识
1.5、PX4载具选择
1.2. Ros+px4 preliminary basic knowledge
MeterSphere教程:接口返回结果为空时如何进行断言
2021-2-14 gephi学习笔记
数字ic设计自学ing
Daily problem essay | 21.11.29: use resttemplate to call external put request, and prompt '400 bad request'
Classic questions: 01 backpack, complete backpack, multiple backpack, two-dimensional cost Backpack
负数+0+正数
On permutation and combination in probability and statistics
Linux安装mysql数据库详解