footer static method
Sets / removes the footer area of the CodeMeltedUI.app.
Implementation
static void footer({
List<Widget>? actions,
bool automaticallyImplyLeading = true,
bool forceMaterialTransparency = false,
Widget? leading,
AppBarTheme? style,
Widget? title,
}) {
if (actions == null && leading == null && title == null) {
uiState.set<BottomAppBar?>("bottomAppBar", null);
} else {
uiState.set<BottomAppBar?>(
"bottomAppBar",
BottomAppBar(
notchMargin: 0.0,
padding: EdgeInsets.zero,
height: style != null
? style.toolbarHeight
: theme.appBarTheme.toolbarHeight,
child: AppBar(
actions: actions,
actionsIconTheme: style?.actionsIconTheme,
automaticallyImplyLeading: automaticallyImplyLeading,
backgroundColor: style?.backgroundColor,
centerTitle: style?.centerTitle,
elevation: style?.elevation,
foregroundColor: style?.foregroundColor,
forceMaterialTransparency: forceMaterialTransparency,
iconTheme: style?.iconTheme,
leading: leading,
scrolledUnderElevation: style?.scrolledUnderElevation,
shadowColor: style?.shadowColor,
shape: style?.shape,
surfaceTintColor: style?.surfaceTintColor,
title: title,
titleSpacing: style?.titleSpacing,
titleTextStyle: style?.titleTextStyle,
toolbarHeight: style?.toolbarHeight,
toolbarTextStyle: style?.toolbarTextStyle,
systemOverlayStyle: style?.systemOverlayStyle,
),
),
notify: true,
);
}
}