当前位置: 首页 > 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://www.yayakq.cn/news/883316/

相关文章:

  • 北京网站开发外包单位网站建设论文
  • 长沙模板网站长沙网站建设wordpress 去掉版权
  • 制作网站空间域名私人小型服务器
  • 国外有哪些网站是做弱电的网页制作基础教程第二版葛艳玲
  • 怎么给网站添加关键词锡林郭勒盟建设局网站
  • 长沙网站设计公司排名wordpress 登录流程
  • 网站升级对外解决方案潍坊网站建设选聚搜网络
  • 上海鹭城建设集团网站如何做网站公司
  • 网站建设规划wordpress 中文名字
  • 沈阳世纪兴网站制作苏州网站建设万户
  • 重庆卓光网站建设5年的室内设计师收入
  • 网站建设有什么系统高端网校通
  • 企业网站建设国内外研究状况聊城网站建设lckjxx
  • 九曲网站建设福田做棋牌网站建设找哪家效益快
  • 电商网站建设phpwind 转wordpress
  • 建设部网站质量终身责任承诺书做电影网站什么系统好
  • 故乡网站开发的意义iis 网站显示建设中
  • 扬州品牌网站设计道客网站建设推广小程序
  • 哪些网站比较容易做php 网站开发模式
  • 太原 网站建设wordpress网站翻译
  • 酒店定房网站开发做课件挣钱的网站
  • 如何做淘宝客的网站怎么优化网站排名才能起来
  • 什么值得买网站模版期末作业制作网站
  • 定制一个高端网站wordpress 分页按钮
  • 如何做免费音乐网站汕头网页怎么制作
  • 外贸建站推广多少钱室内设计案例去什么网站
  • 怎样做才能让自己的网站o2o平台有哪些行业
  • 深圳网站开发外包公司管理咨询公司简介范文
  • 建设机械网站渠道做企划的网站
  • 网站后台管理系统html下载网站建设的经费预算