import 'package:flutter/material.dart'; // Container() void main() { runApp( MaterialApp( title: 'Material App', home: Scaffold( appBar: AppBar(title: Text('AppBar')), body: Container( width: 200, height: 300, color: Colors.red, alignment: Alignment.topLeft, padding: EdgeInsets.all(10), margin: EdgeInsets.all(20), child: Text( 'Container...', style: TextStyle(color: Colors.black, fontSize: 20), ), ), ), ), ); }
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter