switch alignment
This commit is contained in:
@@ -312,30 +312,33 @@ class _HomeTileGridState extends State<HomeTileGrid> {
|
|||||||
),
|
),
|
||||||
body: Column(
|
body: Column(
|
||||||
children: [
|
children: [
|
||||||
Row(
|
Padding(
|
||||||
crossAxisAlignment: CrossAxisAlignment.end,
|
padding: const EdgeInsets.only(top: 10.0, right: 15.0),
|
||||||
mainAxisAlignment: MainAxisAlignment.end,
|
child: Row(
|
||||||
children: [
|
crossAxisAlignment: CrossAxisAlignment.end,
|
||||||
IconButton(
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
onPressed: () {
|
children: [
|
||||||
if (!businessUserSwitch) {
|
IconButton(
|
||||||
setState(() {
|
onPressed: () {
|
||||||
businessUserSwitch = true;
|
if (!businessUserSwitch) {
|
||||||
_selectedIndex = 1;
|
setState(() {
|
||||||
});
|
businessUserSwitch = true;
|
||||||
} else {
|
_selectedIndex = 1;
|
||||||
setState(() {
|
});
|
||||||
businessUserSwitch = false;
|
} else {
|
||||||
_selectedIndex = 0;
|
setState(() {
|
||||||
});
|
businessUserSwitch = false;
|
||||||
}
|
_selectedIndex = 0;
|
||||||
},
|
});
|
||||||
icon: const Icon(
|
}
|
||||||
Icons.swap_horizontal_circle_outlined,
|
},
|
||||||
size: 35,
|
icon: const Icon(
|
||||||
|
Icons.swap_horizontal_circle_outlined,
|
||||||
|
size: 35,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
],
|
||||||
],
|
),
|
||||||
),
|
),
|
||||||
Text(
|
Text(
|
||||||
getHeading(_selectedIndex),
|
getHeading(_selectedIndex),
|
||||||
|
|||||||
Reference in New Issue
Block a user