Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
F
Flutter_app
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
梁佳霖
Flutter_app
Commits
0cc2799f
提交
0cc2799f
authored
3月 13, 2020
作者:
liangjialin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新建image模块路由
上级
6591daea
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
54 行增加
和
14 行删除
+54
-14
liangjialin.dart
lib/liangjialin/liangjialin.dart
+36
-14
liangjialin_image.dart
lib/liangjialin/liangjialin_image.dart
+16
-0
router_path.dart
lib/router_path.dart
+2
-0
没有找到文件。
lib/liangjialin/liangjialin.dart
浏览文件 @
0cc2799f
import
'package:flutter/material.dart'
;
import
'liangjialin_image.dart'
;
class
liangjialin
extends
StatelessWidget
{
@override
Widget
build
(
BuildContext
context
)
{
return
new
Center
(
return
MaterialApp
(
title:
"梁佳霖"
,
home:
new
Scaffold
(
appBar:
AppBar
(
title:
Text
(
'梁佳霖'
),
centerTitle:
true
),
body:
LiangjialinHome
(),
),
);
}
}
class
LiangjialinHome
extends
StatelessWidget
{
@override
Widget
build
(
BuildContext
context
)
{
// TODO: implement build
return
Center
(
child:
new
Container
(
child:
Text
(
'梁佳霖'
,
textAlign:
TextAlign
.
center
,
style:
TextStyle
(
color:
Colors
.
white
,
fontSize:
30
,
decoration:
TextDecoration
.
lineThrough
,
decorationStyle:
TextDecorationStyle
.
double
),
child:
Column
(
children:
<
Widget
>[
RaisedButton
(
color:
Theme
.
of
(
context
).
primaryColor
,
textColor:
Colors
.
white
,
onPressed:
()
{
Navigator
.
push
(
context
,
MaterialPageRoute
(
builder:
(
context
)
=>
liangjialin_image
(),
));
},
child:
Text
(
"图片组件Demo"
),
),
],
),
width:
300
,
height:
300
,
alignment:
Alignment
.
center
,
// 让内部居中显示
alignment:
Alignment
.
center
,
padding:
EdgeInsets
.
all
(
10
)
,
decoration:
BoxDecoration
(
color:
Colors
.
red
,
color:
Colors
.
black12
,
),
),
);
...
...
lib/liangjialin/liangjialin_image.dart
0 → 100644
浏览文件 @
0cc2799f
import
'package:flutter/material.dart'
;
class
liangjialin_image
extends
StatelessWidget
{
@override
Widget
build
(
BuildContext
context
)
{
// TODO: implement build
return
MaterialApp
(
title:
"梁佳霖"
,
home:
new
Scaffold
(
appBar:
AppBar
(
title:
Text
(
'梁佳霖'
),
centerTitle:
true
),
),
);
}
}
\ No newline at end of file
lib/router_path.dart
浏览文件 @
0cc2799f
...
...
@@ -11,6 +11,7 @@ class RouterName {
static
const
String
jiexifeng
=
'jiexifeng'
;
static
const
String
yangjunlei
=
'yangjunlei'
;
static
const
String
liangjialin
=
'liangjialin'
;
static
const
String
image_liangjialin
=
'liangjialin/image'
;
}
class
Router
{
...
...
@@ -20,6 +21,7 @@ class Router {
RouterName
.
jiexifeng
:
(
context
)
=>
new
jiexifeng
(),
RouterName
.
yangjunlei
:
(
context
)
=>
new
yangjunlei
(),
RouterName
.
liangjialin
:
(
context
)
=>
new
liangjialin
(),
RouterName
.
image_liangjialin
:
(
context
)
=>
new
liangjialin
(),
};
return
routes
;
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论