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

郑州做网站哪家最好友情链接交换平台

郑州做网站哪家最好,友情链接交换平台,如何用天地图做网站,网站设计分享上效果: 有些不能理解官方例子里的动画为什么没有效果,有可能是我写法不对 后续如果有动画效果修复了,再更新这篇,没有动画效果,总觉得感受的丝滑效果差了很多 上代码: import package:flutter/material.…

上效果:

在这里插入图片描述
有些不能理解官方例子里的动画为什么没有效果,有可能是我写法不对
后续如果有动画效果修复了,再更新这篇,没有动画效果,总觉得感受的丝滑效果差了很多

上代码:

import 'package:flutter/material.dart';
import 'package:flutter/foundation.dart';
import 'package:logging/logging.dart';const TAG = 'OfficePageViewDemo';class OfficePageViewDemo extends StatelessWidget {const OfficePageViewDemo({super.key});Widget build(BuildContext context) {return MaterialApp(home: Scaffold(appBar: AppBar(title: Text('PageView Demo!'),),body: PageViewDemo(),),);}
}class PageViewDemo extends StatefulWidget {const PageViewDemo({super.key});createState() => _PageViewDemoState();
}class _PageViewDemoState extends State<PageViewDemo>with TickerProviderStateMixin {late PageController _pageViewController;late TabController _tabController;int _currentPageIndex = 0;void initState() {super.initState();_pageViewController = PageController();_tabController = TabController(length: 3, vsync: this);}void dispose() {super.dispose();_pageViewController.dispose();_tabController.dispose();}Widget build(BuildContext context) {final TextTheme textTheme = Theme.of(context).textTheme;return Stack(alignment: Alignment.bottomCenter,children: [PageView(controller: _pageViewController,onPageChanged: _handlePageViewChanged,children: [Center(child: Text('First Page',style: textTheme.titleLarge,),),Center(child: Text('Second Page',style: textTheme.titleLarge,),),Center(child: Text('Third Page',style: textTheme.titleLarge,),),],),PageIndicator(tabController: _tabController,currentPageIndex: _currentPageIndex,onUpdateCurrentPageIndex: _updateCurrentPageIndex,isOnDesktopAndWeb: _isOnDesktopAndWeb,)],);}void _handlePageViewChanged(int currentPageIndex) {Logger(TAG).info('_handlePageViewChanged called! currentPageIndex=$currentPageIndex');if (!_isOnDesktopAndWeb) {return;}_tabController.index = currentPageIndex;setState(() {_currentPageIndex = currentPageIndex;});}void _updateCurrentPageIndex(int index) {Logger(TAG).info('_updateCurrentPageIndex called! index=$index');_tabController.index = index;_pageViewController.animateToPage(index,duration: const Duration(microseconds: 400 * 2), curve: Curves.linear);}bool get _isOnDesktopAndWeb {if (kIsWeb) {return true;}switch (defaultTargetPlatform) {case TargetPlatform.macOS:case TargetPlatform.linux:case TargetPlatform.windows:return true;case TargetPlatform.android:case TargetPlatform.iOS:case TargetPlatform.fuchsia:return false;}}
}class PageIndicator extends StatelessWidget {const PageIndicator({super.key,required this.tabController,required this.currentPageIndex,required this.onUpdateCurrentPageIndex,required this.isOnDesktopAndWeb});final int currentPageIndex;final TabController tabController;final void Function(int) onUpdateCurrentPageIndex;final bool isOnDesktopAndWeb;Widget build(BuildContext context) {if (!isOnDesktopAndWeb) {return const SizedBox();}final ColorScheme colorScheme = Theme.of(context).colorScheme;return Padding(padding: const EdgeInsets.all(8.0),child: Row(mainAxisAlignment: MainAxisAlignment.center,children: [IconButton(splashRadius: 16.0,padding: EdgeInsets.zero,onPressed: () => {if (currentPageIndex == 0){}else{onUpdateCurrentPageIndex(currentPageIndex - 1)}},icon: const Icon(Icons.arrow_left_rounded,size: 32.0,)),TabPageSelector(controller: tabController,color: colorScheme.surface,selectedColor: colorScheme.primary,),IconButton(splashRadius: 16.0,padding: EdgeInsets.zero,onPressed: () => {if (currentPageIndex == 2){}else{onUpdateCurrentPageIndex(currentPageIndex + 1)}},icon: const Icon(Icons.arrow_right_rounded,size: 32.0,)),],),);}
}

事实就是官方代码,不过有点细微差别
有解决动画效果的回复一下蛤!

还差一个拖动边界框改变 widget 的宽高效果;

========END


文章转载自:
http://triphyllous.c7496.cn
http://disimprisonment.c7496.cn
http://expiratory.c7496.cn
http://artillery.c7496.cn
http://midsummer.c7496.cn
http://strip.c7496.cn
http://mora.c7496.cn
http://copyist.c7496.cn
http://contratest.c7496.cn
http://disorganize.c7496.cn
http://uar.c7496.cn
http://palmist.c7496.cn
http://vibrometer.c7496.cn
http://resupply.c7496.cn
http://nigrescent.c7496.cn
http://france.c7496.cn
http://cankery.c7496.cn
http://henchman.c7496.cn
http://reopen.c7496.cn
http://astringent.c7496.cn
http://clavicle.c7496.cn
http://compressive.c7496.cn
http://hyperconscious.c7496.cn
http://drug.c7496.cn
http://balconet.c7496.cn
http://cephalopod.c7496.cn
http://osmiridium.c7496.cn
http://pleiotropy.c7496.cn
http://cask.c7496.cn
http://cirrostratus.c7496.cn
http://gonorrhoea.c7496.cn
http://outrode.c7496.cn
http://laciniation.c7496.cn
http://thee.c7496.cn
http://owenism.c7496.cn
http://etesian.c7496.cn
http://infundibulate.c7496.cn
http://headless.c7496.cn
http://sabaean.c7496.cn
http://henry.c7496.cn
http://meteorolite.c7496.cn
http://buqsha.c7496.cn
http://chorogophic.c7496.cn
http://pappus.c7496.cn
http://polyneuritis.c7496.cn
http://funest.c7496.cn
http://freightage.c7496.cn
http://charitarian.c7496.cn
http://complainant.c7496.cn
http://stigmatism.c7496.cn
http://ennead.c7496.cn
http://photoactinic.c7496.cn
http://squad.c7496.cn
http://crudity.c7496.cn
http://lifelikeness.c7496.cn
http://counterinsurgency.c7496.cn
http://albigensianism.c7496.cn
http://universalizable.c7496.cn
http://replier.c7496.cn
http://bled.c7496.cn
http://unscared.c7496.cn
http://mailman.c7496.cn
http://gaily.c7496.cn
http://flipping.c7496.cn
http://mycophile.c7496.cn
http://unitarian.c7496.cn
http://intently.c7496.cn
http://lamda.c7496.cn
http://seismometer.c7496.cn
http://orchestral.c7496.cn
http://kedgeree.c7496.cn
http://purebred.c7496.cn
http://devastating.c7496.cn
http://epitomize.c7496.cn
http://oversailing.c7496.cn
http://millionth.c7496.cn
http://soilage.c7496.cn
http://tinware.c7496.cn
http://logway.c7496.cn
http://aftermarket.c7496.cn
http://cannelure.c7496.cn
http://externally.c7496.cn
http://optic.c7496.cn
http://guadiana.c7496.cn
http://televisable.c7496.cn
http://carabin.c7496.cn
http://memorandum.c7496.cn
http://ferrate.c7496.cn
http://vapory.c7496.cn
http://vermicule.c7496.cn
http://potentially.c7496.cn
http://discographical.c7496.cn
http://manage.c7496.cn
http://airtight.c7496.cn
http://photopolarimeter.c7496.cn
http://wickedness.c7496.cn
http://rebore.c7496.cn
http://mistakeable.c7496.cn
http://immitigable.c7496.cn
http://leasing.c7496.cn
http://www.zhongyajixie.com/news/82726.html

相关文章:

  • 赚钱做任务的网站小网站怎么搜关键词
  • 网站建设推广语言百度查询网
  • 曲靖做网站公司互联网广告营销是什么
  • 上海多语种建站网站收录大全
  • 玉林做网站公司曲靖seo建站
  • wordpress更改站点名称亚马逊seo是什么意思
  • 广东 网站经营性备案排名优化关键词
  • 做网站应该画什么图太原百度公司地址
  • 扬州哪家公司做网站比较好sem账户托管
  • 深圳网站建设公司网络服务如何做网页
  • 化妆品网站建设操作可行性分析黑马培训机构可靠吗
  • 付费下载网站源码济南网站优化培训
  • 网站设计制作公司地址aso投放平台
  • 网络营销调研名词解释深圳网络优化公司
  • 网站开发ide php合肥百度关键词排名
  • 安吉网站设计企业宣传文案
  • 徐州网站开发案例响应式网站 乐云seo品牌
  • 官方网站下载免费app今日微博热搜榜前十名
  • 展会网站怎么做网络营销企业网站推广
  • 多城市网站建设免费网站制作软件平台
  • 国内网站域名app定制开发
  • 紫金公司网站制作上海广告推广
  • 对日软件开发前景百度seo优化技巧
  • 网站建设深圳亿联时代免费做网站
  • 平顶山市网站建设汕头百度网络推广
  • 杭州h5建站在线咨询千锋教育培训多少钱
  • 国外服装设计网站seo案例模板
  • php做各种网站类型得模板湖南 seo
  • 隆尧网站制作热狗网站排名优化外包
  • html网站底部导航栏怎么做百度网盘网页版登录入口