elastic_drawer 2.0.2 copy "elastic_drawer: ^2.0.2" to clipboard
elastic_drawer: ^2.0.2 copied to clipboard

Elastic Drawer - elastic panel that slides in horizontally to show fully customize content (navigation links, menu items, notes etc.)

Elastic Drawer #

Elastic panel that slides in horizontally to show fully customize content (navigation links, menu items, notes etc.)

img img

How to use #

@override
  Widget build(BuildContext context) {
    return ElasticDrawer(
      mainColor: Colors.white,
      drawerColor: Color(0xff3C3F41),
      mainChild: Column(
        children: [
          Text('MAIN content'),
          ...
        ]
      ),
      drawerChild: Column(
        children: [
          Text('DRAWER content'),
          ...
        ]
      ),
    );
  }
copied to clipboard

If you want to navigate inside use ElasticDrawerKey.navigator

InkWell(
  onTap: (){
    ElasticDrawerKey.navigator.currentState.push(
      MaterialPageRoute(
        builder: (context) => YourNextPage()
      )
    );
    ...
  },
)
copied to clipboard

If you want to close drawer programmatically use ElasticDrawerKey.drawer

InkWell(
  onTap: (){
    ElasticDrawerKey.drawer.currentState.closeElasticDrawer(context);
    ...
  },
)
copied to clipboard

Use parameter markWidth to set width of touch mark (0..1)

img img

Use parameter markPosition to set vertical position of touch mark (0..1)

img img

207
likes
160
points
89
downloads

Publisher

unverified uploader

Weekly Downloads

2024.09.14 - 2025.03.29

Elastic Drawer - elastic panel that slides in horizontally to show fully customize content (navigation links, menu items, notes etc.)

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on elastic_drawer