last commit
This commit is contained in:
@@ -418,6 +418,7 @@ class _BestDealScreenState extends State<BestDealScreen> {
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
SizedBox(height: 8),
|
||||
Row(
|
||||
children: [
|
||||
|
||||
@@ -900,7 +900,8 @@ class _MycartState extends State<Mycart> {
|
||||
.viewInsets
|
||||
.bottom, // Adjusts for keyboard
|
||||
),
|
||||
child: SingleChildScrollView(child: Consumer<AddtocartProvider>(
|
||||
child: SingleChildScrollView(child:
|
||||
Consumer<AddtocartProvider>(
|
||||
builder: (context, pinProvider, child) {
|
||||
return Container(
|
||||
padding: EdgeInsets.all(20.w),
|
||||
|
||||
@@ -128,7 +128,9 @@ class _FruitVeggieDetailState extends State<FruitVeggieDetail> {
|
||||
return Theme(
|
||||
data: Theme.of(context).copyWith(dividerColor: Colors.transparent),
|
||||
child: Card(
|
||||
color: Colors.grey.shade100,
|
||||
color: isExpanded
|
||||
? Colors.tealAccent.withOpacity(0.3)
|
||||
: Colors.grey.shade100,
|
||||
child: ExpansionTile(
|
||||
initiallyExpanded: isExpanded,
|
||||
onExpansionChanged: (expanded) {
|
||||
@@ -145,8 +147,8 @@ class _FruitVeggieDetailState extends State<FruitVeggieDetail> {
|
||||
title: Text(category.name!),
|
||||
trailing: Icon(
|
||||
isExpanded ? Icons.keyboard_arrow_down : Icons.keyboard_arrow_right,
|
||||
color:
|
||||
isExpanded ? Colors.green : Colors.black, // Change color here
|
||||
color: isExpanded ? Colors.greenAccent : Colors.black,
|
||||
size: 35,
|
||||
),
|
||||
children:
|
||||
category.childCategories!.map(_buildExpandableTile).toList(),
|
||||
|
||||
@@ -87,7 +87,8 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
child: ListView(
|
||||
padding: EdgeInsets.zero,
|
||||
shrinkWrap: true,
|
||||
children: searchProvider.suggestions.map((suggestion) {
|
||||
children: searchProvider.suggestions.map((suggestion)
|
||||
{
|
||||
return ListTile(
|
||||
title: Row(
|
||||
children: [
|
||||
@@ -121,6 +122,8 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
},
|
||||
);
|
||||
}).toList(),
|
||||
|
||||
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -166,7 +169,8 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
controller: _searchController,
|
||||
keyboardType: TextInputType.text,
|
||||
textInputAction: TextInputAction.search,
|
||||
onFieldSubmitted: (value) {
|
||||
onFieldSubmitted: (value)
|
||||
{
|
||||
if (value.isNotEmpty) {
|
||||
provider.getHomeProduct(context, "",
|
||||
_searchController.text, '', '', '');
|
||||
@@ -210,6 +214,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||
);
|
||||
}),
|
||||
),
|
||||
|
||||
const SizedBox(width: 10),
|
||||
InkWell(
|
||||
onTap: () {
|
||||
|
||||
@@ -984,7 +984,8 @@ class _ProductDetailsState extends State<ProductDetails> {
|
||||
double cardWidth = MediaQuery.of(context).size.width * 0.5;
|
||||
|
||||
return InkWell(
|
||||
onTap: () async {
|
||||
onTap: () async
|
||||
{
|
||||
var status = await provider.getProduuctDetails(context,
|
||||
bestdealproduct.id, 1, bestdealproduct.discountPrice);
|
||||
if (status) {
|
||||
@@ -998,14 +999,7 @@ class _ProductDetailsState extends State<ProductDetails> {
|
||||
);
|
||||
}
|
||||
|
||||
// context.push(
|
||||
// MyRoutes.PRODUCTDETAILS,
|
||||
// extra: {
|
||||
// "id": bestdealproduct.id,
|
||||
// "quantity": 1,
|
||||
// "price": bestdealproduct.discountPrice,
|
||||
// },
|
||||
// );
|
||||
|
||||
},
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.all(8.0),
|
||||
|
||||
@@ -395,4 +395,7 @@ class _ProfileScreenState extends State<ProfileScreen> {
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -79,6 +79,9 @@ class PrivacyPolicy extends StatelessWidget {
|
||||
_buildSectionContent(
|
||||
'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('Contact us :'),
|
||||
_buildcontact("Phone :", "9406348489"),
|
||||
_buildcontact("Email :", "support@frontshopemporium.com"),
|
||||
Gap(20.h),
|
||||
],
|
||||
),
|
||||
@@ -116,3 +119,21 @@ Widget _buildSectionContent(String content) {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildcontact(String title, String description) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.only(bottom: 8.0),
|
||||
child: Row(
|
||||
children: [
|
||||
Text(
|
||||
title,
|
||||
style: TextStyle(fontSize: 18, height: 1.5),
|
||||
),
|
||||
Text(
|
||||
description,
|
||||
style: TextStyle(fontSize: 17, height: 1.5, color: Colors.blue),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
@@ -112,6 +112,9 @@ class TermsAndConditionsScreen extends StatelessWidget {
|
||||
_buildSectionContent(
|
||||
'Once we receive and inspect the returned item, your refund will be credited to the original payment method within 7 business days.',
|
||||
),
|
||||
_buildSectionTitle('Contact us :'),
|
||||
_buildcontact("Phone :", "9406348489"),
|
||||
_buildcontact("Email :", "support@frontshopemporium.com"),
|
||||
Gap(20.h),
|
||||
],
|
||||
),
|
||||
@@ -149,3 +152,21 @@ Widget _buildSectionContent(String content) {
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Widget _buildcontact(String title, String description) {
|
||||
return Padding(
|
||||
padding: const EdgeInsets.only(bottom: 8.0),
|
||||
child: Row(
|
||||
children: [
|
||||
Text(
|
||||
title,
|
||||
style: TextStyle(fontSize: 18, height: 1.5),
|
||||
),
|
||||
Text(
|
||||
description,
|
||||
style: TextStyle(fontSize: 17, height: 1.5, color: Colors.blue),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user