import 'package:flutter/material.dart';
import 'package:flutter_testdemo001/res/listData.dart'; void main() {
runApp(MyApp());
} class MyApp extends StatelessWidget {
const MyApp({Key key}) : super(key: key); @override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: Text("flutter demo"),
),
body: HomeContent(),
),
);
}
} class HomeContent extends StatelessWidget {
@override
Widget build(BuildContext context) {
// return Center(
// child: Stack(
// alignment: Alignment.center,
// children: <Widget>[
// Container(
// height: 400,
// width: 300,
// color: Colors.red,
// ),
// Text("我是一个文本", style: TextStyle(fontSize: 20, color: Colors.white))
// ],
// ),
// ); return Center(
child: Container(
height: ,
width: ,
color: Colors.red,
child: Stack(
children: <Widget>[
Align(
alignment: Alignment.topLeft,
child: Icon(Icons.home,size:,color: Colors.white),
),
Align(
alignment: Alignment.center,
child: Icon(Icons.block,size:,color: Colors.white),
),
Align(
alignment: Alignment.bottomRight,
child: Icon(Icons.search,size:,color: Colors.white),
),
],
),
),
);
}
}

最新文章

  1. ELK分析IIS日志
  2. Elasticsearch使用备忘
  3. JAVA中protected的作用
  4. lucene分词器与搜索
  5. 70 sudo-用来以其他身份来执行命令
  6. 零件分组_DP
  7. jQuery live与bind的区别
  8. Highcharts20151130
  9. Android开发中如何强制横屏和强制竖屏设置
  10. Eyeshot Ultimate 学习笔记(1)
  11. 解决未能启动服务“VMware Authorization Service”
  12. python 实现cm批量上传
  13. 在Ubuntu 18.04系统上安装Systemback的方法(抄)
  14. RDKIT+postgresql做化合物数据存储与查找
  15. docker 基础之网络管理
  16. HMM拓扑与转移模型
  17. Tinkoff Internship Warmup Round 2018 and Codeforces Round #475 (Div. 1)D. Frequency of String
  18. mysql 表锁进程非常多的情况
  19. Lintcode: Unique Paths
  20. loj 诗歌

热门文章

  1. MySQL复制介绍及搭建
  2. Django自定义filter
  3. MongoDB 主从复制及 自动故障转移
  4. C语言二级指针间接赋值
  5. Post Office Problem
  6. Deepgreen &amp; Greenplum DBA小白普及课之三
  7. c语言冒泡排序算法
  8. 交互设计算法基础(2) - Selection Sort
  9. 《挑战30天C++入门极限》新手入门:C++下的引用类型
  10. 项目发布到tomcat后,通过项目名称访问报404