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

南阳网站备案wordpress open sans

南阳网站备案,wordpress open sans,重庆涪陵网站设计公司哪家专业,中山建设银行招聘网站前言 有时候打开美团,在刚加载数据时会显示一个占位视图,如下: 那么这个是如何实现的呢?我们可以使用shimmer来开发该功能 实现 官方文档 https://pub-web.flutter-io.cn/packages/shimmer 安装 flutter pub add shimmer示例…

前言

有时候打开美团,在刚加载数据时会显示一个占位视图,如下:
在这里插入图片描述
那么这个是如何实现的呢?我们可以使用shimmer来开发该功能

实现

官方文档
https://pub-web.flutter-io.cn/packages/shimmer

安装

flutter pub add shimmer

示例1

SizedBox(width: 200.0,height: 100.0,child: Shimmer.fromColors(baseColor: Colors.red,highlightColor: Colors.yellow,child: Text('Shimmer',textAlign: TextAlign.center,style: TextStyle(fontSize: 40.0,fontWeight:FontWeight.bold,),),),
);

在这里插入图片描述

示例2

class _MyHomePageState extends State<MyHomePage> {Widget build(BuildContext context) {return Scaffold(appBar: AppBar(backgroundColor: Theme.of(context).colorScheme.inversePrimary,title: Text(widget.title),),body: ListView(children: const [ProductDisplay(),ProductDisplay(),ProductDisplay(),ProductDisplay(),],));}
}class ProductDisplay extends StatelessWidget {const ProductDisplay({super.key});Widget build(BuildContext context) {return Container(height: 150,width: MediaQuery.of(context).size.width,margin: const EdgeInsets.all(10),child: Card(color: Colors.white,child: Shimmer.fromColors(baseColor: Colors.grey.shade300,highlightColor: Colors.grey.shade100,child: Row(children: [Container(width: 120,height: 130,margin: const EdgeInsets.all(10),decoration: BoxDecoration(borderRadius: BorderRadius.circular(10),color: Colors.grey,),),Expanded(child: Column(children: [Container(height:30,margin: const EdgeInsets.all(10),decoration: BoxDecoration(borderRadius: BorderRadius.circular(5),color: Colors.grey,),),Container(height:20,margin: const EdgeInsets.only(left: 10,right: 10,bottom: 10),decoration: BoxDecoration(borderRadius: BorderRadius.circular(5),color: Colors.grey,),),Container(height:20,margin: const EdgeInsets.only(left: 10,right: 50,bottom: 10),decoration: BoxDecoration(borderRadius: BorderRadius.circular(5),color: Colors.grey,),),Container(height:20,margin: const EdgeInsets.only(left: 10,right: 100,bottom: 10),decoration: BoxDecoration(borderRadius: BorderRadius.circular(5),color: Colors.grey,),),],))],)),),);}
}

在这里插入图片描述

http://www.yayakq.cn/news/541436/

相关文章:

  • 织梦网站统计oa办公系统软件
  • 景德镇建设企业网站网站关键词之间
  • 网站流程图设计中国新闻社浙江分社
  • 推广网站的形式包括.net 网站源码下载
  • 简要说明开发网站的步骤重庆本地网站有哪些
  • 网站建设用的什么语言设计之窗网站
  • 资讯类网站建设怎样凡科建设网站
  • 本地上海集团网站建设东莞ui设计公司
  • 合肥制作手机网站seo网站推广作用
  • 电影网站html源码网站外链软件
  • 专业做网站设计网站建设有几大板块
  • 无锡网站推广优化费用wordpress固定链接设置后404
  • html购物网站模板沟通交流类网站有哪些
  • 百度权重3的网站值多少动漫视频网站开发
  • 诸葛企业网站建设公司网站开发如何实现数据库的链接
  • 网站建设流程 知乎手机版网站版面设计怎么做
  • 后台网站开发文档爱情动作片做网站
  • 住房和城乡建设部政务服务门户网站恩做网站动态页面好
  • 石家庄网站怎么建设国外家装设计网站
  • 公司网站模板 网盘下载广州网络营销学校
  • 品网站建设手机备案网站
  • 帮公司做网站同仁行业网站建设报价
  • 网站建设开发公司定制网站制作做网站制作利润有多少
  • 南海专业网站建设公司建英语网站首页
  • 一个网站做两种产品广州网站开发设计
  • 门户网站系统业务流程图wordpress 用oss存储
  • 扁平化色块风格的网站音乐网页制作素材
  • 营销型网站建设必备功能物联网的含义
  • 免费小程序开发制作亚马逊seo什么意思
  • ps做网站的常用素材wordpress 菜单保存在哪里设置