Stack_Scroll function

Widget Stack_Scroll({
  1. required Widget header,
  2. required List<Widget> content,
})

Implementation

Widget Stack_Scroll({
    required Widget header,
    required List<Widget> content,
}) {
    return PopScope(
        canPop: false,
        child: Scaffold(
            body: SafeArea(
                child: SingleChildScrollView(
                    child: Column(
                        children: [
                            header,
                            Container(
                                padding: const EdgeInsets.symmetric(horizontal: 24),
                                child: CustomColumn(content, 24),
                            ),
                        ],
                    ),
                ),
            ),
        ),
    );
}