Scaffold
Creates a visual scaffold for Forui widgets.
Preview
CLI
To generate and customize this style:
dart run forui style create scaffold
Usage
A scaffold may include a sidebar. A working example can be found here.
FScaffold(...)
FScaffold(
scaffoldStyle: FScaffoldStyle(...),
toasterStyle: FToasterStyle(...),
header: FHeader(
title: const Text('Settings'),
suffixes: [
FHeaderAction(
icon: Icon(FIcons.ellipsis),
onPress: () {},
),
],
),
childPad: true,
child: Column(
children: [
FCard(
title: const Text('Notification'),
subtitle: const Text('You have 3 unread messages.'),
child: FButton(onPress: () {}, child: const Text('Read messages')),
),
],
),
sidebar: FSidebar(children: const []),
footer: FBottomNavigationBar(children: const []),
);
Last updated on