switch alignment
This commit is contained in:
parent
94d2f003f2
commit
50e7a9f622
1 changed files with 26 additions and 23 deletions
|
|
@ -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),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue