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 {
id("com.android.application")
id("kotlin-android")
// The Flutter Gradle Plugin must be applied after the Android and Kotlin Gradle plugins.
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 {
namespace = "in.webgrid.genservices"
compileSdk = flutter.compileSdkVersion
......@@ -29,12 +43,19 @@ android {
versionCode = flutter.versionCode
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 {
release {
// TODO: Add your own signing config for the release build.
// Signing with the debug keys for now, so `flutter run --release` works.
signingConfig = signingConfigs.getByName("debug")
signingConfig = signingConfigs.getByName("release")
}
}
}
......
......@@ -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"/>
<defs>
<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="1" stop-color="#3FC442"/>
</linearGradient>
<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.9279" stop-color="#777777"/>
<stop offset="0.2486" stop-color="#A4A4A4"/>
<stop offset="0.9279" stop-color="#A4A4A4"/>
</linearGradient>
</defs>
</svg>
File added
......@@ -34,9 +34,11 @@ class AllScheduleServices {
String? complaintType;
String? comType;
String? status;
String? amc;
String? warranty;
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) {
id = json['id'];
......@@ -44,6 +46,8 @@ class AllScheduleServices {
complaintType = json['complaint_type'];
comType = json['com_type'];
status = json['status'];
amc = json['amc'];
warranty = json['warranty'];
}
Map<String, dynamic> toJson() {
......@@ -53,6 +57,8 @@ class AllScheduleServices {
data['complaint_type'] = this.complaintType;
data['com_type'] = this.comType;
data['status'] = this.status;
data['amc'] = this.amc;
data['warranty'] = this.warranty;
return data;
}
}
This diff is collapsed.
......@@ -309,10 +309,12 @@ class _ScheduleListScreenState extends State<ScheduleListScreen> {
),
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
mainAxisAlignment:
MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (data[j].status ==
"Scheduled") ...[
......@@ -323,6 +325,7 @@ class _ScheduleListScreenState extends State<ScheduleListScreen> {
],
SizedBox(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
if (data[j].status ==
"Completed") ...[
......@@ -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(),
Container(
padding: EdgeInsets.symmetric(
vertical: 3,
horizontal: 5,
vertical: 5,
horizontal: 8,
),
decoration: BoxDecoration(
borderRadius:
......@@ -382,7 +500,7 @@ class _ScheduleListScreenState extends State<ScheduleListScreen> {
"Scheduled"
? AppColors
.success
: AppColors.error,
: AppColors.nearDarkText,
),
),
),
......
......@@ -71,7 +71,7 @@ class AppColors {
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [
AppColors.subtitleText,
Color(0xFFD7D7D7),
Color(0x00FFFFFF),
],
);
......@@ -85,21 +85,21 @@ class AppColors {
],
);
static const LinearGradient yellowStripGradient = LinearGradient(
static LinearGradient yellowStripGradient = LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [
Color(0xFFFFEF96),
Color(0xFFFFFFFF),
Color(0xFFFFEF96).withOpacity(0.0),
],
);
static const LinearGradient greenStripGradient = LinearGradient(
static LinearGradient greenStripGradient = LinearGradient(
begin: Alignment.topLeft,
end: Alignment.bottomRight,
colors: [
Color(0xFFE5FFE1),
Color(0xFFFFFFFF),
Color(0xFFE5FFE1).withOpacity(0.0),
],
);
......
......@@ -115,6 +115,10 @@ flutter:
fonts:
- asset: fonts/Poppins-ExtraLight.ttf
- family: HemiHead
fonts:
- asset: fonts/hemi_head.ttf
#
# For details regarding fonts from package dependencies,
# 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