sidebarx
sidebarx copied to clipboard
Question: Set option of orientation
I am not sure if it is possible, yet.
Can I set the orientation if the drawer/sidebar is left or right? I want to use it in a widget where I want to keep my original drawer on the left. And open a sidebar on the right side.
And small additional question: Is the design pure material (3)? I wouldn't like to have a mismatch between the designs.
Thank you!
Hello @ThraaxSession !
- For set mobile drawer on left side you can use endDrawer field of Scaffold
Scaffold(
endDrawer: SidebarX(
controller: SidebarXController(selectedIndex: 0, extended: true),
items: const [
SidebarXItem(icon: Icons.home, label: 'Home'),
SidebarXItem(icon: Icons.search, label: 'Search'),
],
),
body: const Center(child: Text('Your app body')),
)
- Yes. Package provide all customization fields for implement any design.
@Frezyx thank you! I've got another little question. Can I use the ScrollController on the SidebarXItem for navigate to the item?