Component - ElevatedButton and TextButton
This UI shows two types of buttons in Flutter: ElevatedButton which looks raised with a shadow, and TextButton which is flat with just text. Both respond to taps.
This UI shows two types of buttons in Flutter: ElevatedButton which looks raised with a shadow, and TextButton which is flat with just text. Both respond to taps.
Scaffold
├── AppBar
│ └── Text
└── Center
└── Column
├── ElevatedButton
│ └── Text
└── TextButton
└── TextElevatedButton(onPressed: () {}, child: Text('Press'))
TextButton(onPressed: () {}, child: Text('Press'))ElevatedButton(
onPressed: print('Clicked'),
child: Text('Tap me'),
)Pass the test and this pattern moves unknown