Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sidebar not opening. #46

Open
billyz313 opened this issue May 19, 2023 · 2 comments
Open

Sidebar not opening. #46

billyz313 opened this issue May 19, 2023 · 2 comments

Comments

@billyz313
Copy link

The sidebar is not opening when I try to expand it. I have it in a stack so it displays over the map. I tried it in a row like the example and it threw an error "Unsupported operation: -infinity" which is why I decided to try the stack.

image

Here is an animated gif with it in the stack. It loads fine, but it's not opening. Also, i confirmed it does the same if i deploy to an emulator and physical device as well:

sidebar_issue

To Reproduce

body: Stack(
        children: [Padding(
                            padding: const EdgeInsets.all(0),
                            child: Column(children: [
                              Flexible(
                                child: FlutterMap(
                                  mapController: _mapController,
                                  options: MapOptions(
                                    center: LatLng(42.58, 12.43),
                                    zoom: 6,
                                  ),
                                  children: [
                                    TileLayer(
                                      urlTemplate: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
                                      subdomains: ['a', 'b', 'c'],
                                    ),
                                    _wmsTileLayer
                                  ],
                                ),
                              ),
                              SidebarX(
                                  controller: SidebarXController(selectedIndex: 0),
                                  items: const [
                                    SidebarXItem(icon: Icons.home, label: 'Home on the range!'),
                                    SidebarXItem(icon: Icons.search, label: 'Search'),
                                  ],
                                )
                            ]))

Expected behavior
I would like it to open so I can interact with menus that i intend to put inside. The concept looks like:

goal_demo

Desktop (please complete the following information):

  • OS: Windows
  • Browser: chrome
  • Version 113.0.5672.94 (Official Build) (32-bit)

Smartphone (please complete the following information):

  • Device: Pixel 6
  • OS: Android API 33
@kopchok
Copy link

kopchok commented May 25, 2023

Maybe >>> extendedTheme >>> width

@tusharbhambere
Copy link

In SidebarXController use extended: true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants