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

北京王府井附近的酒店seo外包如何

北京王府井附近的酒店,seo外包如何,wordpress 淘宝同步,网易企业邮箱设置demo 地址: https://github.com/iotjin/jh_flutter_demo 代码不定时更新,请前往github查看最新代码 波浪动画三方库wave lottie动画 Lottie 是 Airbnb 开发的一款能够为原生应用添加动画效果的开源工具。具有丰富的动画效果和交互功能。 # 波浪动画 https://pub-web…

demo 地址: https://github.com/iotjin/jh_flutter_demo
代码不定时更新,请前往github查看最新代码

波浪动画三方库wave

lottie动画
Lottie 是 Airbnb 开发的一款能够为原生应用添加动画效果的开源工具。具有丰富的动画效果和交互功能。

  # 波浪动画 https://pub-web.flutter-io.cn/packages/wavewave: ^0.2.2# lottie动画 https://pub-web.flutter-io.cn/packages/lottielottie: ^2.4.0

效果图

在这里插入图片描述

在这里插入图片描述

波浪动画示例

class WavePage extends StatelessWidget {const WavePage({Key? key}) : super(key: key);Widget build(BuildContext context) {return Scaffold(appBar: const BaseAppBar('波浪动画'),body: _body(),);}_body() {const backgroundColor = Color(0xFFF15BB5);const colors = [Color(0xFFFEE440), Color(0xFF00BBF9)];const durations = [3000, 6000];const heightPercentages = [0.65, 0.66];var waveView = WaveWidget(config: CustomConfig(colors: colors,durations: durations,heightPercentages: heightPercentages,),backgroundColor: backgroundColor,size: const Size(double.infinity, double.infinity),waveAmplitude: 0,);return waveView;}
}

lottie动画示例

需要先准备好加载动画文件:将预先准备好的Lottie动画文件(.json格式)放入flutter项目的资源目录中。可以从Lottie官网下载或创建自定义动画文件。
然后使用 Lottie.asset('assets/xxx.json')加载Widget

import 'package:flutter/material.dart';
import 'package:lottie/lottie.dart';
import '/project/configs/project_config.dart';class LottiePage extends StatefulWidget {const LottiePage({Key? key}) : super(key: key);State<LottiePage> createState() => _LottiePageState();
}class _LottiePageState extends State<LottiePage> with TickerProviderStateMixin {late AnimationController _animationController1;late AnimationController _animationController2;void initState() {// TODO: implement initStatesuper.initState();_init();}_init() {_animationController1 = AnimationController(vsync: this, duration: const Duration(seconds: 1));_animationController2 = AnimationController(vsync: this, duration: const Duration(seconds: 1));}_startAnimation1() {_animationController1..reset()..forward();}_startAnimation2() {_animationController2..reset()..forward();}Widget build(BuildContext context) {return Scaffold(appBar: const BaseAppBar('Lottie 动画'),body: _body(),);}_body() {return ListView(children: [// Load a Lottie file from your assetsRow(mainAxisAlignment: MainAxisAlignment.center,children: [Lottie.asset('assets/lottie/首页.json', width: 50, height: 50),Lottie.asset('assets/lottie/星球.json', width: 65, height: 65),],),Row(mainAxisAlignment: MainAxisAlignment.center,children: [GestureDetector(onTap: () => _startAnimation1(),child: Lottie.asset('assets/lottie/首页.json',width: 50,height: 50,controller: _animationController1,onLoaded: (composition) => _startAnimation1(),),),GestureDetector(onTap: () => _startAnimation2(),child: Lottie.asset('assets/lottie/星球.json',width: 65,height: 65,controller: _animationController2,onLoaded: (composition) => _startAnimation2(),),),],),Lottie.asset('assets/lottie/Aniki Hamster.json', height: 200),// Load a Lottie file from a remote urlLottie.network('https://assets5.lottiefiles.com/packages/lf20_0LNPii4uOv.json'),],);}
}
http://www.yidumall.com/news/108408.html

相关文章:

  • 互联网网站开发有哪些职位前端seo是什么
  • 成都网站优化排名百度趋势搜索大数据
  • asp个人网站源码下载福州seo推广
  • wordpress火车头自动分类seo网课培训
  • 微信官网网址seo确定关键词
  • wordpress快站苏州seo网站系统
  • 建设淘宝网站的人员组织新手怎么做电商运营
  • 浦东新区网站优化推广苏州seo网站管理
  • 电子商城网站开发教程推广关键词排名
  • 全球采购网b2b百度自然搜索排名优化
  • php网站开发过程上海专业seo
  • 做网站-信科网络百度竞价托管代运营
  • 谷歌做网站推广湖南网站排名
  • 北京发布最新公告seo怎么优化武汉厂商
  • 做网站哪些公司好电商平台推广公司
  • 怎么做老虎机网站的沈阳seo整站优化
  • 山东省工程建设信息官方网站需要一个网站
  • 优狐网站建设舆情分析系统
  • 建站站长统计app软件下载2021
  • 网络seo是什么工作seo排名助手
  • 成都各公司网站百度站长号购买
  • 网站目标品牌推广网络公司
  • 南宁网站制作企业网站怎么优化排名
  • 开发公司运行管理情况建议及意见百度网站优化培训
  • 登封做网站推广软文营销方案
  • 做网站多少钱一个月网站自动推广软件免费
  • 多元网站建设长沙百度seo代理
  • 网站的制作公司官方百度下载安装
  • 营销型网站建设的概念网站seo课程
  • 怎么做一元抢购网站电商运营模式