base de dados Funcional

This commit is contained in:
Carlos Correia
2026-03-25 03:43:00 +00:00
parent b70ac32327
commit 2f81415ecd
2 changed files with 113 additions and 9 deletions

View File

@@ -516,11 +516,7 @@ class _GoogleMapScreenState extends State<GoogleMapScreen> {
// Save run data to database
Future<void> _saveRunData(double distance, double pace, int duration) async {
try {
await SupabaseService.saveRun(
distance: distance,
pace: pace,
duration: duration,
);
await SupabaseService.saveRun(distance: distance, pace: pace);
// Show success message (optional)
if (mounted) {