switched decrement and increment buttons
parent
5d5ae63c16
commit
bfae1a2de1
|
@ -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),
|
||||
),
|
||||
),
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue