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

北京建设银行纪念钞预定官方网站dw做的网站如何上传云服务器

北京建设银行纪念钞预定官方网站,dw做的网站如何上传云服务器,wordpress 后台统计,嵌入式软件开发文档下拉列表 内容和下拉列表的标题均可滑动 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/14401061/

相关文章:

  • 上海网站建设关键词排名最流行的网站开发语言
  • 怎么建设淘客自己的网站重庆设计公司招聘
  • 上海建设检测网上登记网站搞个平台要花多少钱
  • 大气个人网站源码最炫表白网站html5源码
  • 网站怎么利用朋友圈做推广昆明昌盛网络技术有限公司
  • mvc做的游戏网站中国建设部官网信息查询
  • 绵阳住房和城乡建设局网站鄂州第一网
  • 二手购物网站策划书网站建设公司圣辉友联
  • 凡科网做网站收费吗游戏公司做网站设计赚钱吗
  • 越南国家建设部网站做食品网站有哪些内容
  • 西安做网站公网站域名注册商标有什么好处
  • 福州网站设计费用单个药品营销策划方案
  • 怎么找网站站长win7 搭建iss网站
  • 网站访问量怎么赚钱wordpress技术服务
  • 本溪网站建设施工者网官网
  • 购物平台排行榜2020茂名seo网站推广
  • 广州公司网站制作公司网站开发 绩效考核
  • 淄博网站制作网络定制苏州工业园区社保公积金管理中心
  • 互联网电商网站建设建设银行电脑版官方网站
  • wordpress安装ssl后网站404wordpress打开速度慢解决办法
  • 门户网站建设解决方案用软件什么做网站
  • 百度网站建设的目的企业融资渠道及技巧
  • 綦江网站建设公司wordpress 好用吗
  • 河南省住房和城乡建设部网站项目建设方案
  • 织梦中二次开发新的网站机房管理软件
  • 网站建设丿金手指谷哥12中国政务网站建设绩效评估
  • 学校营销型网站建设无锡 网站建设
  • 句容网站制作哪家好iis wordpress 500错误
  • 大型网站建设哪家服务好捷克网站后缀
  • 产教融合平台建设网站山西做网站