DashboardShell constructor
DashboardShell({})
Creates a dashboard shell with sidebar, topbar, and main content.
Implementation
DashboardShell({
Object? brand,
Object? sidebar,
String? title,
String? subtitle,
Object? topbar,
Object? actions,
Object? user,
Object? child,
List<Object?> children = const [],
String? className,
Map<String, Object?> props = const {},
Map<String, Object?> style = const {},
DartStyle? dartStyle,
}) : super(
'div',
props: mergeComponentProps(
props,
className: className,
dartStyle: dartStyle,
style: style,
),
children: [
AppShell(
brand: brand,
sidebar: sidebar,
topbar:
topbar ??
Topbar(
title: title,
subtitle: subtitle,
actions: actions,
user: user,
),
children: normalizeChildren(child, children),
dartStyle: DartStyle(
background: ThemeToken.color(
'dashboardBackground',
fallback: '#f8fafc',
).toCss(),
color: ThemeToken.color(
'dashboardText',
fallback: '#101828',
).toCss(),
),
),
],
);