second commit

This commit is contained in:
Anbarasu
2026-05-27 10:35:09 +05:30
parent c53794c04c
commit 1435ac47b0
501 changed files with 52818 additions and 0 deletions

View File

@@ -0,0 +1,60 @@
import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:webview_flutter/webview_flutter.dart';
import '../../../Helper/Constants/Colorconstants.dart';
class TermsAndConditionsView extends StatefulWidget {
const TermsAndConditionsView({super.key});
@override
TermsAndConditionsViewState createState() => TermsAndConditionsViewState();
}
class TermsAndConditionsViewState extends State<TermsAndConditionsView> {
final Color primaryColor = const Color.fromRGBO(0, 157, 204, 1);
double webProgress = 0;
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Terms and Conditions',style: TextStyle(color: ColorConstants.secondaryColor,fontFamily: 'Lato')),
leading: InkWell(child: const FaIcon(FontAwesomeIcons.angleLeft,color: Colors.white,size: 30),onTap: ()=>Navigator.pop(context)),
backgroundColor: ColorConstants.primaryColor,
),
body: Column(
children: [
webProgress < 1
? SizedBox(
height: 5,
child: LinearProgressIndicator(
value: webProgress,
color: ColorConstants.primaryColor,
backgroundColor: ColorConstants.secondaryColor,
),
)
: const SizedBox(),
// Expanded(
// child: WebView(
// backgroundColor: ColorConstants.secondaryColor,
// initialUrl: 'https://nearle.in/terms.html',
// javascriptMode: JavascriptMode.unrestricted,
// onProgress: (progress) {
// setState(() {
// webProgress = progress / 100;
// });
// },
// ),
// ),
],
),
);
}
}

View File

@@ -0,0 +1,65 @@
import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:webview_flutter/webview_flutter.dart';
import '../../../Helper/Constants/Colorconstants.dart';
class CustomerFaqs extends StatefulWidget {
const CustomerFaqs({Key? key, this.title}) : super(key: key);
final String? title;
@override
CustomerFaqsState createState() => CustomerFaqsState();
}
class CustomerFaqsState extends State<CustomerFaqs> {
double webProgress = 0;
@override
void initState() {
super.initState();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('FAQ\'s',style: TextStyle(color: ColorConstants.secondaryColor,fontFamily: 'Lato')),
leading: InkWell(child: const FaIcon(FontAwesomeIcons.angleLeft,color: Colors.white,size: 30),onTap: ()=>Navigator.pop(context)),
backgroundColor: ColorConstants.primaryColor,
),
body: Column(
children: [
webProgress < 1
? SizedBox(
height: 5,
child: LinearProgressIndicator(
value: webProgress,
color: ColorConstants.primaryColor,
backgroundColor: ColorConstants.secondaryColor,
),
)
: const SizedBox(),
// Expanded(
// child: WebView(
// backgroundColor: ColorConstants.secondaryColor,
// initialUrl: ' https://nearle.in/faq.html',
// javascriptMode: JavascriptMode.unrestricted,
// onProgress: (progress) {
// setState(() {
// webProgress = progress / 100;
// });
// },
// ),
// ),
],
),
);
}
}

View File

@@ -0,0 +1,150 @@
import 'package:flutter/material.dart';
import 'package:get/get.dart';
import '../../../Helper/Constants/Assetconstants.dart';
import '../../../Helper/Constants/Colorconstants.dart';
import 'Termsandconditionsview.dart';
import 'privacy.dart';
import 'customerfaqs.dart';
class FaqTabs extends StatelessWidget {
const FaqTabs({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Our Policies and FAQ\'s',style: TextStyle(color: ColorConstants.secondaryColor,fontFamily: 'Lato')),
leading: InkWell(child: const Icon(Icons.arrow_back,color: Colors.white,size: 30),onTap: ()=>Navigator.pop(context)),
backgroundColor: ColorConstants.primaryColor,
),
body: Column(
children: [
Padding(
padding: const EdgeInsets.only(top: 20,left: 10,right: 10),
child: InkWell(
onTap: (){
Get.to(()=>const CustomerFaqs());
},
child: Card(
shadowColor: ColorConstants.secondaryColor,
child: Container(
height: Get.height*0.08,
width: Get.width*0.95,
decoration: BoxDecoration(border: Border.all(color: Colors.grey[400]!),borderRadius: BorderRadius.circular(10)),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
const SizedBox(width: 10,),
Row(
children: [
Icon(Icons.info_outline,color: Colors.black,size: 36,),
SizedBox(width: 10,),
Text("FAQ's",style: TextStyle(color: Colors.black,fontSize: 18,fontWeight: FontWeight.bold,fontFamily: 'Lato')),
],
),
const Spacer(),
SizedBox(
height: Get.height*0.10,
width: Get.width*0.10,
// decoration: const BoxDecoration(color: ColorConstants.primaryColor,borderRadius: BorderRadius.only(topRight: Radius.circular(10),bottomRight: Radius.circular(10))),
child: const Center(
child: Icon(Icons.arrow_forward_ios,color: Colors.black,size: 22),
),
)
],
),
),
),
),
),
Padding(
padding: const EdgeInsets.only(top: 6,left: 10,right: 10),
child: InkWell(
onTap: (){
Get.to(()=>const Privacy());
},
child: Card(
shadowColor: ColorConstants.secondaryColor,
child: Container(
height: Get.height*0.08,
width: Get.width*0.95,
decoration: BoxDecoration(border: Border.all(color: Colors.grey[400]!),borderRadius: BorderRadius.circular(10)),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
const SizedBox(width: 10,),
Row(
children: [
Image(
height: 40,
width: 40,
image: AssetImage(AssetConstants.privacyPolicy,)),
SizedBox(width: 10,),
Text("Privacy Policy",style: TextStyle(color: Colors.black,fontSize: 18,fontWeight: FontWeight.bold,fontFamily: 'Lato')),
],
),
const Spacer(),
SizedBox(
height: Get.height*0.10,
width: Get.width*0.10,
// decoration: const BoxDecoration(color: ColorConstants.primaryColor,borderRadius: BorderRadius.only(topRight: Radius.circular(10),bottomRight: Radius.circular(10))),
child: const Center(
child: Icon(Icons.arrow_forward_ios,color: Colors.black,size: 22),
),
)
],
),
),
),
),
),
Padding(
padding: const EdgeInsets.only(top: 6,left: 10,right: 10),
child: InkWell(
onTap: (){
Get.to(()=>const TermsAndConditionsView());
},
child: Card(
shadowColor: ColorConstants.secondaryColor,
child: Container(
height: Get.height*0.08,
width: Get.width*0.95,
decoration: BoxDecoration(border: Border.all(color: Colors.grey[400]!),borderRadius: BorderRadius.circular(10)),
child: Row(
mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
const SizedBox(width: 10,),
Row(
children: [
Icon(Icons.assignment_outlined,color: Colors.black,size: 36,),
SizedBox(width: 10,),
Text("Term's and conditions",style: TextStyle(color: Colors.black,fontSize: 18,fontWeight: FontWeight.bold,fontFamily: 'Lato')),
],
),
const Spacer(),
SizedBox(
height: Get.height*0.10,
width: Get.width*0.10,
// decoration: const BoxDecoration(color: ColorConstants.primaryColor,borderRadius: BorderRadius.only(topRight: Radius.circular(10),bottomRight: Radius.circular(10))),
child: const Center(
child: Icon(Icons.arrow_forward_ios,color: Colors.black,size: 22),
),
)
],
),
),
),
),
),
],
),
);
}
}

View File

@@ -0,0 +1,59 @@
import 'package:flutter/material.dart';
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
import 'package:webview_flutter/webview_flutter.dart';
import '../../../Helper/Constants/Colorconstants.dart';
class Privacy extends StatefulWidget {
const Privacy({super.key});
@override
PrivacyState createState() => PrivacyState();
}
class PrivacyState extends State<Privacy> {
final Color primaryColor = const Color.fromRGBO(0, 157, 204, 1);
double webProgress = 0;
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: Text('Privacy Policy',style: TextStyle(color: ColorConstants.secondaryColor,fontFamily: 'Lato')),
leading: InkWell(child: const FaIcon(FontAwesomeIcons.angleLeft,color: Colors.white,size: 30),onTap: ()=>Navigator.pop(context)),
backgroundColor: ColorConstants.primaryColor,
),
body: Column(
children: [
webProgress < 1
? SizedBox(
height: 5,
child: LinearProgressIndicator(
value: webProgress,
color: ColorConstants.primaryColor,
backgroundColor: ColorConstants.secondaryColor,
),
)
: const SizedBox(),
// Expanded(
// child: WebView(
// backgroundColor: ColorConstants.secondaryColor,
// initialUrl: 'https://nearle.in/privacy.html',
// javascriptMode: JavascriptMode.unrestricted,
// onProgress: (progress) {
// setState(() {
// webProgress = progress / 100;
// });
// },
// ),
// ),
],
),
);
}
}