This commit is contained in:
Aditya Pulipaka
2025-07-10 18:52:04 -05:00
commit e0a41761ec
166 changed files with 8444 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import 'package:flutter/material.dart';
SnackBar errorSnackbar(
Object e, {
Color backgroundColor = const Color.fromARGB(255, 196, 26, 14),
Duration duration = const Duration(seconds: 3),
}) {
return SnackBar(
backgroundColor: Color.fromARGB(255, 196, 26, 14),
content: Text(
e.toString().replaceFirst(RegExp(r'^[^:]+:\s*'), ''),
textAlign: TextAlign.center,
style: TextStyle(
fontSize: 15,
color: Colors.white
)
)
);
}