mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-06-01 14:58:50 +08:00
add file
This commit is contained in:
17
lib/widgets/elements/Frame/Box/LimitedBox/demo.dart
Normal file
17
lib/widgets/elements/Frame/Box/LimitedBox/demo.dart
Normal file
@ -0,0 +1,17 @@
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class LimitedBoxDemo extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return LimitedBox(
|
||||
maxWidth: 50.0,
|
||||
maxHeight: 150.0,
|
||||
child: Container(
|
||||
width: 250.0,
|
||||
height: 150.0,
|
||||
color: Colors.red,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user