Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Widget build(BuildContext context) {
- return Scaffold(
- body: ConstrainedBox(
- constraints: BoxConstraints.tight(Size(150, 200)),
- child: Center(
- child: Container(
- color: Colors.blue,
- child: Padding(
- padding: EdgeInsets.all(16),
- child: Text(
- 'Box Constraints',
- style: TextStyle(color: Colors.orange),
- )),
- ),
- )),
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement