35 lines
1.0 KiB
Dart
35 lines
1.0 KiB
Dart
/// Shared string keys, timings, and layout breakpoints used across the app.
|
|
library;
|
|
|
|
/// Human-readable name shown in the splash screen, app bars, and About tile.
|
|
const String kAppName = 'MyApp';
|
|
|
|
/// Package / Android application id.
|
|
const String kPackageName = 'com.example.myapp';
|
|
|
|
/// How long the splash screen stays visible before navigating to the shell.
|
|
const Duration kSplashDuration = Duration(seconds: 2);
|
|
|
|
/// SharedPreferences keys.
|
|
abstract final class StorageKeys {
|
|
static const themeMode = 'theme_mode';
|
|
static const useRemoteData = 'use_remote_data';
|
|
}
|
|
|
|
/// Named routes registered on [MaterialApp].
|
|
abstract final class AppRoutes {
|
|
static const splash = '/';
|
|
static const shell = '/shell';
|
|
static const itemDetail = '/item';
|
|
static const addItem = '/add-item';
|
|
}
|
|
|
|
/// Width thresholds used to adapt padding and card density.
|
|
abstract final class Breakpoints {
|
|
static const compact = 600.0;
|
|
static const medium = 840.0;
|
|
}
|
|
|
|
/// Maximum content width on tablets / large phones so lists stay readable.
|
|
const double kMaxContentWidth = 720.0;
|