buildSnackBar method

SnackBar buildSnackBar(
  1. BuildContext context
)

Implementation

SnackBar buildSnackBar(BuildContext context) {
  final theme = getFromContext(context, this);
  return SnackBar(
    margin: width == null
        ? indentBySider
            ? theme.margin.add(
                EdgeInsets.only(
                  left: context.componentSizes.siderSizing.width,
                ),
              )
            : theme.margin
        : null,
    content: build(context),
    padding: EdgeInsets.zero,
    behavior: behavior,
    width: width,
    backgroundColor: theme.backgroundColor,
    elevation: theme.elevation,
    shape: RoundedRectangleBorder(
      borderRadius: theme.borderRadius,
      side: theme.border,
    ),
  );
}