Initial commit
This commit is contained in:
39
lib/core/constants/app_icons.dart
Normal file
39
lib/core/constants/app_icons.dart
Normal file
@@ -0,0 +1,39 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
|
||||
class CupertinoIconHelper {
|
||||
static const Map<
|
||||
String,
|
||||
IconData
|
||||
>
|
||||
_iconMap = {
|
||||
'add': CupertinoIcons.add,
|
||||
'add_circled': CupertinoIcons.add_circled,
|
||||
'bell': CupertinoIcons.bell,
|
||||
'bell_fill': CupertinoIcons.bell_fill,
|
||||
'camera': CupertinoIcons.camera,
|
||||
'camera_fill': CupertinoIcons.camera_fill,
|
||||
'car': CupertinoIcons.car,
|
||||
'house': CupertinoIcons.house,
|
||||
'house_fill': CupertinoIcons.house_fill,
|
||||
'leaf': CupertinoIcons.leaf_arrow_circlepath,
|
||||
'person': CupertinoIcons.person,
|
||||
'person_fill': CupertinoIcons.person_fill,
|
||||
'search': CupertinoIcons.search,
|
||||
'sportscourt': CupertinoIcons.sportscourt,
|
||||
'sportscourt_fill': CupertinoIcons.sportscourt_fill,
|
||||
'wrench': CupertinoIcons.wrench,
|
||||
'wrench_fill': CupertinoIcons.wrench_fill,
|
||||
'square_grid_2x2': CupertinoIcons.square_grid_2x2,
|
||||
'square_grid_2x2_fill': CupertinoIcons.square_grid_2x2_fill,
|
||||
'desktopcomputer': CupertinoIcons.desktopcomputer,
|
||||
'tree': CupertinoIcons.tree,
|
||||
// extend with more CupertinoIcons as needed
|
||||
};
|
||||
|
||||
static IconData fromString(
|
||||
String key,
|
||||
) {
|
||||
return _iconMap[key] ??
|
||||
CupertinoIcons.question; // 👈 default fallback
|
||||
}
|
||||
}
|
||||
65
lib/core/constants/app_text.dart
Normal file
65
lib/core/constants/app_text.dart
Normal file
@@ -0,0 +1,65 @@
|
||||
const appTitle = 'HUM';
|
||||
|
||||
// GENERAL
|
||||
const doneLabel = 'Done';
|
||||
const doneCancel = 'Cancel';
|
||||
const doneBack = 'Back';
|
||||
|
||||
// HOME PAGE
|
||||
const homeViewSearchPlaceholder = 'Ask me anything...';
|
||||
const homeViewVoiceTitle = 'Tap the image, chat with HUM AI';
|
||||
const homeViewVoiceMessage = 'Your intelligent rental marketplace';
|
||||
const homeBTNBrowse = 'Show Listings';
|
||||
const homeViewAI = 'HUM AI';
|
||||
const homeViewGrid = 'GRID';
|
||||
const homeViewMap = 'SHOW MAP';
|
||||
const homeViewIdeas = [
|
||||
'💡 Ask: "Find gaming gear near me"',
|
||||
'💡 Ask: "What is trending in electronics"',
|
||||
'💡 Try: "Show me constructions tools."',
|
||||
'💡 Try: "I need camera gear for a wedding"',
|
||||
];
|
||||
|
||||
// HOME FILTERS
|
||||
const filterLocation = 'Location';
|
||||
const filterLocationPlaceholder = 'Type a city or location...';
|
||||
const filterDates = 'Dates';
|
||||
const filterLabelStartDate = 'Start Date';
|
||||
const filterLabelEndDate = 'End Date';
|
||||
const filterPricing = 'Price';
|
||||
|
||||
// LISTINGS
|
||||
const listingAddTitle = 'Add Your Item';
|
||||
const listingAddMessage =
|
||||
"Snatch a photo, we'll fill in the details for you. You can edit before posting.";
|
||||
const listingTakePhoto = 'Take a photo';
|
||||
const listingTakePhotoDescription = 'Use your camera';
|
||||
const listingChoosePhoto = 'Choose from Library';
|
||||
const listingChoosePhotoDescription = 'Select existing photo';
|
||||
const listingLabelFeatures = 'Features';
|
||||
const listingLabelOwner = 'Owner';
|
||||
const listingLabelCondition = 'Condition: ';
|
||||
const listingConditionGood = 'Good';
|
||||
const listingActionMessage = 'Message';
|
||||
const listingActionRent = 'Rent';
|
||||
|
||||
// AUTH
|
||||
const authTitleSignIn = 'Welcome Back';
|
||||
const authTitleSignUp = 'Create Account';
|
||||
const authPlaceholderDisplayName = 'Display Name';
|
||||
const authPlaceholderEmail = 'Email';
|
||||
const authPlaceholderPassword = 'Password';
|
||||
const authSignIn = 'Sign In';
|
||||
const authSignUp = 'Sign Up';
|
||||
const authModeSignUp = 'Need an account? Sign Up';
|
||||
const authModeSignIn = 'Got an account? Sign In';
|
||||
const authSignGoogle = 'Sign in with Google';
|
||||
const authSignApple = 'Sign in with Apple';
|
||||
|
||||
// PROFILE
|
||||
const profileTitle = 'Profile';
|
||||
const profileBtnSignOut = 'Sign Out';
|
||||
const profileStatRental = 'Rentals';
|
||||
const profileStatListings = 'Listings';
|
||||
const profileStatEarnings = 'Earnings';
|
||||
const profileStatFavorites = 'Favorites';
|
||||
33
lib/core/constants/app_theme.dart
Normal file
33
lib/core/constants/app_theme.dart
Normal file
@@ -0,0 +1,33 @@
|
||||
import 'package:flutter/cupertino.dart';
|
||||
|
||||
// SIZES
|
||||
const searchBarHeight = 40.0;
|
||||
const categoryHeight = 30.0;
|
||||
const roundLarge = 12.0;
|
||||
const radiusCards = 26.0;
|
||||
|
||||
// COLORS
|
||||
const colorAccentPrimary = CupertinoDynamicColor.withBrightness(
|
||||
color: Color(0xFF00CC00),
|
||||
darkColor: Color(0xFF67ce67),
|
||||
);
|
||||
|
||||
const colorAccentSecondary = CupertinoDynamicColor.withBrightness(
|
||||
color: Color(0xFF283CD7),
|
||||
darkColor: Color(0xFF369DF7),
|
||||
);
|
||||
|
||||
const colorBackground = CupertinoDynamicColor.withBrightness(
|
||||
color: Color(0xFFF8F8F8),
|
||||
darkColor: Color(0xFF0a0a0a),
|
||||
);
|
||||
|
||||
const colorBarBackground = CupertinoColors.systemGrey6;
|
||||
const colorBarControl = CupertinoColors.systemGrey5;
|
||||
const colorBarControlBordeer = CupertinoColors.systemGrey4;
|
||||
const colorBarButton = CupertinoColors.systemGrey5;
|
||||
const colorCategoryButtonBG = CupertinoColors.systemGrey3;
|
||||
const colorCategoryButtonFG = CupertinoDynamicColor.withBrightness(
|
||||
color: Color(0xFFFFFFFF),
|
||||
darkColor: Color(0xFFDFDFE5),
|
||||
);
|
||||
Reference in New Issue
Block a user