sidebarx icon indicating copy to clipboard operation
sidebarx copied to clipboard

Question: Set option of orientation

Open ThraaxSession opened this issue 3 years ago • 2 comments

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!

ThraaxSession avatar Nov 01 '22 22:11 ThraaxSession

Hello @ThraaxSession !

  1. 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')),
    )
  1. Yes. Package provide all customization fields for implement any design.

Frezyx avatar Nov 02 '22 05:11 Frezyx

@Frezyx thank you! I've got another little question. Can I use the ScrollController on the SidebarXItem for navigate to the item?

ThraaxSession avatar Nov 02 '22 07:11 ThraaxSession