reduce font of notification

This commit is contained in:
Patrick Alvin Alcala 2025-04-02 15:56:09 +08:00
parent 69615fa4b6
commit 9de2d0e7d2

View file

@ -4,7 +4,7 @@ import 'package:google_fonts/google_fonts.dart';
void showNotification(BuildContext context, String text, bool isPositive) { void showNotification(BuildContext context, String text, bool isPositive) {
ScaffoldMessenger.of(context).showSnackBar( ScaffoldMessenger.of(context).showSnackBar(
SnackBar( SnackBar(
content: Text(text, style: GoogleFonts.inter(fontSize: 14, fontWeight: FontWeight.w600)), content: Text(text, style: GoogleFonts.inter(fontSize: 12, fontWeight: FontWeight.w400)),
backgroundColor: isPositive ? const Color.fromRGBO(37, 106, 32, 1) : const Color.fromRGBO(188, 59, 50, 1), backgroundColor: isPositive ? const Color.fromRGBO(37, 106, 32, 1) : const Color.fromRGBO(188, 59, 50, 1),
elevation: 4.0, elevation: 4.0,
behavior: SnackBarBehavior.floating, behavior: SnackBarBehavior.floating,