当前位置:网站首页>Shutter style
Shutter style
2022-06-23 06:23:00 【Susceptible to cold】
// Service page item
Widget _buildGridService() {
return Scaffold(
appBar: AppBar(
elevation: 8.0, // Height of shadow
title: Text(' Convenience services '),
backgroundColor: MyColors.color_red,
centerTitle: true, // Is the title centered , The default is false
),
body: Center(
child: GridView.extent(
// No rolling
physics: new NeverScrollableScrollPhysics(),
// The maximum length of the horizontal axis
maxCrossAxisExtent: 150.0,
padding: const EdgeInsets.all(5.0),
// Spindle spacing The vertical axis
mainAxisSpacing: 1.0,
// Horizontal axis interval Secondary axis
crossAxisSpacing: 4.0,
semanticChildCount: 3,
children: _buildGridTileList(serviceList),
)));
}List<Container> _buildGridTileList(List<MyService> list) {
return new List.generate(
list.length,
(int index) => new Container(
child: new GestureDetector(
onTap: () {
print("--- Click. :" + serviceList[index].text);
Navigator.push(
context,
new MaterialPageRoute(
builder: (context) => new ServiceWebPage(
from: serviceList[index].text)));
},
child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
Image.asset(
list[index].iconImage,
width: 50.0,
height: 50.0,
fit: BoxFit.fill,
),
new Container(
padding: EdgeInsets.only(top: 5.0),
child: new Text(
list[index].text,
style: new TextStyle(
fontSize: 14.0,
),
),
)
],
),
),
));
}边栏推荐
- 去除防火墙和虚拟机对live555启动IP地址的影响
- 使用aggregation API扩展你的kubernetes API
- pyinstaller 打包exe设置图标不显示
- Pyqt5 设置窗口左上角图标
- How to batch produce QR codes that can be read online after scanning
- Pyinstaller sklearn reports errors
- 十一、纺织面料下架功能的实现
- mysql以逗号分隔的字段作为查询条件怎么查——find_in_set()函数
- Efficient office of fintech (I): automatic generation of trust plan specification
- 100-300 cases of single chip microcomputer program (detailed explanation of notes)
猜你喜欢

Day_ 02 smart communication health project - appointment management - inspection item management

Day_ 13 smart health project - Chapter 13

基于T5L1的小型PLC设计方案

(1) Basic learning - Common shortcut commands of vim editor

射频内容学习

Day_01 传智健康项目-项目概述和环境搭建

Jour 04 projet de santé mentale - gestion des rendez - vous - gestion des forfaits

Redis sentry

微软面试题:打印折纸的折痕

【Vivado那些事儿】XilinxCEDStore介绍
随机推荐
Pat class B 1023 minimum decimals
WordPress Core 5.8.2 - 'WP_ Query'SQL injection
Add and multiply two polynomials using linked list
Causes and methods of exe flash back
Memory analysis and memory leak detection
[focus on growth and build a dream for the future] - TDP year-end event, three chapters go to the Spring Festival!
matplotlib savefig多个图片叠加问题
Runc symbolic link mount and container escape vulnerability alert (cve-2021-30465)
Gplearn appears assignment destination is read only
微软面试题:打印折纸的折痕
Pat class B 1020 Moon Cake
Pat class B 1018 C language
sklearn sklearn中classification_report&精确度/召回率/F1值
Leetcode topic resolution valid anagram
Day_02 传智健康项目-预约管理-检查项管理
JVM原理简介
【DaVinci Developer专题】-42-如何生成APP SWC的Template和Header文件
What is a PDCA cycle? How to integrate PDCA cycle and OKR
Docker实战 -- 部署Redis集群与部署微服务项目
Day_06 传智健康项目-移动端开发-体检预约