You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Install dependencies
flutter pub get
# Run the app
flutter run
# Run tests
flutter test# Build for release
flutter build apk --release
flutter build ios --release
# Generate icons
flutter pub run flutter_launcher_icons:main
# Analyze code
flutter analyze
# Format code
dart format .
Key Features to Implement
CRM functionality (contacts, leads, deals)
User authentication and authorization
Data synchronization
Offline capability
Modern dashboard with analytics
Mobile-optimized user interface
Testing Strategy
Unit tests for business logic
Widget tests for UI components
Integration tests for user flows
Use flutter_test framework
API Architecture
Centralized URLs: All API endpoints defined in lib/config/api_config.dart
HTTP Service: Unified REST client in lib/services/api_service.dart
Authentication: Google Sign-In + JWT tokens via lib/services/auth_service.dart
Models: Type-safe API response models in lib/models/api_models.dart
Usage Examples: See lib/services/example_usage.dart for implementation patterns
API Usage Pattern
// Get data from APIfinal response =awaitApiService().get(ApiConfig.contacts);
if (response.success) {
final contacts = response.data!.map((json) =>Contact.fromJson(json)).toList();
}
// Authentication checkif (AuthService().isLoggedIn) {
// Make authenticated requests
}
Dependencies Added
http: ^1.1.0 - HTTP client for API calls
google_sign_in: ^6.1.5 - Google authentication
shared_preferences: ^2.2.2 - Local storage for tokens
jwt_decoder: ^2.0.1 - JWT token handling
Notes for AI Assistant
Always use centralized API URLs from ApiConfig
All REST requests must go through ApiService
Handle authentication automatically via AuthService