Skip to content
Discussion options

You must be logged in to vote

Adding extra space around a BottomBarVisibility widget is a source of problems and should be avoided whenever possible.

Prefer this:

StickyBottomBarVisibility(
  child: Padding(child: ElevatedButton(...)),
);

to this:

Padding(
  child: StickyBottomBarVisibility(child: ElevatedButton(...)),
);

For the same reason, avoid adding extra space between a sheet widget and the SheetContentScaffold. So it is better to wrap the ScrollableSheet with the SafeArea than to wrap the SheetScaffold with the SafeArea.

SafeArea(
  child: ScrollableSheet(
    child: SheetContentScaffold(...),
  ),
);

One more thing. Since the SheetContentScaffold is a thin wrapper around the Scaffold, you don't need to use the

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by fujidaiti
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #73 on March 23, 2024 07:06.