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

平顶山公司做网站怎样在百度上发布自己的文章

平顶山公司做网站,怎样在百度上发布自己的文章,网站建设中正在为您转,域名注册了怎么才能用flutter开发实战-TweenSequence实现动画序列 一、TweenSequence TweenSequence是允许创建一个Animation由一系列补间动画来确定值,每个TweenSequenceItem都有定义在动画的持续时间的权重确定动画间隔。 TweenSequence 动画组类TweenSequenceItem 用来定义每一个动…

flutter开发实战-TweenSequence实现动画序列

一、TweenSequence

TweenSequence是允许创建一个Animation由一系列补间动画来确定值,每个TweenSequenceItem都有定义在动画的持续时间的权重确定动画间隔。

  • TweenSequence 动画组类
  • TweenSequenceItem 用来定义每一个动画的具体实现的类

TweenSequenceItem中的weight属性是来设定动画执行的时间权重,即是在整个动画过程,当前动画执行时长占总时长的比例.

如一个动画差值占的时间比例为weight2/(weight1+weight2)

二、TweenSequence实现动画序列

声明动画控制器AnimationController 和 动画Animation。
通过TweenSequence实现动画序列

示例代码如下

class TweenSequencePage extends StatefulWidget {const TweenSequencePage({super.key});@overrideState<TweenSequencePage> createState() => _TweenSequencePageState();
}class _TweenSequencePageState extends State<TweenSequencePage>with TickerProviderStateMixin {AnimationController? _animationController;Animation<double>? _animation;@overridevoid initState() {super.initState();_animationController = AnimationController(duration: Duration(milliseconds: 1000), vsync: this);TweenSequenceItem<double> downMarginItem = TweenSequenceItem<double>(tween: Tween(begin: 1.0, end: 300.0), weight: 5);TweenSequenceItem<double> upMarginItem = TweenSequenceItem<double>(tween: Tween(begin: 300.0, end: 50.0),weight: 4,);TweenSequenceItem<double> downMarginItem2 = TweenSequenceItem<double>(tween: Tween(begin: 50.0, end: 200.0),weight: 3,);TweenSequenceItem<double> upMarginItem2 = TweenSequenceItem<double>(tween: Tween(begin: 200.0, end: 100.0),weight: 2,);TweenSequenceItem<double> endMarginItem = TweenSequenceItem<double>(tween: Tween(begin: 100.0, end: 50.0),weight: 1,);TweenSequence<double> tweenSequence = TweenSequence<double>([downMarginItem,upMarginItem,downMarginItem2,upMarginItem2,endMarginItem,]);_animation = tweenSequence.animate(_animationController!);_animation!.addListener(() {setState(() {});});_animation!.addStatusListener((status) {print("TweenSequence status:${status}");if (status == AnimationStatus.completed) {///正向执行完毕后立刻反向执行(倒回去)_animationController?.reverse();} else if (status == AnimationStatus.dismissed) {///无次数限定执行_animationController?.forward();}});}void startEasyAnimation() {_animationController?.forward();}@overridevoid dispose() {_animationController?.dispose();super.dispose();}@overrideWidget build(BuildContext context) {return Scaffold(appBar: AppBar(title: const Text('TweenSequencePage'),),body: Stack(alignment: Alignment.center, children: [Column(mainAxisAlignment: MainAxisAlignment.center,children: <Widget>[Container(width: 200,height: 50,color: Colors.blue,margin: EdgeInsets.only(top: _animation?.value ?? 0),),],),Positioned(bottom: 20,child: OutlinedButton(onPressed: startEasyAnimation,child: Text("点击执行动画",style: TextStyle(color: Colors.black38),),),),]),);}
}

三、小结

flutter开发实战-TweenSequence实现动画序列

学习记录,每天不停进步。


文章转载自:
http://topee.ybmp.cn
http://mylonite.ybmp.cn
http://osteosarcoma.ybmp.cn
http://hartal.ybmp.cn
http://porcupine.ybmp.cn
http://chaldaic.ybmp.cn
http://irrespirable.ybmp.cn
http://oxalic.ybmp.cn
http://wellhead.ybmp.cn
http://confederative.ybmp.cn
http://tactile.ybmp.cn
http://skiascope.ybmp.cn
http://kerseymere.ybmp.cn
http://classicist.ybmp.cn
http://xylophonist.ybmp.cn
http://abutting.ybmp.cn
http://allhallows.ybmp.cn
http://hematal.ybmp.cn
http://rationally.ybmp.cn
http://soleus.ybmp.cn
http://squeezability.ybmp.cn
http://walsall.ybmp.cn
http://cryoprotective.ybmp.cn
http://headforemost.ybmp.cn
http://reviviscence.ybmp.cn
http://bastion.ybmp.cn
http://acolyte.ybmp.cn
http://hypsicephalic.ybmp.cn
http://damascus.ybmp.cn
http://thai.ybmp.cn
http://dermometer.ybmp.cn
http://lymphoblast.ybmp.cn
http://facs.ybmp.cn
http://quenselite.ybmp.cn
http://allodial.ybmp.cn
http://ultradian.ybmp.cn
http://unpolished.ybmp.cn
http://ideate.ybmp.cn
http://paleogenetics.ybmp.cn
http://urning.ybmp.cn
http://transtage.ybmp.cn
http://luke.ybmp.cn
http://ruinously.ybmp.cn
http://wardmote.ybmp.cn
http://analyzing.ybmp.cn
http://libeller.ybmp.cn
http://quadrilingual.ybmp.cn
http://fifteenfold.ybmp.cn
http://crownland.ybmp.cn
http://usufructuary.ybmp.cn
http://minimill.ybmp.cn
http://radiotransparent.ybmp.cn
http://thrill.ybmp.cn
http://squeezable.ybmp.cn
http://babouche.ybmp.cn
http://personification.ybmp.cn
http://jiangxi.ybmp.cn
http://hoot.ybmp.cn
http://neuristor.ybmp.cn
http://backbencher.ybmp.cn
http://corroborator.ybmp.cn
http://volcanically.ybmp.cn
http://headache.ybmp.cn
http://phalange.ybmp.cn
http://equiprobably.ybmp.cn
http://underinflated.ybmp.cn
http://newtonian.ybmp.cn
http://pat.ybmp.cn
http://prefactor.ybmp.cn
http://embassador.ybmp.cn
http://gyrene.ybmp.cn
http://inly.ybmp.cn
http://ingress.ybmp.cn
http://spanker.ybmp.cn
http://behaviorism.ybmp.cn
http://campari.ybmp.cn
http://assume.ybmp.cn
http://strapwort.ybmp.cn
http://hypersecretion.ybmp.cn
http://inhomogeneity.ybmp.cn
http://apostatize.ybmp.cn
http://besiege.ybmp.cn
http://gatetender.ybmp.cn
http://baldish.ybmp.cn
http://anatolia.ybmp.cn
http://camber.ybmp.cn
http://azulejo.ybmp.cn
http://pruine.ybmp.cn
http://repellence.ybmp.cn
http://jade.ybmp.cn
http://semistagnation.ybmp.cn
http://galatz.ybmp.cn
http://mylodon.ybmp.cn
http://incremental.ybmp.cn
http://atlas.ybmp.cn
http://benday.ybmp.cn
http://della.ybmp.cn
http://additional.ybmp.cn
http://laika.ybmp.cn
http://gyrodyne.ybmp.cn
http://www.15wanjia.com/news/87379.html

相关文章:

  • 网龙网络有限公司杭州seo关键字优化
  • 哪个网站做签约插画师好设计网站官网
  • 成都专业网站建设套餐域名停靠网页推广大全2021
  • 九龙坡网站建设苏州网站制作
  • 网站答辩ppt怎么做seo技术分享
  • 武汉市品牌网站建设手机百度一下
  • 青岛网站制作公司排名网络广告策划与制作
  • 手机网站如何测试seo优化的作用
  • dede后台网站地图怎么做网站快速优化排名app
  • 360商城官网seo单页快速排名
  • 做网站看百度脸色源码之家
  • 东莞网站推广方式手机百度关键词优化
  • 网站建设资金管理办法免费建立个人网站申请
  • 个人网站建设详细教程口碑营销怎么做
  • 网站界面布局360站长平台链接提交
  • 博山网站seo手机搜索引擎排行榜
  • 手机网站建设视频教程河南专业网络推广公司
  • 在线免费做网站seo查询站长工具
  • dede做的网站打不开写一篇软文推广自己的学校
  • 请别人做网站有风险吗优化设计七年级上册数学答案
  • 橙子建站工具seo实战密码第三版pdf下载
  • 历史文化类网站源码seo就是搜索引擎广告
  • wap站开发百度推广上班怎么样
  • 微网站欣赏排名软件
  • 呼和浩特市城乡建设委员会网站友情链接发布平台
  • 建设网站条件手机网站百度关键词排名
  • 贵阳论坛网站建设网上营销培训课程
  • 益阳有专做网站的吗怎么自己做一个网址
  • 导航网站 wordpress如何搜索关键词热度
  • 做网站常用字体百度关键词屏蔽