Skip to content

Commit a841e57

Browse files
committed
Update snackbar.dart
1 parent f7699f2 commit a841e57

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/apidash_design_system/lib/widgets/snackbar.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@ import 'package:flutter/material.dart';
33
SnackBar getSnackBar(
44
String text, {
55
bool small = true,
6+
Color? color,
67
}) {
78
return SnackBar(
89
width: small ? 300 : 500,
10+
backgroundColor: color,
911
behavior: SnackBarBehavior.floating,
1012
content: Text(
1113
text,

0 commit comments

Comments
 (0)