mirror of
https://github.com/foss42/apidash.git
synced 2025-05-21 00:09:55 +08:00
Update snackbar.dart
This commit is contained in:
@ -3,9 +3,11 @@ import 'package:flutter/material.dart';
|
||||
SnackBar getSnackBar(
|
||||
String text, {
|
||||
bool small = true,
|
||||
Color? color,
|
||||
}) {
|
||||
return SnackBar(
|
||||
width: small ? 300 : 500,
|
||||
backgroundColor: color,
|
||||
behavior: SnackBarBehavior.floating,
|
||||
content: Text(
|
||||
text,
|
||||
|
Reference in New Issue
Block a user