Skip to content
On this page

Scaffold

The page-level layout for application content and navigation.

Scaffold in FluttyUIScaffold in FluttyUI dark theme

Import

import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;

API Reference

The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.

Scaffold

const Scaffold({
  super.key,
  required this.body,
  this.appBar,
  this.bottomBar,
  this.bottomNavigationBar,
  this.navigationPlacement = NavigationPlacement.automatic,
  this.sideNavigationWidth,
  this.floatingActionButton,
  this.floatingActionButtonAlignment = AlignmentDirectional.bottomEnd,
  this.floatingActionButtonMargin,
  this.resizeToAvoidBottomInset = true,
  this.extendBody = false,
  this.extendBodyBehindAppBar = false,
  this.useSafeArea = true,
  this.avoidDisplayFeatures = true,
  this.backgroundColor,
});
ParameterTypeRequiredDefault
keyKey?Nonull
bodyWidgetYes—
appBarWidget?Nonull
bottomBarWidget?Nonull
bottomNavigationBarWidget?Nonull
navigationPlacementNavigationPlacementNoNavigationPlacement.automatic
sideNavigationWidthdouble?Nonull
floatingActionButtonWidget?Nonull
floatingActionButtonAlignmentAlignmentGeometryNoAlignmentDirectional.bottomEnd
floatingActionButtonMarginEdgeInsetsGeometry?Nonull
resizeToAvoidBottomInsetboolNotrue
extendBodyboolNofalse
extendBodyBehindAppBarboolNofalse
useSafeAreaboolNotrue
avoidDisplayFeaturesboolNotrue
backgroundColorColor?Nonull

Application Setup

Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.

Source

lib/src/widgets/layouts/scaffold/scaffold.dart

This reference is generated from the Scaffold declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

DartFlutter

Get started with FluttyUI