Home > Software design >  Flutter - How to display screen info when pressed button
Flutter - How to display screen info when pressed button

Time:08-12

I'm trying to create a screen where you can see some post in one button and others post in the other button, both buttons are inside the same screen like this:

example

Is there a widget that allows me to recreate it

CodePudding user response:

use TabBar Widget with two Tabs inside it here is an example

body: const TabBarView(
children: [
  Icon(Icons.directions_car),
  Icon(Icons.directions_transit),
  ],
),
  • Related