AppConstants class

Application-wide constants for consistent values.

All values are static constants and the class cannot be instantiated. Use these constants throughout your application for consistency.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

debounceDelay → const Duration
Default debounce delay (300ms)
defaultAppBarHeight → const double
Default app bar height (56.0)
defaultBorderRadius → const double
Default border radius (8.0)
defaultBottomNavBarHeight → const double
Default bottom navigation bar height (56.0)
defaultButtonHeight → const double
Default button height (48.0)
defaultCacheDuration → const Duration
Default cache duration (1 hour)
defaultElevation → const double
Default elevation (2.0)
defaultIconSize → const double
Default icon size (24.0)
defaultMargin → const double
Default margin value (16.0)
defaultPadding → const double
Default padding value (16.0)
defaultPageSize → const int
Default page size (20 items)
defaultRetryCount → const int
Default retry count (3)
defaultSnackbarDuration → const Duration
Default snackbar duration (3 seconds)
defaultTextFieldLength → const int
Default text field length (255 characters)
desktopBreakpoint → const double
Desktop breakpoint (1200px)
extraLargeBorderRadius → const double
Extra large border radius (24.0)
extraLargeIconSize → const double
Extra large icon size (48.0)
extraLongAnimation → const Duration
Extra long animation duration (800ms)
highElevation → const double
High elevation (8.0)
largeBorderRadius → const double
Large border radius (16.0)
largeButtonHeight → const double
Large button height (56.0)
largeDesktopBreakpoint → const double
Large desktop breakpoint (1800px)
largeIconSize → const double
Large icon size (32.0)
largePageSize → const int
Large page size (50 items)
longAnimation → const Duration
Long animation duration (500ms)
longCacheDuration → const Duration
Long cache duration (24 hours)
longSnackbarDuration → const Duration
Long snackbar duration (5 seconds)
longTimeout → const Duration
Long timeout (60 seconds)
maxFileSize → const int
Maximum file size (10 MB)
maxImageSize → const int
Maximum image size (5 MB)
maxPageSize → const int
Maximum page size (100 items)
maxRetryCount → const int
Maximum retry count (5)
maxTextFieldLength → const int
Maximum text field length (1000 characters)
maxVideoSize → const int
Maximum video size (100 MB)
mediumAnimation → const Duration
Medium animation duration (300ms)
mediumTimeout → const Duration
Medium timeout (15 seconds)
mobileBreakpoint → const double
Mobile breakpoint (600px)
networkTimeout → const Duration
Network timeout (30 seconds)
pageTransitionDuration → const Duration
Page transition duration (300ms)
retryDelay → const Duration
Retry delay (1 second)
searchDebounceDelay → const Duration
Search debounce delay (500ms)
shortAnimation → const Duration
Short animation duration (200ms)
shortCacheDuration → const Duration
Short cache duration (15 minutes)
shortSnackbarDuration → const Duration
Short snackbar duration (2 seconds)
shortTextFieldLength → const int
Short text field length (50 characters)
shortTimeout → const Duration
Short timeout (5 seconds)
smallBorderRadius → const double
Small border radius (4.0)
smallButtonHeight → const double
Small button height (36.0)
smallIconSize → const double
Small icon size (16.0)
smallPageSize → const int
Small page size (10 items)
tabletBreakpoint → const double
Tablet breakpoint (900px)
throttleDelay → const Duration
Throttle delay (100ms)