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(
alignment: Alignment.bottomLeft,
child: FloatingActionButton(
onPressed: _incrementCounter,
tooltip: 'Increment',
child: const Icon(Icons.add),
onPressed: _decrementCounter,
tooltip: 'Decrement',
child: const Icon(Icons.remove),
),
),
),
Align(
alignment: Alignment.bottomRight,
child: FloatingActionButton(
onPressed: _decrementCounter,
tooltip: 'Decrement',
child: const Icon(Icons.remove),
onPressed: _incrementCounter,
tooltip: 'Increment',
child: const Icon(Icons.add),
),
),
],