提交 748be120 作者: dbj

Merge branch 'develop' of gitlab.m.tbkt.cn:liangjialin/Flutter_app into develop

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,
),
),
);
......
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
......@@ -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 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论