Commit 14cbf4be authored by Sai Srinivas's avatar Sai Srinivas
Browse files

17-11-2025 font styles and icons

parent 6f73c3f4
import java.util.Properties
import java.io.FileInputStream
plugins { plugins {
id("com.android.application") id("com.android.application")
id("kotlin-android") id("kotlin-android")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins. // The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
id("dev.flutter.flutter-gradle-plugin") id("dev.flutter.flutter-gradle-plugin")
} }
val localProperties = Properties()
val localPropertiesFile = rootProject.file("local.properties")
if (localPropertiesFile.exists()) {
FileInputStream(localPropertiesFile).use { stream ->
localProperties.load(stream)
}
}
val keystoreProperties = Properties()
val keystorePropertiesFile = rootProject.file("key.properties")
if (keystorePropertiesFile.exists()) {
keystoreProperties.load(FileInputStream(keystorePropertiesFile))
}
android { android {
namespace = "in.webgrid.genservices" namespace = "in.webgrid.genservices"
compileSdk = flutter.compileSdkVersion compileSdk = flutter.compileSdkVersion
...@@ -29,12 +43,19 @@ android { ...@@ -29,12 +43,19 @@ android {
versionCode = flutter.versionCode versionCode = flutter.versionCode
versionName = flutter.versionName versionName = flutter.versionName
} }
signingConfigs {
create("release") {
keyAlias = keystoreProperties["keyAlias"] as String
keyPassword = keystoreProperties["keyPassword"] as String
storeFile = keystoreProperties["storeFile"]?.let { file(it) }
storePassword = keystoreProperties["storePassword"] as String
}
}
buildTypes { buildTypes {
release { release {
// TODO: Add your own signing config for the release build. // TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works. // Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.getByName("debug") signingConfig = signingConfigs.getByName("release")
} }
} }
} }
......
...@@ -4,13 +4,13 @@ ...@@ -4,13 +4,13 @@
<path d="M8.60467 3.34546L5.30024 6.64993L3.99206 5.34168L3.08325 6.2504L5.30024 8.46739L9.5134 4.25425L8.60467 3.34546Z" fill="white"/> <path d="M8.60467 3.34546L5.30024 6.64993L3.99206 5.34168L3.08325 6.2504L5.30024 8.46739L9.5134 4.25425L8.60467 3.34546Z" fill="white"/>
<defs> <defs>
<linearGradient id="paint0_linear_139_2102" x1="6.05231" y1="10.7833" x2="6.05231" y2="-2.36507" gradientUnits="userSpaceOnUse"> <linearGradient id="paint0_linear_139_2102" x1="6.05231" y1="10.7833" x2="6.05231" y2="-2.36507" gradientUnits="userSpaceOnUse">
<stop stop-color="#008301"/> <stop stop-color="#A4A4A4"/>
<stop offset="0.6393" stop-color="#2BB02E"/> <stop offset="0.6393" stop-color="#2BB02E"/>
<stop offset="1" stop-color="#3FC442"/> <stop offset="1" stop-color="#3FC442"/>
</linearGradient> </linearGradient>
<linearGradient id="paint1_linear_139_2102" x1="8.12288" y1="12.5618" x2="0.783855" y2="-2.50266" gradientUnits="userSpaceOnUse"> <linearGradient id="paint1_linear_139_2102" x1="8.12288" y1="12.5618" x2="0.783855" y2="-2.50266" gradientUnits="userSpaceOnUse">
<stop offset="0.2486" stop-color="#777777"/> <stop offset="0.2486" stop-color="#A4A4A4"/>
<stop offset="0.9279" stop-color="#777777"/> <stop offset="0.9279" stop-color="#A4A4A4"/>
</linearGradient> </linearGradient>
</defs> </defs>
</svg> </svg>
File added
...@@ -34,9 +34,11 @@ class AllScheduleServices { ...@@ -34,9 +34,11 @@ class AllScheduleServices {
String? complaintType; String? complaintType;
String? comType; String? comType;
String? status; String? status;
String? amc;
String? warranty;
AllScheduleServices( AllScheduleServices(
{this.id, this.dueDate, this.complaintType, this.comType, this.status}); {this.id, this.dueDate, this.complaintType, this.comType, this.status, this.amc, this.warranty});
AllScheduleServices.fromJson(Map<String, dynamic> json) { AllScheduleServices.fromJson(Map<String, dynamic> json) {
id = json['id']; id = json['id'];
...@@ -44,6 +46,8 @@ class AllScheduleServices { ...@@ -44,6 +46,8 @@ class AllScheduleServices {
complaintType = json['complaint_type']; complaintType = json['complaint_type'];
comType = json['com_type']; comType = json['com_type'];
status = json['status']; status = json['status'];
amc = json['amc'];
warranty = json['warranty'];
} }
Map<String, dynamic> toJson() { Map<String, dynamic> toJson() {
...@@ -53,6 +57,8 @@ class AllScheduleServices { ...@@ -53,6 +57,8 @@ class AllScheduleServices {
data['complaint_type'] = this.complaintType; data['complaint_type'] = this.complaintType;
data['com_type'] = this.comType; data['com_type'] = this.comType;
data['status'] = this.status; data['status'] = this.status;
data['amc'] = this.amc;
data['warranty'] = this.warranty;
return data; return data;
} }
} }
...@@ -245,7 +245,7 @@ class _GeneratordetailsscreenState extends State<Generatordetailsscreen> { ...@@ -245,7 +245,7 @@ class _GeneratordetailsscreenState extends State<Generatordetailsscreen> {
}, },
stretchTriggerOffset: 300.0, stretchTriggerOffset: 300.0,
backgroundColor: Color(0xFF4076FF), backgroundColor: Color(0xFF4076FF),
expandedHeight: detailsProvider.showMoreDetails?screenHeight*0.62:screenHeight*0.211, expandedHeight: detailsProvider.showMoreDetails?screenHeight*0.62:screenHeight*0.26,
flexibleSpace: FlexibleSpaceBar( flexibleSpace: FlexibleSpaceBar(
stretchModes: const [ stretchModes: const [
StretchMode.zoomBackground, StretchMode.zoomBackground,
...@@ -295,7 +295,7 @@ class _GeneratordetailsscreenState extends State<Generatordetailsscreen> { ...@@ -295,7 +295,7 @@ class _GeneratordetailsscreenState extends State<Generatordetailsscreen> {
], ],
), ),
SizedBox(height: 10,),
Container( Container(
padding: const EdgeInsets.symmetric( padding: const EdgeInsets.symmetric(
horizontal: 10, horizontal: 10,
...@@ -304,7 +304,9 @@ class _GeneratordetailsscreenState extends State<Generatordetailsscreen> { ...@@ -304,7 +304,9 @@ class _GeneratordetailsscreenState extends State<Generatordetailsscreen> {
child: Column( child: Column(
children: [ children: [
// Product Info Row // Product Info Row
Row( Padding(
padding: const EdgeInsets.symmetric(vertical: 4.0),
child: Row(
children: [ children: [
Expanded( Expanded(
flex: 5, flex: 5,
...@@ -315,8 +317,9 @@ class _GeneratordetailsscreenState extends State<Generatordetailsscreen> { ...@@ -315,8 +317,9 @@ class _GeneratordetailsscreenState extends State<Generatordetailsscreen> {
text: TextSpan( text: TextSpan(
style: const TextStyle( style: const TextStyle(
fontFamily: 'Poppins', fontFamily: 'Poppins',
height: 2.5,
color: Color(0xFF48F3FF), color: Color(0xFF48F3FF),
fontSize: 12, fontSize: 13,
), ),
children: [ children: [
TextSpan(text: "#${data.hashId!}"), TextSpan(text: "#${data.hashId!}"),
...@@ -326,16 +329,33 @@ class _GeneratordetailsscreenState extends State<Generatordetailsscreen> { ...@@ -326,16 +329,33 @@ class _GeneratordetailsscreenState extends State<Generatordetailsscreen> {
], ],
), ),
), ),
Text( Padding(
padding: const EdgeInsets.symmetric(vertical: 3.0),
child: Text(
data.prodName!, data.prodName!,
maxLines: 2, maxLines: 2,
style: const TextStyle( style: const TextStyle(
height: 1.5,
color: Colors.white, color: Colors.white,
fontSize: 14, fontSize: 14,
), ),
), ),
),
if (data.amc != "0") ...[ if (data.amc != "0") ...[
Row( SizedBox(height: 5,),
Container(
padding: const EdgeInsets.symmetric(
horizontal: 8,
vertical: 4,
),
decoration: BoxDecoration(
gradient:
data.amc == "1"
? AppColors.greenStripGradient
: AppColors.fadeGradient,
borderRadius: BorderRadius.circular(12),
),
child: Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
SvgPicture.asset( SvgPicture.asset(
...@@ -343,30 +363,28 @@ class _GeneratordetailsscreenState extends State<Generatordetailsscreen> { ...@@ -343,30 +363,28 @@ class _GeneratordetailsscreenState extends State<Generatordetailsscreen> {
height: 15, height: 15,
color: color:
data.amc == "1" data.amc == "1"
? AppColors.greenICBg ? Color(0xFF00BC56)
: AppColors.subtitleText, : AppColors.subtitleText,
), ),
const SizedBox(width: 4), const SizedBox(width: 4),
Text( Text(
"AMC ", "AMC ",
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 12,
fontFamily: "PoppinsBold", fontFamily: "HemiHead",
fontStyle: FontStyle.italic, fontStyle: FontStyle.italic,
fontWeight: FontWeight.w700,
color: color:
data.amc == "1" data.amc == "1"
? AppColors.greenICBg ? Color(0xFF00BC56)
: AppColors.subtitleText, : AppColors.subtitleText,
), ),
), ),
Text( Text(
"Protected", "PROTECTED",
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 12,
fontFamily: "PoppinsBold", fontFamily: "HemiHead",
fontStyle: FontStyle.italic, fontStyle: FontStyle.italic,
fontWeight: FontWeight.w700,
color: color:
data.amc == "1" data.amc == "1"
? AppColors.normalText ? AppColors.normalText
...@@ -376,52 +394,63 @@ class _GeneratordetailsscreenState extends State<Generatordetailsscreen> { ...@@ -376,52 +394,63 @@ class _GeneratordetailsscreenState extends State<Generatordetailsscreen> {
const SizedBox(width: 4), const SizedBox(width: 4),
if (data.amc == "2") if (data.amc == "2")
const Icon( const Icon(
Icons.info_outline, Icons.error_outline,
color: Colors.red, color: Colors.red,
size: 15, size: 15,
), ),
], ],
), ),
),
], ],
if (data.warranty != "0") ...[ if (data.warranty != "0") ...[
SizedBox(height: 5,),
Row( Row(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
Row( Container(
padding: const EdgeInsets.symmetric(
horizontal: 8,
vertical: 4,
),
decoration: BoxDecoration(
gradient:
data.warranty == "1"
? AppColors.yellowStripGradient
: AppColors.fadeGradient,
borderRadius: BorderRadius.circular(12),
),
child: Row(
children: [ children: [
SvgPicture.asset( SvgPicture.asset(
"assets/svg/tick2_ic.svg",
height: 15,
color:
data.warranty == "1" data.warranty == "1"
? AppColors.warning ? "assets/svg/tick2_ic.svg":
: AppColors "assets/svg/tick3_ic.svg",
.subtitleText, height: 15,
), ),
const SizedBox(width: 6), const SizedBox(width: 6),
Text( Text(
"Warranty", "WARRANTY",
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 12,
fontFamily: "PoppinsBold", fontFamily: "HemiHead",
fontStyle: FontStyle.italic, fontStyle: FontStyle.italic,
fontWeight: FontWeight.w700,
color: color:
data.warranty == "1" data.warranty == "1"
? AppColors.normalText ? AppColors.normalText
: AppColors : AppColors
.subtitleText, .nearDarkText,
), ),
), ),
SizedBox(width: 6), SizedBox(width: 6),
if (data.warranty == "2") if (data.warranty == "2")
const Icon( const Icon(
Icons.info_outline, Icons.error_outline,
color: Colors.red, color: Colors.red,
size: 15, size: 15,
), ),
], ],
), ),
),
], ],
), ),
], ],
...@@ -437,6 +466,7 @@ class _GeneratordetailsscreenState extends State<Generatordetailsscreen> { ...@@ -437,6 +466,7 @@ class _GeneratordetailsscreenState extends State<Generatordetailsscreen> {
), ),
], ],
), ),
),
// Show More Details // Show More Details
if (detailsProvider.showMoreDetails) ...[ if (detailsProvider.showMoreDetails) ...[
...@@ -868,7 +898,7 @@ class _GeneratordetailsscreenState extends State<Generatordetailsscreen> { ...@@ -868,7 +898,7 @@ class _GeneratordetailsscreenState extends State<Generatordetailsscreen> {
const SizedBox(width: 4), const SizedBox(width: 4),
if (data.amc == "2") if (data.amc == "2")
const Icon( const Icon(
Icons.info_outline, Icons.error_outline,
color: Colors.red, color: Colors.red,
size: 15, size: 15,
), ),
...@@ -896,33 +926,30 @@ class _GeneratordetailsscreenState extends State<Generatordetailsscreen> { ...@@ -896,33 +926,30 @@ class _GeneratordetailsscreenState extends State<Generatordetailsscreen> {
Row( Row(
children: [ children: [
SvgPicture.asset( SvgPicture.asset(
"assets/svg/tick2_ic.svg",
height: 15,
color:
data.warranty == "1" data.warranty == "1"
? AppColors.warning ? "assets/svg/tick2_ic.svg":
: AppColors "assets/svg/tick3_ic.svg",
.subtitleText, height: 15,
), ),
const SizedBox(width: 6), const SizedBox(width: 6),
Text( Text(
"Warranty", "Warranty",
style: TextStyle( style: TextStyle(
fontSize: 15, fontSize: 12,
fontFamily: "PoppinsBold", fontFamily: "PoppinsBold",
fontStyle: FontStyle.italic, fontStyle: FontStyle.italic,
fontWeight: FontWeight.w700, fontWeight: FontWeight.w700,
color: color:
data.warranty == "1" data.warranty == "1"
? AppColors.normalText ? AppColors.normalText
: AppColors : Color(0xFF969696),
.subtitleText,
), ),
), ),
SizedBox(width: 6), SizedBox(width: 6),
if (data.warranty == "2") if (data.warranty == "2")
const Icon( const Icon(
Icons.info_outline,
Icons.error_outline,
color: Colors.red, color: Colors.red,
size: 15, size: 15,
), ),
...@@ -937,7 +964,7 @@ class _GeneratordetailsscreenState extends State<Generatordetailsscreen> { ...@@ -937,7 +964,7 @@ class _GeneratordetailsscreenState extends State<Generatordetailsscreen> {
), ),
Spacer(), Spacer(),
Container( Container(
padding: EdgeInsets.symmetric(vertical: 3, horizontal: 5), padding: EdgeInsets.symmetric(vertical: 5, horizontal: 8),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(8), borderRadius: BorderRadius.circular(8),
color: color:
...@@ -953,7 +980,7 @@ class _GeneratordetailsscreenState extends State<Generatordetailsscreen> { ...@@ -953,7 +980,7 @@ class _GeneratordetailsscreenState extends State<Generatordetailsscreen> {
color: color:
data.status == "Scheduled" data.status == "Scheduled"
? AppColors.success ? AppColors.success
: AppColors.error, : AppColors.nearDarkText,
), ),
), ),
), ),
......
...@@ -309,10 +309,12 @@ class _ScheduleListScreenState extends State<ScheduleListScreen> { ...@@ -309,10 +309,12 @@ class _ScheduleListScreenState extends State<ScheduleListScreen> {
), ),
), ),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Row( Row(
mainAxisAlignment: mainAxisAlignment:
MainAxisAlignment.start, MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
if (data[j].status == if (data[j].status ==
"Scheduled") ...[ "Scheduled") ...[
...@@ -323,6 +325,7 @@ class _ScheduleListScreenState extends State<ScheduleListScreen> { ...@@ -323,6 +325,7 @@ class _ScheduleListScreenState extends State<ScheduleListScreen> {
], ],
SizedBox( SizedBox(
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
if (data[j].status == if (data[j].status ==
"Completed") ...[ "Completed") ...[
...@@ -355,14 +358,129 @@ class _ScheduleListScreenState extends State<ScheduleListScreen> { ...@@ -355,14 +358,129 @@ class _ScheduleListScreenState extends State<ScheduleListScreen> {
), ),
), ),
), ),
if (data[j].amc != "0") ...[
SizedBox(height: 5,),
Container(
padding: const EdgeInsets.symmetric(
horizontal: 5,
vertical: 4,
),
decoration: BoxDecoration(
gradient:
data[j].amc == "1"
? AppColors.greenStripGradient
: AppColors.fadeGradient,
borderRadius: BorderRadius.circular(12),
),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
SvgPicture.asset(
"assets/svg/tick_ic.svg",
height: 15,
color:
data[j].amc == "1"
? AppColors.greenICBg
: AppColors.subtitleText,
),
const SizedBox(width: 4),
Text(
"AMC ",
style: TextStyle(
fontSize: 12,
fontFamily: "PoppinsBold",
fontStyle: FontStyle.italic,
fontWeight: FontWeight.w700,
color:
data[j].amc == "1"
? AppColors.greenICBg
: AppColors.subtitleText,
),
),
Text(
"Protected",
style: TextStyle(
fontSize: 12,
fontFamily: "PoppinsBold",
fontStyle: FontStyle.italic,
fontWeight: FontWeight.w700,
color:
data[j].amc == "1"
? AppColors.normalText
: AppColors.subtitleText,
),
),
const SizedBox(width: 4),
if (data[j].amc == "2")
const Icon(
Icons.info_outline,
color: Colors.red,
size: 15,
),
],
),
),
],
if (data[j].warranty != "0") ...[
SizedBox(height: 5,),
Container(
padding: const EdgeInsets.symmetric(
horizontal: 8,
vertical: 4,
),
decoration: BoxDecoration(
gradient:
data[j].warranty == "1"
? AppColors.yellowStripGradient
: AppColors.fadeGradient,
borderRadius: BorderRadius.circular(12),
),
child: Row(
mainAxisSize: MainAxisSize.min,
children: [
Row(
children: [
SvgPicture.asset(
data[j].warranty == "1"
? "assets/svg/tick2_ic.svg":
"assets/svg/tick3_ic.svg",
height: 15,
),
const SizedBox(width: 6),
Text(
"Warranty",
style: TextStyle(
fontSize: 12,
fontFamily: "PoppinsBold",
fontStyle: FontStyle.italic,
fontWeight: FontWeight.w700,
color:
data[j].warranty == "1"
? AppColors.normalText
: Color(0xFF969696),
),
),
SizedBox(width: 6),
if (data[j].warranty == "2")
const Icon(
Icons.info_outline,
color: Colors.red,
size: 15,
),
],
),
],
),
),
],
], ],
), ),
), ),
Spacer(), Spacer(),
Container( Container(
padding: EdgeInsets.symmetric( padding: EdgeInsets.symmetric(
vertical: 3, vertical: 5,
horizontal: 5, horizontal: 8,
), ),
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: borderRadius:
...@@ -382,7 +500,7 @@ class _ScheduleListScreenState extends State<ScheduleListScreen> { ...@@ -382,7 +500,7 @@ class _ScheduleListScreenState extends State<ScheduleListScreen> {
"Scheduled" "Scheduled"
? AppColors ? AppColors
.success .success
: AppColors.error, : AppColors.nearDarkText,
), ),
), ),
), ),
......
...@@ -71,7 +71,7 @@ class AppColors { ...@@ -71,7 +71,7 @@ class AppColors {
begin: Alignment.topLeft, begin: Alignment.topLeft,
end: Alignment.bottomRight, end: Alignment.bottomRight,
colors: [ colors: [
AppColors.subtitleText, Color(0xFFD7D7D7),
Color(0x00FFFFFF), Color(0x00FFFFFF),
], ],
); );
...@@ -85,21 +85,21 @@ class AppColors { ...@@ -85,21 +85,21 @@ class AppColors {
], ],
); );
static const LinearGradient yellowStripGradient = LinearGradient( static LinearGradient yellowStripGradient = LinearGradient(
begin: Alignment.topLeft, begin: Alignment.topLeft,
end: Alignment.bottomRight, end: Alignment.bottomRight,
colors: [ colors: [
Color(0xFFFFEF96), Color(0xFFFFEF96),
Color(0xFFFFFFFF), Color(0xFFFFEF96).withOpacity(0.0),
], ],
); );
static const LinearGradient greenStripGradient = LinearGradient( static LinearGradient greenStripGradient = LinearGradient(
begin: Alignment.topLeft, begin: Alignment.topLeft,
end: Alignment.bottomRight, end: Alignment.bottomRight,
colors: [ colors: [
Color(0xFFE5FFE1), Color(0xFFE5FFE1),
Color(0xFFFFFFFF), Color(0xFFE5FFE1).withOpacity(0.0),
], ],
); );
......
...@@ -115,6 +115,10 @@ flutter: ...@@ -115,6 +115,10 @@ flutter:
fonts: fonts:
- asset: fonts/Poppins-ExtraLight.ttf - asset: fonts/Poppins-ExtraLight.ttf
- family: HemiHead
fonts:
- asset: fonts/hemi_head.ttf
# #
# For details regarding fonts from package dependencies, # For details regarding fonts from package dependencies,
# see https://flutter.dev/to/font-from-package # see https://flutter.dev/to/font-from-package
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment