backButtonW method
Widget
backButtonW( - dynamic context,
- dynamic expandRatio,
- dynamic barHeight,
- dynamic overlapsContent,
)
Implementation
Widget backButtonW(context, expandRatio, barHeight, overlapsContent) =>
Container(
height: barHeight,
alignment: Alignment.centerLeft,
child: ClipRRect(
borderRadius: BorderRadius.only(
topRight: Radius.circular(25),
bottomRight: Radius.circular(25),
),
child: BackdropFilter(
filter: ImageFilter.blur(sigmaX: 5, sigmaY: 5),
child: Container(
alignment: Alignment.centerLeft,
color: Theme.of(context).colorScheme.surface.withOpacity(0.5),
height: barHeight - 20,
child: (ModalRoute.of(context)?.canPop ?? false)
? BackButton(
onPressed: Navigator.of(context).pop,
)
: Container(),
),
),
),
);