Initial commit
This commit is contained in:
10
lib/core/constants/app_constants.dart
Normal file
10
lib/core/constants/app_constants.dart
Normal file
@@ -0,0 +1,10 @@
|
||||
class AppConstants {
|
||||
AppConstants._();
|
||||
|
||||
static const String appName = 'TrainHub';
|
||||
static const double windowWidth = 1280;
|
||||
static const double windowHeight = 800;
|
||||
static const double minWindowWidth = 800;
|
||||
static const double minWindowHeight = 600;
|
||||
static const String databaseName = 'trainhub.sqlite';
|
||||
}
|
||||
32
lib/core/constants/ui_constants.dart
Normal file
32
lib/core/constants/ui_constants.dart
Normal file
@@ -0,0 +1,32 @@
|
||||
import 'package:flutter/material.dart';
|
||||
|
||||
class UIConstants {
|
||||
UIConstants._();
|
||||
|
||||
static const double pagePadding = 24.0;
|
||||
static const double cardPadding = 16.0;
|
||||
static const double sidebarWidth = 300.0;
|
||||
static const double analysisSidebarWidth = 350.0;
|
||||
static const double dialogWidth = 400.0;
|
||||
|
||||
static const double spacing4 = 4.0;
|
||||
static const double spacing8 = 8.0;
|
||||
static const double spacing12 = 12.0;
|
||||
static const double spacing16 = 16.0;
|
||||
static const double spacing24 = 24.0;
|
||||
static const double spacing32 = 32.0;
|
||||
|
||||
static const double borderRadius = 12.0;
|
||||
static const double smallBorderRadius = 8.0;
|
||||
|
||||
static const Duration animationDuration = Duration(milliseconds: 200);
|
||||
static const Duration snackBarDuration = Duration(seconds: 2);
|
||||
|
||||
static const double navRailWidth = 80.0;
|
||||
|
||||
static BorderRadius get cardBorderRadius =>
|
||||
BorderRadius.circular(borderRadius);
|
||||
|
||||
static BorderRadius get smallCardBorderRadius =>
|
||||
BorderRadius.circular(smallBorderRadius);
|
||||
}
|
||||
Reference in New Issue
Block a user