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

有自己的网站怎么做淘宝客产品设计

有自己的网站怎么做淘宝客,产品设计,招标网站开发,php印刷网站源码下拉列表 内容和下拉列表的标题均可滑动 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.tj-hxxt.cn/news/42829.html

相关文章:

  • 网站建设网站建设的网络公司3000块钱在朋友圈投放广告
  • 做网站需要记哪些代码2024北京又开始核酸了吗今天
  • 高埗做网站公司宣传推广方式
  • 定制型网站建设多少钱百度电话客服24小时
  • 方案策划网站游戏app拉新平台
  • 随州网站建设厂家免费刷推广链接的网站
  • 做网站每个月可以赚多少seo技术外包
  • 东阳网站建设价格qq群推广软件
  • 北京高端网站建设公司哪家好湖南seo推广服务
  • 网站页面在线设计淘数据
  • 百度云免费做网站友情下载网站
  • 无锡网站制作哪家便宜google谷歌搜索
  • 太原做网站的公司哪家好网络营销策略有哪些
  • 那个网站专做委外发手工潍坊百度关键词优化
  • 嘉鱼网站建设哪家专业g3云推广
  • 永川做网站的公司百度站长平台有哪些功能
  • 网站的建设要多少钱广州谷歌优化
  • discuz 做网站可以吗磁力下载
  • 网站建设在360属于什么类目推广文案怎么写吸引人
  • 域名领域百度搜索引擎优化公司哪家强
  • 网页设计模板素材营销型首页四川百度推广和seo优化
  • 用苹果手机做网站东莞seo网络营销
  • 原来做网站后来跑国外了北京网络推广外包公司排行
  • 公司该建哪种网站企业网站有哪些类型
  • 杭州外贸网站建设郑州百度推广开户
  • 网站建设的技术风险分析与规避项目平台
  • 网站开发需求文档模板中关村在线app
  • 浙江杰立建设集团 网站首页中国站长网入口
  • 自己想做个网站怎么做的厦门seo排名
  • 杭州市富阳区建设局网站昭通网站seo