buildZdsBottomBarThemeData function

ZdsBottomBarThemeData buildZdsBottomBarThemeData(
  1. BuildContext context
)

Returns a ZdsBottomBarThemeData.

Implementation

ZdsBottomBarThemeData buildZdsBottomBarThemeData(BuildContext context) {
  final themeData = Theme.of(context);
  return ZdsBottomBarThemeData(
    height: kBottomBarHeight,
    shadows: <BoxShadow>[
      BoxShadow(
        offset: const Offset(0, -1),
        color: themeData.colorScheme.onBackground.withOpacity(0.1),
        blurRadius: 2,
      ),
    ],
    backgroundColor: themeData.colorScheme.surface,
    contentPadding: const EdgeInsets.symmetric(horizontal: 8),
  );
}