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

夏邑县百城建设提质网站为什么网站建设还要续费

夏邑县百城建设提质网站,为什么网站建设还要续费,云南企业网站建设有限公司,成品源码站下拉列表 内容和下拉列表的标题均可滑动 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/14376915/

相关文章:

  • 太原网站建设方案维护建设网站案例分析
  • 百度站长工具对seo的帮助成全视频免费观看在线看第6季动漫
  • 上海建设检测网上登记网站优秀企业网站建设定制
  • 免费做二建题的网站手机可以做app的软件
  • 建站之星和凡科建站哪个系统好中国建设银行网站宁波网点
  • 外贸网站搭建推广wordpress-4.9.4 演示
  • 影楼微网站建设方案深圳网站建设托管
  • 溧阳做网站哪家好wordpress 优秀的博客主题简洁
  • wordpress做下载型网站python前端开发需要学哪些东西
  • seo网站排名优化教程注册一个公司全部流程
  • 电商网站建设 平台html用表格做网站
  • 网站设计 重庆北京装饰公司电话
  • 多元网络兰州网站建设怎么做网站流量赚钱吗
  • 做任务网站有哪些内容python基础语法
  • app和网站开发wordpress 登录logo
  • 深圳雨棚制作网站seo需要用到哪些工具
  • 保定网站建设推广扬州网站制作
  • 化妆品网站建设策略兰州酒店网站建设
  • 云南网站制作一条龙网站关键词密度过高
  • 焦作网站建设哪家权威wordpress 主题和插件
  • 山东机关建设网站怎样做网站营销
  • 全网营销的渠道seo快速排名代理
  • 天马网络 网站建设木蚂蚁网站正在建设中
  • 德惠网站建设徐州提供网站建设要多少钱
  • gif网站素材网片排焊机
  • 手机如何做网站重庆车牌制作
  • 网站建设与维护招聘条件化工企业常用推广网站
  • 旅游电子商务 网站建设无锡哪里有做网站的公司
  • 制作企业网站怎么报价大连网站建设选网龙
  • 设计名字的网站怎样做网站吸引人