drawerButtonW method

Widget drawerButtonW(
  1. dynamic context,
  2. dynamic expandRatio,
  3. dynamic barHeight,
  4. dynamic overlapsContent,
)

Implementation

Widget drawerButtonW(context, expandRatio, barHeight, overlapsContent) =>
    //Open drawer
    Container(
      height: barHeight,
      alignment: Alignment.centerLeft,
      child: ClipRRect(
        borderRadius: BorderRadius.only(
          topLeft: Radius.circular(25),
          bottomLeft: 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: IconButton(
              icon: Icon(Icons.menu),
              onPressed: () {
                Scaffold.of(context).openEndDrawer();
              },
            ),
          ),
        ),
      ),
    );