Files
ryan d48942b55d refactor(many files): 页面部分的文件结构调整
1.views 文件夹里面分类,页面相关文件;2.公共组件全部放在components里;3.创建resources文件夹放置资源dart文件4.修改二级菜单文字大小

BREAKING CHANGE: 重构,建议删除本地db,再编译
2019-01-28 17:45:18 +08:00

69 lines
1.8 KiB
Dart

/*
* @Author: xiaojia.dxj
* @Date: 2019-01-08 15:55:46
* @Last Modified by: xiaojia.dxj
* @Last Modified time: 2019-01-08 15:55:46
*/
import 'package:flutter/material.dart';
import 'package:flutter_go/components/widget_demo.dart';
import './demo.dart' as sizeBox;
class Demo extends StatefulWidget {
static const String routeName = '/element/Frame/Box/SizeBox';
_DemoState createState() => _DemoState();
}
class _DemoState extends State<Demo> {
@override
Widget build(BuildContext context) {
return WidgetDemo(
title: 'Table',
codeUrl: 'elements/Frame/Box/SizedBox/demo.dart',
contentList: [
_sizeBoxCreate(),
],
docUrl: 'https://docs.flutter.io/flutter/widgets/SizedBox-class.html',
);
}
Column _sizeBoxCreate() {
return new Column(
children: <Widget>[
new Text("SizedBox",
textAlign: TextAlign.right,
style: TextStyle(
fontSize: 28.0,
fontWeight: FontWeight.bold,
)),
new Row(
children: <Widget>[
sizeBox.SizeBoxDefault(),
SizedBox(
width: 130.0,
height: 80.0,
child: const Card(
child: Text(
'SizedBox',
textAlign: TextAlign.center,
),
margin: EdgeInsets.only(left: 20.0, right: 20.0, top: 20.0),
color: Color(0xFFE57373)),
),
],
),
SizedBox(
width: 900.0,
height: 50.0,
child: const Card(
child: Text(
'SizedBox',
textAlign: TextAlign.center,
),
color: Color(0xFFEF5350)),
),
],
);
}
}