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

网图素材库中国seo

网图素材库,中国seo,11月70款国产网络游戏获批,网站建设进度下拉列表 内容和下拉列表的标题均可滑动 Expanded#xff1a; 内容限制组件#xff0c;将其子类中的无限扩展的界面限制在一定范围中。在此使用#xff0c;是为了防止下拉列表中的内容超过了屏幕限制。 SingleChildScrollView#xff1a; 这个组件#xff0c;从名字中可…下拉列表 内容和下拉列表的标题均可滑动 Expanded 内容限制组件将其子类中的无限扩展的界面限制在一定范围中。在此使用是为了防止下拉列表中的内容超过了屏幕限制。 SingleChildScrollView 这个组件从名字中可以看出来不必多说是可以控制的滑动组件并且是其系统自带的 ExpansionTile 这个就是系统自带的下拉列表组件title中展示下拉列表的标题children[ ] 中展示下拉列表的内容。 Expanded(child: SingleChildScrollView( //滑动组件child: ExpansionTile( title: Text( //下拉列表的标题详细信息,style: TextStyle(fontWeight: FontWeight.bold, fontSize: ScreenUtil().setSp(32)),),children: [ //下拉列表中的内容Container(padding: EdgeInsets.only(left: 30, right: 20, bottom: 10),child: _patientinfo()),Container(padding: EdgeInsets.only(left: 30, right: 20, bottom: 10),child: _vitalsign(),),Container(padding: EdgeInsets.only(left: 30, right: 20, bottom: 20),child: _inspect(),),Container(padding: EdgeInsets.only(left: 30, right: 20, bottom: 20),child: _firstaid(),),Container(padding: EdgeInsets.only(left: 30, right: 20, bottom: 20),child: _handovertime(),),Container(padding: EdgeInsets.only(left: 30, right: 20, bottom: 20),child: _remarks(),),],)))使用这个三个组件进行嵌套的话是可以实现下拉列表滑动但是其标题也可以滑动了不满足策划需求。所以又做出了第二种方式。如下所示 内容均可滑动标题不滑动 为了使下拉列表的标题不动内容可以进行滑动系统自带的下拉列表不能满足条件通过不同的组件组合实现这个功能。 在此使用了InkWell组件。并且加载了动画在点击时动画展开面板如下图所示。 class PulldownItem extends StatefulWidget {PulldownItem({Key? key}) : super(key: key);overrideStatePulldownItem createState() _PulldownItemState(); }class _PulldownItemState extends StatePulldownItemwith SingleTickerProviderStateMixin {late AnimationController _animationController;late Animationdouble _animation;var _crossFadeState CrossFadeState.showSecond;overridevoid initState() {super.initState();_animationController AnimationController(duration: const Duration(milliseconds: 300), vsync: this);_animation Tween(begin: .5, end: 0.0).animate(_animationController);}overridevoid dispose() {_animationController.dispose();super.dispose();}overrideWidget build(BuildContext context) {return Container(width: double.infinity,margin: EdgeInsets.only(bottom: 30.w),child: Column(children: [InkWell(highlightColor: Colors.transparent,splashColor: Colors.transparent,onTap: () {if (_animationController.status AnimationStatus.completed) {_animationController.reverse();_crossFadeState CrossFadeState.showSecond;} else {_animationController.forward();_crossFadeState CrossFadeState.showFirst;}setState(() {});},child: Padding(padding: EdgeInsets.symmetric(horizontal: 32.w, vertical: 30.w),child: Row(children: [Text(widget.title, //下拉列表的标题style: TextStyle(fontSize: 32.sp,color: Colors.black,fontWeight: FontWeight.bold,height: 1),),const Spacer(),RotationTransition( //下拉列表右边的小三角形alignment: Alignment.center,turns: _animation,child: Image.asset(assets/login/select_img_ambulance.png,width: 46.w,fit: BoxFit.contain,),),],),),),Expanded(child: AnimatedCrossFade(duration: const Duration(milliseconds: 300),firstChild: Container(width: double.infinity,padding: EdgeInsets.symmetric(horizontal: 32.w),child: SingleChildScrollView(child: Column(children: [ //下拉列表的内容在此是可以滑动的Text(下拉列表的内容),],),),),secondChild: const SizedBox(width: double.infinity,),crossFadeState: _crossFadeState,),),],),);} }
http://www.hkea.cn/news/14317753/

相关文章:

  • 网站建设方案实例wordpress 抄袭查询
  • qq空间做网站东莞网站建设及外包
  • 韩国做hh网站icp网站 是什么意思
  • 路桥做网站的公司wordpress 显示微博内容
  • 为网站网站做网络维护wordpress如何更换编辑器
  • 做网站哪个公司最大连网络公司哪家好
  • 长春做网站优化哪家好易名域名解析到手机网站
  • 自己建设网站需要花多少钱fireworks做网站
  • wordpress做网站优点wordpress 显示浏览量
  • 江苏省工程建设协会网站一键急速安装wordpress
  • 招生网站建设板块网站建设 手机app
  • 有哪些网站制作公司沧浪网站建设
  • 旅游主题网站怎么做小软件开发
  • 制作网站的软件手机版四川省城乡和住房建设厅网站首页
  • ps做登录网站郑州住房和城乡建设局网站
  • 东莞企业网站建设营销广电如何做视频网站
  • 哈尔滨优化调整人员流动管理wordpress 自带seo
  • 坪地网站建设公司wordpress 树状目录
  • 阿里巴巴网站建设策略调研公司网站建设南宁
  • 长沙河东做网站年度考核表个人总结网站建设
  • 帝国cms网站源码做网站的软件有些什么
  • wordpress怎么做网站五大搜索引擎 三大门户网站
  • 上海app开发定制公司邯郸seo优化公司
  • 网站开发 职业环境分析凯里网站开发gzklyy
  • 公司及企业如何建立自己的购物网站官方商城下载
  • 网站设计公司那个好北京东站
  • 网站开发文档需求模板公司网站招聘的作用
  • 做pcr查基因序列的网站门户网站改造方案
  • 徐州集团网站建设方案wordpress2018主题
  • 一级 爰做片免费网站胶南网站建设多少钱