| j / k | Scroll down / up |
| gg | Scroll to top |
| G | Scroll to bottom |
| / | Open search |
| ? | Show this help |
| Esc | Close search / help |
| n / N | Next / previous section |
| h | Go to landing |
| d | Go to docs |
| : | Command mode — type section name |
Press ? or Esc to close
No .env files committed. No hardcoded base URLs. Configuration is injected at compile time via dart-define.
// config/constants/app_constants.dart
class AppConstants {
static const baseUrl = String.fromEnvironment(
'BASE_URL',
defaultValue: 'https://dev-api.example.com',
);
}# Single value flutter run --dart-define=BASE_URL=https://api.example.com # Full environment file (dev / staging / prod) flutter run --dart-define-from-file=env/prod.json
// env/prod.json
{
"BASE_URL": "https://api.example.com",
"ENV": "production"
}