Skip to content

Commit 7f59102

Browse files
committed
task: uploading product to firebase
1 parent 7dd5d5a commit 7f59102

29 files changed

+212
-135
lines changed

assets/images/products.zip

9.46 MB
Binary file not shown.

lib/utilities/showMessage.dart

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
2+
import 'package:flutter/material.dart';
3+
4+
import '../constants/colors.dart';
5+
6+
// snackbar for error message
7+
showSnackBar(String message, BuildContext context) {
8+
ScaffoldMessenger.of(context).showSnackBar(
9+
SnackBar(
10+
content: Text(
11+
message,
12+
style: const TextStyle(
13+
color: Colors.white,
14+
),
15+
),
16+
backgroundColor: primaryColor,
17+
action: SnackBarAction(
18+
onPressed: () => Navigator.of(context).pop(),
19+
label: 'Dismiss',
20+
textColor: Colors.white,
21+
),
22+
),
23+
);
24+
}

0 commit comments

Comments
 (0)