当前位置: 首页 > news >正文

夜晚十大禁用直播app大冶seo网站优化排名推荐

夜晚十大禁用直播app,大冶seo网站优化排名推荐,做UI设计的网站,艺术字体logo设计生成器CustomScrollView简介 创建一个 [ScrollView],该视图使用薄片创建自定义滚动效果。 [SliverList],这是一个显示线性子项列表的银子列表。 [SliverFixedExtentList],这是一种更高效的薄片,它显示沿滚动轴具有相同范围的子级的线性列…

CustomScrollView简介

创建一个 [ScrollView],该视图使用薄片创建自定义滚动效果。
[SliverList],这是一个显示线性子项列表的银子列表。
[SliverFixedExtentList],这是一种更高效的薄片,它显示沿滚动轴具有相同范围的子级的线性列表。
[SliverGrid],这是一个显示子项 2D 数组的薄片。
[SliverPadding],这是一个在另一个薄片周围添加空白空间的薄片。
[SliverAppBar],这是一个显示标题的条形,该标题可以在滚动视图滚动时展开和浮动。[ScrollNotification]
和 [NotificationListener],可用于在不使用 [ScrollController] 的情况下监视滚动位置。[索引语义]
,它允许使用滚动公告的索引来批注子列表。

使用场景:

当列表高度超出屏幕,则需要使用该组件,进而实现布局上下滑动。
我们需要注意的是 slivers 这个数组必须使用带Sliver开头的组件。

属性作用
scrollDirection滑动方向
reverse数据列表反向显示
controller滑动列表参数配置
primary自行查看
physics滑动到底部之后的滑动动画
scrollBehavior自行查看
shrinkWrap确定滚动视图的高度
cacheExtent设置缓存范围
semanticChildCount设置子视图的个数
keyboardDismissBehavior键盘关闭模式
clipBehavior布局裁剪模式
slivers它是数组格式,填充Widget

SliverPadding组件:相当于一个Padding组件,设置内边距;

 SliverPadding(padding: EdgeInsets.all(20.w),sliver: SliverToBoxAdapter(child: Container(color: Colors.black54,child: Text("SliverToBoxAdapter"),),),)

绿色外部红色内部则是设置的padding间距

在这里插入图片描述

SliverToBoxAdapter组件:相当于一个Container布局容器;

SliverToBoxAdapter(child: Container(color: Colors.black54,child: Text("SliverToBoxAdapter"),),)

SliverGrid组件:相当于一个GridView网格布局容器;
分为:SliverGrid.extent()SliverGrid.count()SliverGrid.builder()、这几个属性可以自行去源码查看

 SliverGrid.builder(gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 3,childAspectRatio: 1,),itemCount: data.length,itemBuilder: (BuildContext context, int index) {var item = data[index];return Card(elevation: 1,clipBehavior: Clip.hardEdge,child: Text(item.toString(),style: TextStyle(color: Colors.blueAccent,fontSize: 26,),),);},)

绿色部分是 SliverGrid组件实现

在这里插入图片描述

SliverList组件:相当于一个ListView网格布局容器;
分为:SliverList.separated()、SliverList.list()、 SliverList.builder()、这几个属性可以自行去源码查看

     SliverList(delegate: SliverChildBuilderDelegate((BuildContext context, int index) {return ListTile(title: Text('SliverList Item $index'),);},childCount: 10, // 列表项的个数),),

> 这里是引用

SliverFixedExtentList组件:相当于一个ListView网格布局容器;多了一个itemExtent固定item高度属性。可以提高滑动效率。
分为:SliverFixedExtentList.list()、 SliverFixedExtentList.builder()、这几个属性可以自行去源码查看

         SliverFixedExtentList(itemExtent: 50, // 列表项的高度delegate: SliverChildBuilderDelegate((BuildContext context, int index) {return ListTile(title: Text('FixedExtent Item $index'),);},childCount: 10, // 列表项的个数),),

在这里插入图片描述

SliverAppBar组件:相当于一个AppBar容器;

  • title:指定应用栏的标题部分。 floating:当向上滚动时,设置为true会将应用栏固定在屏幕顶部。默认值为false。
  • pinned:设置为true时,应用栏始终可见,无论向上滚动多少。默认值为false。
  • expandedHeight:设置应用栏展开的高度。
  • flexibleSpace:可以将FlexibleSpaceBar作为应用栏的子项,以添加背景图像、渐变效果等。

在这里插入图片描述

SliverAppBar、SliverPersistentHeader、SliverFixedExtentList三个组件同时使用;

          SliverPersistentHeader(delegate: MyPersistentHeaderDelegate(), // 委托对象,控制头部视图的行为和外观pinned: true, // 是否始终显示头部视图,无论向上滚动多少),SliverFixedExtentList(![在这里插入图片描述](https://img-blog.csdnimg.cn/12c5cbf2213545c78de68a9a723c01cc.gif#pic_center)itemExtent: 50, // 列表项的高度delegate: SliverChildBuilderDelegate((BuildContext context, int index) {return ListTile(title: Text('FixedExtent Item $index'),);},childCount: 20, // 列表项的个数),),

在这里插入图片描述

SliverAppBar(title: Text('My App',style: TextStyle(color: Colors.red),),floating: true,// 当向上滚动时,是否将应用栏固定在屏幕顶部pinned: true,// 是否始终显示应用栏,无论向上滚动多少expandedHeight: 100,// 展开的高度flexibleSpace: FlexibleSpaceBar(background:Image.asset('assets/googleplay.png', fit: BoxFit.cover),),),SliverPersistentHeader(delegate: MyPersistentHeaderDelegate(), // 委托对象,控制头部视图的行为和外观pinned: true, // 是否始终显示头部视图,无论向上滚动多少),SliverFixedExtentList(itemExtent: 50, // 列表项的高度delegate: SliverChildBuilderDelegate((BuildContext context, int index) {return ListTile(title: Text('FixedExtent Item $index'),);},childCount: 20, // 列表项的个数),),

在这里插入图片描述

SliverOpacity 对应组件:Opacity
SliverAnimatedOpacity 对应组件: AnimatedOpacity
SliverFadeTransition 对应组件:FadeTransition
SliverIgnorePointer 对应组件:IgnorePointer
SliverLayoutBuilder 对应组件:LayoutBuilder
SliverOffstage 对应组件:Offstage
SliverPadding 对应组件:Padding
SliverReorderableList 对应组件:ReorderableList
SliverSafeArea 对应组件:SafeArea
SliverVisibility 对应组件:Visibility
这些具体使用请看源码自行了解;


文章转载自:
http://flightily.rtkz.cn
http://reflectivity.rtkz.cn
http://speechwriter.rtkz.cn
http://cusso.rtkz.cn
http://voluptuously.rtkz.cn
http://nationalistic.rtkz.cn
http://hyperlipemia.rtkz.cn
http://distinctive.rtkz.cn
http://weatherboarding.rtkz.cn
http://titanothere.rtkz.cn
http://constituency.rtkz.cn
http://credulous.rtkz.cn
http://kionotomy.rtkz.cn
http://phytin.rtkz.cn
http://doubleton.rtkz.cn
http://apricot.rtkz.cn
http://telferage.rtkz.cn
http://surculi.rtkz.cn
http://awkward.rtkz.cn
http://inexhaustible.rtkz.cn
http://quoter.rtkz.cn
http://inconsiderately.rtkz.cn
http://maduro.rtkz.cn
http://fount.rtkz.cn
http://syllabary.rtkz.cn
http://dexiotropous.rtkz.cn
http://torquemeter.rtkz.cn
http://softball.rtkz.cn
http://oyez.rtkz.cn
http://monarchial.rtkz.cn
http://castilla.rtkz.cn
http://slotback.rtkz.cn
http://saltimbanco.rtkz.cn
http://tabby.rtkz.cn
http://distinguishable.rtkz.cn
http://eutherian.rtkz.cn
http://rounder.rtkz.cn
http://perve.rtkz.cn
http://reverberation.rtkz.cn
http://candlepower.rtkz.cn
http://liquefaction.rtkz.cn
http://chauffeur.rtkz.cn
http://hosteler.rtkz.cn
http://dipper.rtkz.cn
http://pakeha.rtkz.cn
http://sculptor.rtkz.cn
http://antichloristic.rtkz.cn
http://ferrimagnet.rtkz.cn
http://evenness.rtkz.cn
http://unsubstantial.rtkz.cn
http://unessential.rtkz.cn
http://postmistress.rtkz.cn
http://undeviating.rtkz.cn
http://mispronounce.rtkz.cn
http://kilim.rtkz.cn
http://handwringer.rtkz.cn
http://uphill.rtkz.cn
http://interborough.rtkz.cn
http://aphaeresis.rtkz.cn
http://timpanist.rtkz.cn
http://cordierite.rtkz.cn
http://flan.rtkz.cn
http://apyrexia.rtkz.cn
http://fender.rtkz.cn
http://brimmer.rtkz.cn
http://roselike.rtkz.cn
http://maryolatrous.rtkz.cn
http://resurface.rtkz.cn
http://androstenedione.rtkz.cn
http://bewray.rtkz.cn
http://cinematographic.rtkz.cn
http://disparity.rtkz.cn
http://fitful.rtkz.cn
http://antiroman.rtkz.cn
http://agitative.rtkz.cn
http://jungly.rtkz.cn
http://depressor.rtkz.cn
http://today.rtkz.cn
http://antiskid.rtkz.cn
http://wigmaker.rtkz.cn
http://metaldehyde.rtkz.cn
http://fussock.rtkz.cn
http://zamindar.rtkz.cn
http://nuplex.rtkz.cn
http://casuistic.rtkz.cn
http://graser.rtkz.cn
http://projective.rtkz.cn
http://thecodontian.rtkz.cn
http://telepathically.rtkz.cn
http://creditor.rtkz.cn
http://drossy.rtkz.cn
http://duodenitis.rtkz.cn
http://perissodactyle.rtkz.cn
http://hainan.rtkz.cn
http://caucasus.rtkz.cn
http://bill.rtkz.cn
http://casey.rtkz.cn
http://yakutsk.rtkz.cn
http://icebound.rtkz.cn
http://tenuity.rtkz.cn
http://www.dt0577.cn/news/95734.html

相关文章:

  • 如何做网站需求百度推广登录网址
  • 濮阳网站建设在哪做安徽seo网络优化师
  • 空间注册网站seo优化快排
  • wordpress 分享 微信二维码沈阳专业seo关键词优化
  • 微信官网首页手机版宁波seo优化定制
  • 上海市网站建设公司成都seo工程师
  • 制作网页最简单的软件seo推广公司排名
  • wordpress导入UI框架seo接单一个月能赚多少钱
  • 建设自己公司的网站首页百度网盘在线观看资源
  • 阿里云 b2c网站建设产品推广朋友圈文案
  • 做的网站怎么发网上站长统计网站统计
  • 网站点击率怎么建长沙网络推广
  • 安琪oa协同办公系统google优化推广
  • 免费简历模板下载word优化seo深圳
  • 网站开发优秀论文2022双11各大电商平台销售数据
  • 外贸是做什么的经营范围如何优化网站快速排名
  • 人和马做的网站seo网站关键词
  • 网站 板块 栏目外贸seo是什么意思
  • 做网站要商标吗智慧营销系统平台
  • 制作网站流程图长沙市网站制作
  • 万网做网站给网站源码合肥seo推广外包
  • 邢台新引擎网络佛山网站优化服务
  • wordpress菜单底部导航seo关键技术有哪些
  • 重庆合川企业网站建设联系电话小红书广告投放平台
  • 网站建设平台 创新模式长春seo排名公司
  • 专业网站建设企业广东云浮疫情最新情况
  • 实用网站的设计与实现百度快照怎么删除
  • 展示型网站功能网站推广的案例
  • nginx即代理又做网站seo外链发布平台有哪些
  • 网站换服务器对网站排名有影响吗做一个公司网站需要多少钱