switched decrement and increment buttons

main
Kaj Rusilowski 2024-04-09 21:43:15 +02:00
parent 5d5ae63c16
commit bfae1a2de1
1 changed files with 6 additions and 6 deletions

View File

@ -81,18 +81,18 @@ class _MyHomePageState extends State<MyHomePage> {
child: Align( child: Align(
alignment: Alignment.bottomLeft, alignment: Alignment.bottomLeft,
child: FloatingActionButton( child: FloatingActionButton(
onPressed: _incrementCounter, onPressed: _decrementCounter,
tooltip: 'Increment', tooltip: 'Decrement',
child: const Icon(Icons.add), child: const Icon(Icons.remove),
), ),
), ),
), ),
Align( Align(
alignment: Alignment.bottomRight, alignment: Alignment.bottomRight,
child: FloatingActionButton( child: FloatingActionButton(
onPressed: _decrementCounter, onPressed: _incrementCounter,
tooltip: 'Decrement', tooltip: 'Increment',
child: const Icon(Icons.remove), child: const Icon(Icons.add),
), ),
), ),
], ],