ClipPath(
child: Container(
height: 200,
decoration: const BoxDecoration(
gradient: LinearGradient(
colors: [Color(0xFF7CB342), Color(0xFFDCEDC8)],
),
),
child: Center(child: Text('mainPage')),
),
),
I want to apply this code to every pages that will open in my app, How can i do it?
You can create a widget like this:
and use it like: