大盒子下(Container) 的小盒子会自动填充到我们设置的内边距
    Padding 元素 必须设置 padding 属性
    padding 的值 有

    1. EdgeInsets.fromLTRB(10, 30, 50, 10) 四个方向分别设置值 按 left、top、right、bottom 的顺序
    2. EdgeInsets.all(30) 四个方向都是同样的值
    3. EdgeInsets.only(top: 30) 只设置一个方向的值
    1. import 'package:flutter/cupertino.dart';
    2. import 'package:flutter/material.dart';
    3. // import 'package:english_words/english_words.dart';
    4. void main() => runApp(new MyApp());
    5. class MyApp extends StatelessWidget {
    6. @override
    7. Widget build(BuildContext context) {
    8. return new MaterialApp(
    9. title: 'Welcome to Flutter',
    10. home: new Scaffold(
    11. appBar: new AppBar(
    12. title: new Text('Welcome to Flutter12'),
    13. ),
    14. body: Container(
    15. width: 300,
    16. height: 500,
    17. color: Colors.red,
    18. child: Padding(
    19. padding: EdgeInsets.fromLTRB(10, 30, 50, 10),
    20. child: Container(
    21. color: Colors.blue,
    22. ),
    23. ),
    24. ),
    25. ),
    26. );
    27. }
    28. }