backButtonW method

Widget backButtonW(
  1. dynamic context,
  2. dynamic expandRatio,
  3. dynamic barHeight,
  4. 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(),
          ),
        ),
      ),
    );