Add:创建 flutter go web 版

This commit is contained in:
ryan
2019-08-13 20:38:46 +08:00
parent 64513b59c1
commit da67ccf5a8
1656 changed files with 483653 additions and 0 deletions

View File

@ -0,0 +1,72 @@
import 'package:flutter_web/widgets.dart';
import 'package:flutter_web/material.dart';
class LimitedBoxDemo extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
Container(
width: 100,
height: 100,
color: Color(0xfff8bbd0),
child: Text(
"100 * 100",
style: TextStyle(color: Colors.white),
),
),
LimitedBox(
maxWidth: 100,
maxHeight: 100,
child: Container(
width: 250,
height: 300,
child: Text(
"250 * 300",
style: TextStyle(color: Colors.white),
),
color: Color(0xfff48fb1),
),
)
],
);
}
}
class LimitedBoxColumnDemo extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
children: <Widget>[
SizedBox(
child: Text("Column 列表下效果"),
),
Container(
width: 100,
height: 100,
color: Color(0xfff8bbd0),
child: Text(
"100 * 100",
style: TextStyle(color: Colors.white),
),
),
SizedBox(height: 10.0),
LimitedBox(
maxWidth: 100,
maxHeight: 100,
child: Container(
width: 250,
height: 300,
child: Text(
"250 * 300",
style: TextStyle(color: Colors.white),
),
color: Color(0xfff48fb1),
),
)
],
);
}
}