Root_Takeover function

Widget Root_Takeover({
  1. required Widget header,
  2. required Widget content,
})

Implementation

Widget Root_Takeover({ required Widget header, required Widget content}) {
    return PopScope(
        canPop: false,
        child: Scaffold(
            body: SafeArea(
                child: Column(
                    children: [
                        header,
                        Expanded(
                            child: content,
                        ),
                    ],
                ),
            ),
        ),
    );
}