Open kxs1119 opened 1 week ago
Description:
Acceptance Criteria:
lib/services/DeerService.dart
DeerListScreen.dart
Set Up the Service Layer:
DeerService.dart
http
Fetching Data:
Replace Mock Data:
Error Handling:
Testing:
Description:
Acceptance Criteria:
lib/services/DeerService.dart
that handles API requests to the Flask backend.DeerListScreen.dart
.Steps to Implement:
Set Up the Service Layer:
DeerService.dart
) responsible for making HTTP requests to the Flask backend.http
package to handle these requests.Fetching Data:
Replace Mock Data:
DeerListScreen.dart
is replaced by the real API data fetched from Flask.Error Handling:
Testing: