shiburagi / Drawer-Behavior-Flutter

Drawer behavior is a library that provide an extra behavior on drawer, such as, move view or scaling view's height while drawer on slide.
MIT License
209 stars 36 forks source link

MenuItem optimization #40

Closed The28AWG closed 3 years ago

The28AWG commented 3 years ago

This is the best Drawer implementation so far. I've been comparing. But for complete happiness, there is not enough opportunity to use the Widget instead of IconData as icons. And if String is also used Widget will be even better.

shiburagi commented 3 years ago

for this moment you can try use itemBuilder to customize menuItem widget/UI ,

SideDrawer(
  itemBuilder: (context, menuItem, isSelected) {
    return Container();
  }
);
shiburagi commented 3 years ago
The28AWG commented 3 years ago

See https://api.flutter.dev/flutter/widgets/BottomNavigationBarItem-class.html for inspiration

shiburagi commented 3 years ago

Is impossible to use icon attribute, then need to use new one, if u can figure out an alternative, maybe can try fork this project and make a PR. Thank u