Documentation Index
Fetch the complete documentation index at: https://synapsync.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
NbxScaffold
A custom scaffold widget that provides a consistent layout structure with enhanced functionality for Nebux applications.Basic Usage
Core Properties
The main content widget to be displayed in the scaffold body
Name of the widget for debugging purposes
Custom app bar widget (overrides built-in app bar)
Configuration for the built-in app bar
Configuration for safe area properties
Configuration for body properties
Bottom navigation bar widget
Floating action button widget
Background color for the scaffold
Gradient or custom decoration for the scaffold background
AppBarConfig
Configuration for the built-in app bar:Title text to display in the app bar
Action widgets to display in the app bar
Custom leading button widget for the app bar
Whether to center the title in the app bar
Whether to show a divider below the app bar
Thickness of the divider below the app bar
Background color for the app bar
Example with App Bar
SafeAreaConfig
Configuration for safe area behavior:Whether to apply safe area to the top of the screen
Whether to apply safe area to the bottom of the screen
Minimum padding for the safe area
Example with Custom Safe Area
BodyConfig
Configuration for body layout and behavior:Whether to wrap the body in a container with default horizontal padding
Decoration to apply to the body container when
wrapInContainer is trueWhether the body should resize to avoid the keyboard
Whether the body should extend behind the app bar
Message to display when user presses back button twice to exit
Example with Custom Body Config
Advanced Examples
Full-Width Layout
For content that should span the full width without default padding:Double Back to Exit
Enable double back press to exit the app:With Gradient Background
With Bottom Navigation
Keyboard-Aware Form
Best Practices
Set
wrapInContainer: false in BodyConfig when your content needs full-width layout (e.g., images, maps, lists with their own padding).Enable
resizeToAvoidBottomInset: true for screens with input fields to ensure they’re visible when the keyboard appears.The default horizontal padding when
wrapInContainer: true is defaultPaddingSize from the design system.When using custom
appBar, the appBarConfig is ignored. Use one or the other, not both.