Skip to content

Instantly share code, notes, and snippets.

@haashem
Created September 25, 2022 17:54
Show Gist options
  • Save haashem/1acac4c9bc05d3d8c1d8dffa98498d66 to your computer and use it in GitHub Desktop.
Save haashem/1acac4c9bc05d3d8c1d8dffa98498d66 to your computer and use it in GitHub Desktop.
HomePage Row
Row(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.center,
children: [
...() {
return Responsive.isMobile(context) == false
? [
SideMenu(
onPressed: ((index) {
_selectedIndex = index;
}),
),
const SizedBox(
width: 128,
)
]
: [];
}(),
Flexible(
child: SizedBox(
width: Responsive.isDesktop(context) ? 708 : 320,
child: IndexedStack(
index: _selectedIndex,
children: const [
SignInAndSecurityPage(),
PersonalInformationPage()
]),
),
),
],
),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment