first commit

This commit is contained in:
Anbarasu
2026-05-26 18:01:57 +05:30
commit 6d59c8daf6
297 changed files with 35238 additions and 0 deletions

View File

@@ -0,0 +1,163 @@
class ApiConstants {
///Flavours Route
static String mainDev = "dev";
static String mainRoute = "live";
///Base Url
static String baseUrl = 'https://jupiter.nearle.app';
static String baseUrl1 = 'https://fiesta.nearle.app';
static String workolikBase = "https://api.workolik.com/api/rest";
///Authentication
static String login='';
static String createCustomer='';
///Products
///Get Product Category
static String getProductCategory='';
static String getAllProductByCategory='';
static String getProductsBySubcategory='';
static String getProductVarient = '';
///Customers
static String getCustomerInfo = '';
static String customerUpdate = '';
// static String getCustomerLocations = '';
static String createCustomerLocations = '';
/// tenants
static String tenantCustomers = '';
static String orderedtenantCustomers = '';
///Admin
static String getAppLocationDetails='';
static String notifyAdmin='' ;
/// Tenants
static String createCustomerTenant ='';
///Orders
static String createOrder = '';
static String getOrder = '';
/// Locations
static String getServiceLocations = '';
static String getSlotTiming = '';
/// Help and support
static String createSupportAndSupport ='';
static String supportTypes = '';
static String getRequestedSupport = '';
/// Customer locations
static String getCustomerLocations = "$workolikBase/getcustomerlocations";
/// getproducts
static String getCustomerOrders = "$workolikBase/getcustomerorders";
/// fetchprofile
static String fetchProfile = "$workolikBase/getbyid?";
static String updateCustomer = "$baseUrl1/live/api/v1/mob/customers/update";
/// Appcategorys
///Authentication
// static String loginDev="$baseUrl/$mainDev/api/v1";
// static String loginLive="$baseUrl/$mainRoute/api/v1";
static String loginDev = "$baseUrl1/$mainDev/api/v1/mob/customers/login";
static String loginLive = "$baseUrl1/$mainRoute/api/v1/mob/customers/login";
///Create Customer
static String createCustomerLive="https://fiesta.nearle.app/live/api/v1/mob/customers/create";
/// Products Varient
static String getProductVarientLive = "$baseUrl/$mainRoute/api/v1/products/getproductbyvariant";
///Get Product Category
static String getProductCategoryDev="$baseUrl/$mainDev/api/v1/products/getproductsubcategories";
static String getProductCategoryLive="$baseUrl/$mainRoute/api/v1/products/getproductsubcategories";
///Get All Product By Category
static String getAllProductByCategoryDev="$baseUrl/$mainDev/api/v1/products/getallproducts";
static String getAllProductByCategoryLive="$baseUrl/$mainRoute/api/v1/products/getallproducts";
///GetProducts By Subcategory
static String getProductsBySubcategoryDev="$baseUrl/$mainDev/api/v1/products/getproductsbysubcategory";
static String getProductsBySubcategoryLive="$baseUrl/$mainRoute/api/v1/products/getproductsbysubcategory";
///Customers
static String getCustomerInfoDev = "$baseUrl/$mainDev/api/v1/customers/getbyid";
static String getCustomerInfoLive = "$baseUrl/$mainRoute/api/v1/customers/getbyid";
static String customerUpdateDev = '$baseUrl/$mainDev/api/v1/customers/update';
static String customerUpdateLive = '$baseUrl/$mainRoute/api/v1/customers/update';
///Customer Locations
// static String getCustomerLocationsDev = "$baseUrl/$mainDev/api/v1/customers/getcustomerlocation";
// static String getCustomerLocationsLive = "$baseUrl/$mainRoute/api/v1/customers/getcustomerlocation";
static String createCustomerLocationsDev = "$baseUrl/$mainRoute/api/v1/customers/createlocations";
static String createCustomerLocationsLive = "$baseUrl/$mainRoute/api/v1/customers/createlocations";
///Orders
static String createOrderDev = "$baseUrl/$mainDev/api/v1/mob/orders/createorder";
static String createOrderLive = "$baseUrl/$mainRoute/api/v1/mob/orders/createorder";
static String getOrderDev = "$baseUrl/$mainDev/api/v3/orders/getcustomerorders";
static String getOrderLive = "$baseUrl/$mainRoute/api/v3/orders/getcustomerorders";
///Admin
static String getAppLocationDetailsDev="$baseUrl/$mainDev/api/v1/utils/getapplocationconfig";
static String getAppLocationDetailsLive="$baseUrl/$mainRoute/api/v1/utils/getapplocationconfig";
static String notifyAdminLive="https://jupiter.nearle.app/live/api/v1/utils/notifytenant";
static String serviceLocationLive = '${baseUrl}/$mainRoute/api/v1/utils/getapplocations';
static String getSlotTimingLive = "$baseUrl/$mainRoute/api/v1/tenants/gettenantslots";
static String createTenantLive = "$baseUrl/$mainRoute/api/v1/tenants/createtenantcustomer";
static String tenantCustomerLive = "$baseUrl1/$mainRoute/api/v1/mob/tenants/getcustomertenants";
static String orderedtenantCustomerLive = "$baseUrl1/$mainRoute/api/v1/mob/orders/getcustomerorders";
static String createSupportAndSupportLive = "$baseUrl/$mainRoute/api/v1/customers/createcustomerrequest";
static String supportTypesLive = "$baseUrl/$mainRoute/api/v1/utils/getapptypes/?tag=customersupport";
static String getRequestedSupportLive = "$baseUrl/$mainRoute/api/v1/customers/getcustomerrequests";
//?customerid=1001&pageno=1&pagesize=1
}

View File

@@ -0,0 +1,84 @@
import 'package:flutter/services.dart';
class AssetConstants {
static const String splashImage = "assets/images/nearleDailyLogo.png";
static const String dailyLogo = "assets/images/dailyLogo.png";
static const String intro1 = "assets/images/intro1.png";
static const String intro2 = "assets/images/intro2.png";
static const String intro3 = "assets/images/intro3.png";
static const String loginImage = "assets/images/loginImage.png";
static const String locationRequestImage = "assets/images/location.png";
static const String notificationImage = "assets/images/notification.png";
static const String recentWatchIcon = "assets/images/recentIcon.png";
static const String banner = "assets/images/banner.png";
static const String logo = "assets/images/nearledash3.png";
///Account
static const String yourOrderImage = "assets/images/yourOrderImage.png";
static const String helpSupport = "assets/images/helpSupport.png";
static const String walletImage = "assets/images/walletImage.png";
static const String profileIcon = "assets/images/profileIcon.png";
static const String favouriteIcon = "assets/images/favouriteIcon.png";
static const String addressIcon = "assets/images/addressIcon.png";
static const String notificationIcon = "assets/images/notificationIcon.png";
static const String faqIcon = "assets/images/faqIcon.png";
static const String playStoreRatingIcon = "assets/images/playStoreRatingIcon.png";
static const String payOnDelivery = "assets/images/payOnDelivery.png";
///No data
static const String noDataProducts = "assets/images/noDataProducts.png";
static const String noDataCart = "assets/images/noDataCart.png";
static const String noRecords = "assets/images/noRecords.png";
static const String noOrders = "assets/images/noOrders.png";
///Orders
static const String personIcon = "assets/images/personIcon.png";
static const String callIcon = "assets/images/callIcon.png";
static const String orderCreateIcon = "assets/images/orderCreateIcon.png";
static const String orderDeliveryIcon = "assets/images/orderDeliveryIcon.png";
static const String orderOnTheWayIcon = "assets/images/orderOnTheWayIcon.png";
static const String orderPrepareIcon = "assets/images/orderPrepareIcon.png";
/// Intro
static const String introNew_1 = "assets/images/intro_1.png";
static const String introNew_2 = "assets/images/intro_2.png";
static const String productActive = "assets/images/fruit.png";
static const String productInactive = "assets/images/fruits_inactive.png";
static const String whiteBackground = "assets/images/white_backrgoudn.png";
static const String scanIcon = "assets/images/Scan_icon.png";
static const String banner_1 = "assets/images/Banner_1.png";
static const String banner_2 = "assets/images/Banner_2.png";
static const String nearToYou = "assets/images/near_to_you.png";
static const String nearleCopyright = "assets/images/nearle_copyrights.png";
static const String storyline1 = "assets/images/storyline_1.png";
static const String storyline2 = "assets/images/storyline_2.png";
static const String storyline3 = "assets/images/storyline_3.png";
static const String fssaiLogo = "assets/images/Fssai-Logo-Vector.png";
}

View File

@@ -0,0 +1,40 @@
import 'package:flutter/material.dart';
class ColorConstants{
static const primaryColor = Color(0xFF662582);
static const primaryColor1 = Color(0xFFE7D3EF);
static const darkGreyColor = Color(0xFF575756);
static const lightGrey = Color(0xFFb2b2b2);
static const greyBottom = Color(0xFFD9D9D9);
static const greenColor = Color(0xFF00b894);
static const secondaryColor = Colors.white;
static const blackColor = Colors.black;
static const lightBlackColor = Colors.black54;
static const grey = Colors.grey;
static const lightGreyBg= Color(0xF5F5F5FF);
static const ratingColor= Color(0xFF2D781E);
static final List<Color> bgColors = [
Colors.white,
Colors.blue.shade50,
Colors.green.shade50,
Colors.orange.shade50,
Colors.purple.shade50,
Colors.red.shade50,
Colors.yellow.shade50,
Colors.cyan.shade50,
Colors.pink.shade50,
Colors.teal.shade50,
Colors.lime.shade50,
Colors.indigo.shade50,
Colors.amber.shade50,
Colors.deepOrange.shade50,
Colors.lightBlue.shade50,
];
}

View File

@@ -0,0 +1,7 @@
import 'package:get/get.dart';
class ErrorConstants{
static RxBool apiError = false.obs;
}

View File

@@ -0,0 +1,67 @@
import 'package:flutter/material.dart';
class FontConstants {
static const String fontFamily = 'Proxima Nova';
}
class ZoomIconButton extends StatefulWidget {
final VoidCallback onTap;
final IconData icon;
final double size;
final Color color;
const ZoomIconButton({
Key? key,
required this.onTap,
this.icon = Icons.more_vert,
this.size = 24,
this.color = Colors.black,
}) : super(key: key);
@override
State<ZoomIconButton> createState() => _ZoomIconButtonState();
}
class _ZoomIconButtonState extends State<ZoomIconButton> {
double _scale = 1.0;
void _onTapDown(TapDownDetails details) {
setState(() {
_scale = 1.2; // zoom in
});
}
void _onTapUp(TapUpDetails details) {
setState(() {
_scale = 1.0; // zoom back
});
widget.onTap(); // trigger your action
}
void _onTapCancel() {
setState(() {
_scale = 1.0; // reset if cancelled
});
}
@override
Widget build(BuildContext context) {
return GestureDetector(
onTapDown: _onTapDown,
onTapUp: _onTapUp,
onTapCancel: _onTapCancel,
child: AnimatedScale(
scale: _scale,
duration: const Duration(milliseconds: 100),
curve: Curves.easeInCirc,
child: Icon(
widget.icon,
size: widget.size,
color: widget.color,
),
),
);
}
}