medyas / flutter_zoom_drawer

A Flutter package with custom implementation of Drawer
MIT License
448 stars 100 forks source link

Sidemenu widget build again #113

Closed sagarsmartsense closed 1 year ago

sagarsmartsense commented 1 year ago

I have an inner screen in one of the menu items on the side menu. In which I have a text field. While opening/closing the keyboard on that text field, the side menu widget rebuilds again which causes an issue in the application.


return Scaffold(
      body: ZoomDrawer(
        controller: _drawerController,
        style: DrawerStyle.defaultStyle,
        menuScreen: SideMenuView(
          callback: _updatePage,
          current: widget.currentItem,
          zoomController: _drawerController,
        ),
        mainScreen: getScreen(),
        borderRadius: 24.0,
        showShadow: false,
        angle: 0.0,
        mainScreenOverlayColor: Colors.brown.withOpacity(0.3),
        menuScreenWidth: double.infinity,
        moveMenuScreen: false,
        openCurve: Curves.fastOutSlowIn,
        slideWidth: MediaQuery.of(context).size.width * 0.85,
        mainScreenAbsorbPointer: false,
        androidCloseOnBackTap: true,
        mainScreenTapClose: true,
        menuScreenTapClose: true,
        mainScreenScale: 0.15,
      ),
    );

Here the main screen rebuilds again.

medyas commented 1 year ago

@sagarsmartsense could you share an example app

sagarsmartsense commented 1 year ago

I replaced it with another library after waiting for a long.