convex_bottom_bar icon indicating copy to clipboard operation
convex_bottom_bar copied to clipboard

Selected option occludes snack bar messages

Open avishail opened this issue 1 year ago • 3 comments

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.

avishail avatar Aug 30 '23 16:08 avishail

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

avenwu avatar Aug 31 '23 00:08 avenwu

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

avishail avatar Sep 07 '23 07:09 avishail

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.

avishail avatar Sep 07 '23 07:09 avishail