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

个人网页htmlseo关键词排名如何

个人网页html,seo关键词排名如何,wordpress 拍卖主题,seo sem关键词优化下拉列表 内容和下拉列表的标题均可滑动 Expanded: 内容限制组件,将其子类中的无限扩展的界面限制在一定范围中。在此使用,是为了防止下拉列表中的内容超过了屏幕限制。 SingleChildScrollView: 这个组件,从名字中可…

下拉列表

内容和下拉列表的标题均可滑动

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);State<PulldownItem> createState() => _PulldownItemState();
}class _PulldownItemState extends State<PulldownItem>with SingleTickerProviderStateMixin {late AnimationController _animationController;late Animation<double> _animation;var _crossFadeState = CrossFadeState.showSecond;void initState() {super.initState();_animationController = AnimationController(duration: const Duration(milliseconds: 300), vsync: this);_animation = Tween(begin: .5, end: 0.0).animate(_animationController);}void dispose() {_animationController.dispose();super.dispose();}Widget 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.yayakq.cn/news/633224/

相关文章:

  • 手机网站怎样做西安网站建设技术外包
  • 怎么给自己制作一个网站北京市建设资格与执业资格注册中心网站
  • 做网站的技术要求高吗网站引导动画
  • wordpress网站的cdn怎么设置上海网站建设与设计公司好
  • 技术支持 昆明网站建设免费设计软件app
  • 汽车租赁网站设计学校网站asp源码
  • 推荐一下做年会视频的网站wordpress用户中心授权码
  • 做网站要用写接口app网站开发学习
  • 福州绿光网站建设工作室手机网站建设的整体流程
  • 做海报的网站有哪些视频网站开发要多少钱
  • 移动网站开发百科网站制作东莞
  • 仿网站建设教程视频旅游网站开发报价单
  • 怎样免费建一个网站手机网站表单验证
  • 山东丽天建设集团网站宁波seo推广优化公司
  • 成都做一个小企业网站需要多少钱网站建设教程答允苏州久远网络
  • 建设网站建设公司网站开发公司广告文案
  • 太原网站怎么做seo优秀的门户网站
  • 软件开发工具和环境百度关键词自然排名优化公司
  • 建设网站的公司兴田德润在哪里一个网站需要哪些技术
  • 电脑上如何做网站淘宝网官网登录网页版
  • 南宁网站忧化服务营销
  • 企业网站建设可行性分析软件开发办公
  • 企业网站做开放apiwordpress 用户信息
  • wordpress网站维护页面本地搭建网站网站后台
  • 长沙网站建设费用北京软件开发培训学校
  • 移动端网站建设的方案企业logo设计网站
  • 福州如何做百度的网站推广拉新任务的平台
  • 网站seo怎么优化个人建网站成本
  • 淮安做网站的有多少贵州灵溪seo整站优化
  • 做互联网的网站长沙网站关键词seo