flutter/examples/flutter_gallery/lib/demo/fail.dart
2016-05-09 11:00:54 -07:00

25 lines
551 B
Dart

import 'package:flutter/material.dart';
class LimitDemo extends StatelessWidget {
@override
Widget build(BuildContext context) {
return new Scaffold(
appBar: new AppBar(
title: new Text('LimitedBox test')
),
body: new Block(
children: <Widget>[
new LimitedBox(
maxWidth: 100.0,
maxHeight: 100.0,
child: new Container(
decoration: new BoxDecoration(backgroundColor: const Color(0xFF00FF00))
)
)
]
)
);
}
}