Root_Home function
Implementation
Widget Root_Home({
required Widget header,
required List<Widget> content,
required Widget bumper,
required Widget tabNav,
Alignment alignment = Alignment.topCenter,
bool scroll = true,
}) {
return PopScope(
canPop: false,
child: Scaffold(
resizeToAvoidBottomInset: scroll,
body: SafeArea(
child: Column(
children: [
header,
!scroll ? Expanded(
child: Content(
content,
alignment: alignment
)
) : Expanded(
child: SingleChildScrollView(
child: Content(content),
),
),
bumper,
tabNav,
],
),
),
),
);
}