Skip to content

Commit

Permalink
fix: hot fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
dnielopez committed Oct 24, 2023
1 parent 17adee7 commit 0489ec6
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions lib/pages/profile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,15 @@ class _ProfileScreenState extends State<ProfileScreen> {
imageProfile = imageTemp;
});
} catch (e) {
print('Failed to pick image: $e');
final snackBar = SnackBar(
content: Text(
'Failed to pick image: $e',
style: const TextStyle(color: Colors.white),
),
backgroundColor: Colors.red,
);

ScaffoldMessenger.of(context).showSnackBar(snackBar);
}
}

Expand Down Expand Up @@ -209,7 +217,7 @@ class _ProfileScreenState extends State<ProfileScreen> {
const snackBar = SnackBar(
content: Text(
'Error: Please fill all fields to continue',
style: const TextStyle(color: Colors.white),
style: TextStyle(color: Colors.white),
),
backgroundColor: Colors.red,
);
Expand All @@ -229,7 +237,7 @@ class _ProfileScreenState extends State<ProfileScreen> {
} catch (e) {
final snackBar = SnackBar(
content: Text(
e.toString(),
'Failed to save data: $e',
style: const TextStyle(color: Colors.white),
),
backgroundColor: Colors.red,
Expand Down

0 comments on commit 0489ec6

Please sign in to comment.