showModalBottomSheet and builds the styled chrome around your content. Source: styled_bottom_sheet.dart.
API
Behavior & anatomy
- Renders as a floating card, not an edge-to-edge sheet: a
StyledCardwith radius 24 andsurfaceBgfill, inset 8 px from the sides and 16 px from the bottom (plus the keyboard inset — the sheet rises with the keyboard viaviewInsets). isScrollControlled: true— the sheet sizes to its content, beyond half-screen if needed.isDismissible: false— tapping the barrier does not dismiss; users close via the button, drag, or your own actions. Keep the close button visible unless you provide an explicit alternative.- The close button is a rotated
add_circle_sharpicon (45° → an ×) at the top-right. - Returns the modal’s
Future<T?>— resolve it withNavigator.pop(context, value).
Tokens consumed
surfaceBg (card fill); the close icon inherits IconButtonTheme (contrastMedium).
Real usage
lib/widgets/feedback/feedback_rating_form.dart presents the session-feedback flow in a styled sheet.