Home > Net >  hello, i want to make screens like this in flutter
hello, i want to make screens like this in flutter

Time:11-01

How can I implement the buttons on top?enter image description here

CodePudding user response:

Read flutter cookbook there are a lot of useful examples.

https://docs.flutter.dev/cookbook/lists/horizontal-list

CodePudding user response:

Try this:

ListView(   // This next line does the trick.   scrollDirection: Axis.horizontal,   children: <Widget>[
    Container(
      width: 160.0,
      color: Colors.red,
    ),
    Container(
      width: 160.0,
      color: Colors.blue,
    ),
    Container(
      width: 160.0,
      color: Colors.green,
    ),
    Container(
      width: 160.0,
      color: Colors.yellow,
    ),
    Container(
      width: 160.0,
      color: Colors.orange,
    ),   ], ),
  • Related