- Add config.dart for API configuration - Implement sidebar navigation with logout functionality - Add file sharing dialog with public/private options - Create shares page to view and manage shared files - Implement file upload/download/delete operations - Add authentication persistence using shared preferences - Configure CORS for API to enable cross-origin requests
10 lines
254 B
Dart
10 lines
254 B
Dart
import 'package:flutter_dotenv/flutter_dotenv.dart';
|
|
|
|
class Config {
|
|
static String get apiBaseUrl =>
|
|
dotenv.env['API_URL'] ?? 'http://localhost:8082';
|
|
static String get apiPath => '/api';
|
|
|
|
static String get apiUrl => '$apiBaseUrl$apiPath';
|
|
}
|