update category and privacy policy
This commit is contained in:
@@ -22,6 +22,7 @@ class FruitVeggieDetail extends StatefulWidget {
|
||||
|
||||
class _FruitVeggieDetailState extends State<FruitVeggieDetail> {
|
||||
final ScrollController _scrollController = ScrollController();
|
||||
Map<String, bool> _expansionState = {};
|
||||
|
||||
@override
|
||||
void initState() {
|
||||
@@ -62,7 +63,7 @@ class _FruitVeggieDetailState extends State<FruitVeggieDetail> {
|
||||
),
|
||||
),
|
||||
title: const Text(
|
||||
"Vegetables & Fruits",
|
||||
"Frontshop Emporium",
|
||||
style: TextStyle(
|
||||
fontSize: 20,
|
||||
fontWeight: FontWeight.w700,
|
||||
@@ -107,6 +108,7 @@ class _FruitVeggieDetailState extends State<FruitVeggieDetail> {
|
||||
}
|
||||
|
||||
Widget _buildExpandableTile(ProductCategoryModel category) {
|
||||
final isExpanded = _expansionState[category.id] ?? false;
|
||||
if (category.childCategories!.isEmpty) {
|
||||
return ListTile(
|
||||
leading: CachedNetworkImage(
|
||||
@@ -128,6 +130,12 @@ class _FruitVeggieDetailState extends State<FruitVeggieDetail> {
|
||||
child: Card(
|
||||
color: Colors.grey.shade100,
|
||||
child: ExpansionTile(
|
||||
initiallyExpanded: isExpanded,
|
||||
onExpansionChanged: (expanded) {
|
||||
setState(() {
|
||||
_expansionState[category.id!] = expanded;
|
||||
});
|
||||
},
|
||||
leading: CachedNetworkImage(
|
||||
imageUrl: category.image!,
|
||||
width: 40,
|
||||
@@ -135,6 +143,11 @@ class _FruitVeggieDetailState extends State<FruitVeggieDetail> {
|
||||
errorWidget: (context, url, error) => const Icon(Icons.error),
|
||||
),
|
||||
title: Text(category.name!),
|
||||
trailing: Icon(
|
||||
isExpanded ? Icons.keyboard_arrow_down : Icons.keyboard_arrow_right,
|
||||
color:
|
||||
isExpanded ? Colors.green : Colors.black, // Change color here
|
||||
),
|
||||
children:
|
||||
category.childCategories!.map(_buildExpandableTile).toList(),
|
||||
),
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:grocery_app/utils/extensions/extensions.dart';
|
||||
import 'package:provider/provider.dart';
|
||||
import 'package:gap/gap.dart';
|
||||
|
||||
class PrivacyPolicy extends StatelessWidget {
|
||||
@@ -17,7 +13,7 @@ class PrivacyPolicy extends StatelessWidget {
|
||||
leading: IconButton(
|
||||
icon: Icon(Icons.arrow_back_ios_rounded),
|
||||
onPressed: () {
|
||||
Navigator.pop(context); // Handle back button functionality
|
||||
Navigator.pop(context);
|
||||
},
|
||||
),
|
||||
title: Text(
|
||||
@@ -32,72 +28,57 @@ class PrivacyPolicy extends StatelessWidget {
|
||||
padding: EdgeInsets.all(16.w),
|
||||
child: ListView(
|
||||
children: [
|
||||
_buildSectionTitle('1. General Terms'),
|
||||
_buildSectionContent(
|
||||
'Welcome to Frontshop Emporium! We’re delighted to have you here. By accessing or using our platform, '
|
||||
'we kindly ask that you review and agree to our terms and conditions. These ensure a safe and seamless '
|
||||
'experience for everyone. If you have any concerns or do not agree with these terms, we respect your '
|
||||
'choice to refrain from using our platform. Thank you for understanding!',
|
||||
'Frontshop Emporium values your privacy and is committed to protecting your personal data. This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you use our App.',
|
||||
),
|
||||
_buildSectionTitle('2. User Terms'),
|
||||
_buildSubSectionTitle('Eligibility'),
|
||||
_buildSectionTitle('1. Information We Collect'),
|
||||
_buildSectionContent(
|
||||
'• Users must provide accurate and complete information during registration.',
|
||||
'We collect the following types of personal data:\n\n'
|
||||
'• Personal Identifiers: Name, phone number, email address, billing/shipping address.\n'
|
||||
'• Payment Details: Through secure third-party payment processors (we do not store card details).\n'
|
||||
'• Device and Usage Information: IP address, device type, OS version, and activity logs.',
|
||||
),
|
||||
_buildSubSectionTitle('User Responsibilities'),
|
||||
_buildSectionTitle('2. How We Use Your Information'),
|
||||
_buildSectionContent(
|
||||
'• Ensure your account details are secure. You are responsible for all activities under your account.\n'
|
||||
'• Use the platform in compliance with all applicable laws and regulations.\n'
|
||||
'• Do not engage in fraudulent, abusive, or harmful activities, including posting inappropriate content '
|
||||
'or exploiting platform features.',
|
||||
'Your information may be used to:\n\n'
|
||||
'• Process and fulfill orders\n'
|
||||
'• Communicate with you regarding orders, support, and updates\n'
|
||||
'• Improve the App\'s performance and customer experience\n'
|
||||
'• Prevent fraud and ensure security\n'
|
||||
'• Comply with legal obligations',
|
||||
),
|
||||
_buildSubSectionTitle('Order and Payment'),
|
||||
_buildSectionTitle('3. Information Sharing'),
|
||||
_buildSectionContent(
|
||||
'• Orders are confirmed only upon payment.\n'
|
||||
'• Prices, discounts, and offers are subject to change without notice.',
|
||||
'We do not sell, trade, or rent your personal information to third parties. We may share information with:\n\n'
|
||||
'• Service Providers: Such as delivery partners and payment gateways, strictly for fulfilling your orders.\n'
|
||||
'• Legal Authorities: If required by law, court order, or legal process.',
|
||||
),
|
||||
_buildSectionTitle('3. Vendor Terms'),
|
||||
_buildSubSectionTitle('Registration and Eligibility'),
|
||||
_buildSectionTitle('4. Data Security'),
|
||||
_buildSectionContent(
|
||||
'• Vendors must provide valid business details and adhere to local commerce regulations.\n'
|
||||
'• Vendors must be legally registered businesses and provide necessary documentation (e.g., business '
|
||||
'licenses, tax identification). The Company reserves the right to approve or deny vendor applications.\n'
|
||||
'• Both parties agree to keep proprietary information confidential. Vendor information will not be shared '
|
||||
'without consent, except as required by law.',
|
||||
'We implement strong physical, electronic, and procedural safeguards to protect your data. '
|
||||
'However, no method of transmission over the internet or mobile networks is 100% secure.',
|
||||
),
|
||||
_buildSubSectionTitle('Vendor Responsibilities'),
|
||||
_buildSectionTitle('5. Your Rights'),
|
||||
_buildSectionContent(
|
||||
'• Maintain accurate product descriptions, prices, and inventory levels.\n'
|
||||
'• Ensure timely dispatch and delivery of products. Resolve user complaints promptly.\n'
|
||||
'• Vendors must ensure that all products meet quality and safety standards.',
|
||||
'You have the right to:\n\n'
|
||||
'• Access the personal data we hold about you\n'
|
||||
'• Request correction of inaccurate information\n'
|
||||
'• Withdraw consent or delete your account (subject to certain legal or operational exceptions)\n\n'
|
||||
'To exercise any of the above rights, please contact us at support@frontshopemporium.com.',
|
||||
),
|
||||
_buildSectionTitle('4. Delivery Partner Terms'),
|
||||
_buildSubSectionTitle('Eligibility'),
|
||||
_buildSectionTitle('6. Retention of Data'),
|
||||
_buildSectionContent(
|
||||
'• Delivery Partners must provide valid identification. Delivery Partners must be legally registered entities '
|
||||
'or individuals with appropriate licenses and follow all traffic rules and regulations.',
|
||||
'We retain your personal data only for as long as necessary to fulfill the purposes for which it was collected, or as required by law.',
|
||||
),
|
||||
_buildSectionTitle('5. Privacy Policy'),
|
||||
_buildSectionTitle('7. Children’s Privacy'),
|
||||
_buildSectionContent(
|
||||
'Frontshop Emporium is committed to protecting your privacy.\n'
|
||||
'• We do not sell your data to third parties.\n'
|
||||
'• Data may be shared with service providers, delivery partners, and legal authorities as necessary.',
|
||||
'Our App is not intended for use by individuals under the age of 18. '
|
||||
'We do not knowingly collect personal data from minors.',
|
||||
),
|
||||
_buildSectionTitle('6. Refund Policy'),
|
||||
_buildSectionTitle('8. Changes to the Policy'),
|
||||
_buildSectionContent(
|
||||
'• Products are eligible for a refund if they are defective, damaged during delivery, or not as described.\n'
|
||||
'• Requests must be initiated within 7 days of receiving the product.',
|
||||
'We may update this Privacy Policy from time to time. Updates will be posted in the App and will be effective from the date of publication.',
|
||||
),
|
||||
_buildSectionTitle('7. Support Policy'),
|
||||
_buildSectionContent(
|
||||
'• For assistance, contact our support team via email or live chat available on the platform.\n'
|
||||
'• Support hours: Monday to Friday, 9 AM – 6 PM (local time).',
|
||||
),
|
||||
SizedBox(height: 20),
|
||||
|
||||
Gap(20.h),
|
||||
|
||||
// Continue Button
|
||||
Gap(20.h),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
||||
import 'package:flutter_svg/flutter_svg.dart';
|
||||
import 'package:grocery_app/utils/extensions/extensions.dart';
|
||||
@@ -17,7 +16,7 @@ class TermsAndConditionsScreen extends StatelessWidget {
|
||||
leading: IconButton(
|
||||
icon: Icon(Icons.arrow_back_ios_rounded),
|
||||
onPressed: () {
|
||||
Navigator.pop(context); // Handle back button functionality
|
||||
Navigator.pop(context);
|
||||
},
|
||||
),
|
||||
title: Text(
|
||||
@@ -32,72 +31,87 @@ class TermsAndConditionsScreen extends StatelessWidget {
|
||||
padding: EdgeInsets.all(16.w),
|
||||
child: ListView(
|
||||
children: [
|
||||
_buildSectionTitle('1. General Terms'),
|
||||
_buildSectionContent(
|
||||
'Welcome to Frontshop Emporium! We’re delighted to have you here. By accessing or using our platform, '
|
||||
'we kindly ask that you review and agree to our terms and conditions. These ensure a safe and seamless '
|
||||
'experience for everyone. If you have any concerns or do not agree with these terms, we respect your '
|
||||
'choice to refrain from using our platform. Thank you for understanding!',
|
||||
'These Terms and Conditions ("Terms") govern your access to and use of the Frontshop Emporium mobile application ("App"). By downloading, accessing, or using the App, you agree to these Terms. If you do not agree, please do not use the App.',
|
||||
),
|
||||
_buildSectionTitle('2. User Terms'),
|
||||
_buildSubSectionTitle('Eligibility'),
|
||||
_buildSectionTitle('1. Acceptance of Terms'),
|
||||
_buildSectionContent(
|
||||
'• Users must provide accurate and complete information during registration.',
|
||||
'By accessing or using the App, you confirm that you are legally capable of entering into a binding agreement and that you have read, understood, and accepted these Terms.',
|
||||
),
|
||||
_buildSubSectionTitle('User Responsibilities'),
|
||||
_buildSectionTitle('2. User Account'),
|
||||
_buildSectionContent(
|
||||
'• Ensure your account details are secure. You are responsible for all activities under your account.\n'
|
||||
'• Use the platform in compliance with all applicable laws and regulations.\n'
|
||||
'• Do not engage in fraudulent, abusive, or harmful activities, including posting inappropriate content '
|
||||
'or exploiting platform features.',
|
||||
'To access certain features of the App, you may be required to create an account. You agree to provide accurate, current, and complete information and to keep it updated. You are solely responsible for maintaining the confidentiality of your account credentials and for all activities that occur under your account.',
|
||||
),
|
||||
_buildSubSectionTitle('Order and Payment'),
|
||||
_buildSectionTitle('3. Use of the App'),
|
||||
_buildSectionContent(
|
||||
'• Orders are confirmed only upon payment.\n'
|
||||
'• Prices, discounts, and offers are subject to change without notice.',
|
||||
'You agree to use the App for personal, non-commercial purposes only and in accordance with applicable laws. Prohibited activities include:\n• Uploading or transmitting malicious software\n• Violating intellectual property rights\n• Impersonating others or misrepresenting your identity\n• Interfering with app functionality or server operations',
|
||||
),
|
||||
_buildSectionTitle('3. Vendor Terms'),
|
||||
_buildSubSectionTitle('Registration and Eligibility'),
|
||||
_buildSectionTitle('4. Product Descriptions and Pricing'),
|
||||
_buildSectionContent(
|
||||
'• Vendors must provide valid business details and adhere to local commerce regulations.\n'
|
||||
'• Vendors must be legally registered businesses and provide necessary documentation (e.g., business '
|
||||
'licenses, tax identification). The Company reserves the right to approve or deny vendor applications.\n'
|
||||
'• Both parties agree to keep proprietary information confidential. Vendor information will not be shared '
|
||||
'without consent, except as required by law.',
|
||||
'We make every effort to display accurate product details. However, we do not guarantee that product descriptions, pricing, or availability are error-free. We reserve the right to correct any errors and to change or update information at any time without prior notice.',
|
||||
),
|
||||
_buildSubSectionTitle('Vendor Responsibilities'),
|
||||
_buildSectionTitle('5. Orders and Payments'),
|
||||
_buildSectionContent(
|
||||
'• Maintain accurate product descriptions, prices, and inventory levels.\n'
|
||||
'• Ensure timely dispatch and delivery of products. Resolve user complaints promptly.\n'
|
||||
'• Vendors must ensure that all products meet quality and safety standards.',
|
||||
'All orders placed through the App are subject to acceptance and availability. Prices are listed in Indian Rupees (INR) and are inclusive of applicable taxes unless otherwise stated. We reserve the right to refuse or cancel any order at our discretion.',
|
||||
),
|
||||
_buildSectionTitle('4. Delivery Partner Terms'),
|
||||
_buildSubSectionTitle('Eligibility'),
|
||||
_buildSectionTitle('6. Intellectual Property'),
|
||||
_buildSectionContent(
|
||||
'• Delivery Partners must provide valid identification. Delivery Partners must be legally registered entities '
|
||||
'or individuals with appropriate licenses and follow all traffic rules and regulations.',
|
||||
'All content on the App—including text, images, logos, design, software, and trademarks—is the property of Frontshop Emporium or its licensors. You may not reproduce, distribute, or use any content without prior written permission.',
|
||||
),
|
||||
_buildSectionTitle('5. Privacy Policy'),
|
||||
_buildSectionTitle('7. Termination'),
|
||||
_buildSectionContent(
|
||||
'Frontshop Emporium is committed to protecting your privacy.\n'
|
||||
'• We do not sell your data to third parties.\n'
|
||||
'• Data may be shared with service providers, delivery partners, and legal authorities as necessary.',
|
||||
'We reserve the right to suspend or terminate your access to the App at any time, without notice, if you violate these Terms or engage in any unlawful or abusive behavior.',
|
||||
),
|
||||
_buildSectionTitle('6. Refund Policy'),
|
||||
_buildSectionTitle('8. Limitation of Liability'),
|
||||
_buildSectionContent(
|
||||
'• Products are eligible for a refund if they are defective, damaged during delivery, or not as described.\n'
|
||||
'• Requests must be initiated within 7 days of receiving the product.',
|
||||
'To the fullest extent permitted by law, Frontshop Emporium shall not be liable for any indirect, incidental, special, consequential, or punitive damages, or any loss of profits or revenues, whether incurred directly or indirectly.',
|
||||
),
|
||||
_buildSectionTitle('7. Support Policy'),
|
||||
_buildSectionTitle('9. Governing Law'),
|
||||
_buildSectionContent(
|
||||
'• For assistance, contact our support team via email or live chat available on the platform.\n'
|
||||
'• Support hours: Monday to Friday, 9 AM – 6 PM (local time).',
|
||||
'These Terms are governed by the laws of India. Any disputes shall be subject to the exclusive jurisdiction of the courts located in Bilaspur, Chhattisgarh.',
|
||||
),
|
||||
_buildSectionTitle('10. Changes to the Terms'),
|
||||
_buildSectionContent(
|
||||
'We reserve the right to modify these Terms at any time. Any changes will be effective immediately upon posting in the App. Continued use of the App constitutes your acceptance of the revised Terms.',
|
||||
),
|
||||
_buildSectionTitle('Shipping Policy'),
|
||||
_buildSubSectionTitle('1. Service Areas'),
|
||||
_buildSectionContent(
|
||||
'We ship across India. For any special delivery requests, please contact our support team.',
|
||||
),
|
||||
_buildSubSectionTitle('2. Order Processing Time'),
|
||||
_buildSectionContent(
|
||||
'Orders are typically processed within 2-3 business days. A confirmation message with tracking details will be shared once your order is dispatched.',
|
||||
),
|
||||
_buildSubSectionTitle('3. Delivery Timeline'),
|
||||
_buildSectionContent(
|
||||
'Standard delivery time is 5-7 business days depending on your location. Delays due to courier issues or high demand may occasionally occur.',
|
||||
),
|
||||
_buildSubSectionTitle('4. Shipping Charges'),
|
||||
_buildSectionContent(
|
||||
'Shipping fees are calculated during checkout based on the weight and delivery address of your order.',
|
||||
),
|
||||
_buildSubSectionTitle('5. Responsibility'),
|
||||
_buildSectionContent(
|
||||
'While we take utmost care in packing and shipping, Frontshop Emporium is not liable for delays or damage during transit. However, we will assist you in coordinating with the delivery partner if needed.',
|
||||
),
|
||||
_buildSectionTitle('Return and Refund Policy'),
|
||||
_buildSubSectionTitle('1. Return Eligibility'),
|
||||
_buildSectionContent(
|
||||
'Returns are accepted within 7 days of delivery. Items must be unused, in original packaging, and in the same condition as received.',
|
||||
),
|
||||
_buildSubSectionTitle('2. Returnable Items'),
|
||||
_buildSectionContent(
|
||||
'Returns are accepted only for defective or damaged items.',
|
||||
),
|
||||
_buildSubSectionTitle('3. Return Process'),
|
||||
_buildSectionContent(
|
||||
'To initiate a return, contact us at support@frontshopemporium.com with your order details and reason for return. Once approved, return instructions will be provided.',
|
||||
),
|
||||
_buildSubSectionTitle('4. Refunds'),
|
||||
_buildSectionContent(
|
||||
'Once we receive and inspect the returned item, your refund will be credited to the original payment method within 7 business days.',
|
||||
),
|
||||
SizedBox(height: 20),
|
||||
|
||||
Gap(20.h),
|
||||
|
||||
// Continue Button
|
||||
Gap(20.h),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user