Перейти к основному содержимому

Scaffold

Название типаПоддерживает анимации свойствКонтроллируемый по умолчаниюМожет содержать связанное действиеСсылка
Scaffold✗✔️✗link
Атрибуты (устаревшие модели)
final class ScaffoldAttributes implements DuitAttributes<ScaffoldAttributes> {
//TODO: implement Drawer and related props
final NonChildWidget? appBar,
body,
bottomNavigationBar,
floatingActionButton,
bottomSheet;
// final NonChildWidget? drawer;
// final NonChildWidget? endDrawer;
final Color? backgroundColor;
final bool extendBody, extendBodyBehindAppBar, primary;
final bool? resizeToAvoidBottomInset;
final AlignmentDirectional persistentFooterAlignment;
final List<NonChildWidget>? persistentFooterButtons;
final String? restorationId;
final FloatingActionButtonLocation? floatingActionButtonLocation;

const ScaffoldAttributes({
required this.extendBody,
required this.extendBodyBehindAppBar,
required this.primary,
required this.persistentFooterAlignment,
this.appBar,
this.backgroundColor,
this.body,
this.bottomNavigationBar,
// this.drawer,
// this.endDrawer,
this.floatingActionButton,
this.bottomSheet,
this.persistentFooterButtons,
this.restorationId,
this.floatingActionButtonLocation,
this.resizeToAvoidBottomInset,
});

Пример использования​

Scaffold(
&duit_attributes.ScaffoldAttributes[duit_color.ColorString]{
Body: nil, //child
ExtendBody: duit_utils.BoolPtr(true),
},
"id",
)