here is the appBar
that i’m trying to achieve,
here is what i tried, but this is not right method at all, how do i achieve this App bar in flutter
Scaffold(
body: SafeArea(
child: ListView(
physics: const BouncingScrollPhysics(),
children: [
Stack(
children: [
Container(
height: 180,
decoration: const BoxDecoration(gradient: AppColor.bgColor),
),
Padding(
padding: const EdgeInsets.only(top: 140),
child: Container(
height: MediaQuery.of(context).size.height - 250,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(30),
color: Colors.white
),
),
)
],
),
],
),
),
);
this is not the right method i know, please provide the right method to achieve this app bar, thank you for your time 🙂
2
Answers
You can use ShapeBorder.
And use case
Result
You can also implement
PreferredSizeWidget
to a widget for Appbar.For Sliver, use
SliverPersistentHeaderDelegate
.