cc
This commit is contained in:
parent
d5630ce74a
commit
0a8ee86996
1 changed files with 11 additions and 16 deletions
|
|
@ -1,50 +1,49 @@
|
|||
import 'package:flutter/material.dart';
|
||||
|
||||
class AppConstants {
|
||||
// App Theme
|
||||
|
||||
static const Color primaryColor = Color(0xFF0175C2);
|
||||
|
||||
// Extension Communication
|
||||
static const String extensionSource = 'tab-tracker-extension';
|
||||
static const String webappSource = 'tab-tracker-webapp';
|
||||
|
||||
// Default Values
|
||||
|
||||
static const int defaultHistoryLimit = 100;
|
||||
static const Duration extensionCheckDelay = Duration(milliseconds: 500);
|
||||
|
||||
// Grid Configuration
|
||||
|
||||
static const double maxCrossAxisExtent = 300.0;
|
||||
static const double childAspectRatio = 1.3;
|
||||
static const double crossAxisSpacing = 16.0;
|
||||
static const double mainAxisSpacing = 16.0;
|
||||
|
||||
// Padding and Spacing
|
||||
|
||||
static const EdgeInsets defaultPadding = EdgeInsets.all(16.0);
|
||||
static const EdgeInsets cardPadding = EdgeInsets.all(12.0);
|
||||
static const EdgeInsets buttonPadding = EdgeInsets.symmetric(horizontal: 8, vertical: 4);
|
||||
|
||||
// Icon Sizes
|
||||
|
||||
static const double smallIconSize = 14.0;
|
||||
static const double mediumIconSize = 18.0;
|
||||
static const double largeIconSize = 32.0;
|
||||
static const double emptyStateIconSize = 80.0;
|
||||
|
||||
// Text Styles
|
||||
|
||||
static const double smallFontSize = 10.0;
|
||||
static const double mediumFontSize = 20.0;
|
||||
|
||||
// Sort Options
|
||||
|
||||
static const List<String> sortOptions = ['recent', 'title', 'url', 'visits'];
|
||||
static const List<String> filterOptions = ['all', 'tabs', 'bookmarks', 'history'];
|
||||
|
||||
// Messages
|
||||
|
||||
static const String trackingMessage = 'TRACKING';
|
||||
static const String waitingMessage = 'Waiting for tabs...';
|
||||
static const String noItemsMessage = 'No items found';
|
||||
static const String openTabsHint = 'Open some tabs to see them here';
|
||||
static const String tryDifferentSearchHint = 'Try a different search or filter';
|
||||
|
||||
// Search Hints
|
||||
|
||||
static const String extensionSearchHint = 'Search tracked tabs...';
|
||||
static const String normalSearchHint = 'Search tabs, bookmarks, and history...';
|
||||
}
|
||||
|
|
@ -54,11 +53,7 @@ class AppConstants {
|
|||
//
|
||||
// Instead of hardcoding values
|
||||
//
|
||||
// This makes it easy to update the entire app by changing values in just one location.
|
||||
//translation and text updates simple.
|
||||
//
|
||||
// For example, changing primaryColor here updates every button, header, and highlight in the app.
|
||||
//
|
||||
// All user-facing messages are stored here making translation and text updates simple.
|
||||
//
|
||||
// Grid layout values are defined here so we can adjust the card view globally.
|
||||
// Grid layout values defined
|
||||
// Easy maintain
|
||||
Loading…
Reference in a new issue