Skip to content

Latest commit

 

History

History

slidedrawer

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

flutter_slide_drawer

A slide menu widget like QQ.

Flutter:手把手教你实现一个仿QQ侧滑菜单的功能

The drawer can open from left,right,top or bottom. You can use slideDirection: SlideDirection.top, to control the direction. Use _slideKey.currentState.openOrClose();to open or close drawer freely.

Usage:

SlideStack(
      child: SlideContainer(
        key: _slideKey,
        child: Container(
         /// widget mian.
        ),
        slideDirection: SlideDirection.top,
        onSlide: onSlide,
        drawerSize: maxSlideDistance,
      ),
      drawer: Container(
        /// widget drawer.
      ),
    );

from left
from left

from left

from top
from top