hacktons / convex_bottom_bar

A Flutter package which implements a ConvexAppBar to show a convex tab in the bottom bar. Theming supported.
https://bar.hacktons.cn
Apache License 2.0
791 stars 147 forks source link

Selected option occludes snack bar messages #201

Open avishail opened 1 year ago

avishail commented 1 year ago

Describe the bug

The selected option occludes snack bar messages. I have a single Scaffold.

WhatsApp Image 2023-08-30 at 19 22 28

Is it fixable? If I'm using a second Scaffold I was able to make the Snack bar to be on top of the convex bottom bar which is also not great according the material design principles.

avenwu commented 1 year ago

It should be fixed. But... the snack bar doest not recognize our bar. I guess we can find some workaround.

avishail commented 1 year ago

@avenwu, is it realistic to assume this will be fixed any time soon?

avishail commented 1 year ago

I've managed to work around it by wrapping the widget with container:

      bottomNavigationBar: Container(
        padding: EdgeInsets.only(top: 16),
        child: ConvexAppBar(
          ...
        ),
      )

but, the result is sub-optimal since I don't see content from the main screen inside the padded area.

Another workaround I found is to place a transparent 1 pixel size floating action button which the layout system will take into considerations when calculating the position of the snackbar.