flutterで、枠を表示させて、枠内のパディングを調整する

# やりたいこと

緑色の枠内のパディングを指定したい。

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/75451/73368d43-aabb-b88e-9743-aedc1e632864.png)


# 枠の表示

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/75451/08e1e7e3-35a4-ba47-206f-302a66a6da2c.png)


```dart
class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Container(
        width: 380,
        decoration: BoxDecoration(border: Border.all(color: Colors.green, width: 9.0,)),
     ),
    );
  }
}
```


# 画像の表示

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/75451/f8cbda1e-2631-1aea-b24b-533e92f87d39.png)


```dart
        child: Wrap(
        children: <Widget>[
          Image.network('https://www.10wallpaper.com/wallpaper/1366x768/2005/Mountains_Rocks_Lake_2020_Landscape_High_Quality_Photo_1366x768.jpg', width: 100,),
          Image.network('https://www.10wallpaper.com/wallpaper/1366x768/1711/Cute_Small_Chicken_2017_Animal_HD_Wallpaper_1366x768.jpg', width: 100,),
          Image.network('https://www.10wallpaper.com/wallpaper/1366x768/1501/Fighter_Jets-Military_HD_Wallpaper_1366x768.jpg', width: 100,),
          Image.network('https://www.10wallpaper.com/wallpaper/1366x768/1806/FIFA_World_Cup_2018_Peru_Christian_Cueva_1366x768.jpg', width: 100,),
          Image.network('https://www.10wallpaper.com/wallpaper/1366x768/1501/lufthansa_airport-Military_HD_Wallpaper_1366x768.jpg', width: 100,),
          Image.network('https://www.10wallpaper.com/wallpaper/1366x768/1901/2019_Resident_Evil_2_Game_HD_Poster_1366x768.jpg', width: 100,),
          Image.network('https://www.10wallpaper.com/wallpaper/1366x768/2003/African_Safari_Elephants_2020_Animals_HD_Photo_1366x768.jpg', width: 100,),
        ],
        )
 
```



# パディングの指定

![image.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/75451/470b2af5-4d36-7cd2-2fee-94fb9668bb12.png)


```dart
        padding: EdgeInsets.only(
          top: 60,
          left: 40,
          bottom: 90,
        ),
```


# 完成形 main.dart

```dart

import 'package:flutter/material.dart';
import 'package:http/http.dart' as http;

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
        visualDensity: VisualDensity.adaptivePlatformDensity,
      ),
      home: MyHomePage(title: 'Flutter Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key key, this.title}) : super(key: key);
  final String title;
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Container(
        padding: EdgeInsets.only(
          top: 60,
          left: 40,
          bottom: 90,
        ),
        width: 380,
        decoration: BoxDecoration(border: Border.all(color: Colors.green, width: 9.0,)),
        child: Wrap(
        children: <Widget>[
          Image.network('https://www.10wallpaper.com/wallpaper/1366x768/2005/Mountains_Rocks_Lake_2020_Landscape_High_Quality_Photo_1366x768.jpg', width: 100,),
          Image.network('https://www.10wallpaper.com/wallpaper/1366x768/1711/Cute_Small_Chicken_2017_Animal_HD_Wallpaper_1366x768.jpg', width: 100,),
          Image.network('https://www.10wallpaper.com/wallpaper/1366x768/1501/Fighter_Jets-Military_HD_Wallpaper_1366x768.jpg', width: 100,),
          Image.network('https://www.10wallpaper.com/wallpaper/1366x768/1806/FIFA_World_Cup_2018_Peru_Christian_Cueva_1366x768.jpg', width: 100,),
          Image.network('https://www.10wallpaper.com/wallpaper/1366x768/1501/lufthansa_airport-Military_HD_Wallpaper_1366x768.jpg', width: 100,),
          Image.network('https://www.10wallpaper.com/wallpaper/1366x768/1901/2019_Resident_Evil_2_Game_HD_Poster_1366x768.jpg', width: 100,),
          Image.network('https://www.10wallpaper.com/wallpaper/1366x768/2003/African_Safari_Elephants_2020_Animals_HD_Photo_1366x768.jpg', width: 100,),
        ],
        )
      ),
    );
  }
}

```