import 'package:flutter/material.dart';

void main() {
  runApp(
    MaterialApp(
      home: MyWidget(),
    ),
  );
}

class MyWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Wrap(
          children: [
            Container(
              height: 100,
              width: 250,
              color: Colors.yellow,
            ),
            Container(
              height: 100,
              width: 250,
              color: Colors.red,
            ),
            Container(
              height: 100,
              width: 250,
              color: Colors.blue,
            ),
            Container(
              height: 100,
              width: 250,
              color: Colors.brown,
            ),
            Container(
              height: 100,
              width: 250,
              color: Colors.black,
            ),
            Container(
              height: 100,
              width: 250,
              color: Colors.cyan,
            ),
          ],
        ),
      ),
    );
  }
}
View Compiled

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.