Commit ecd8fcd1 authored by Sai Srinivas's avatar Sai Srinivas
Browse files

07-07-2025 By Sai Srinivas

Pubspec and Safe Area.
parent 67ab0f3e
import 'dart:io';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:generp/Utils/app_colors.dart'; import 'package:generp/Utils/app_colors.dart';
import 'package:generp/Utils/commonWidgets.dart'; import 'package:generp/Utils/commonWidgets.dart';
...@@ -35,12 +37,14 @@ class _TransactiondetailsState extends State<Transactiondetails> { ...@@ -35,12 +37,14 @@ class _TransactiondetailsState extends State<Transactiondetails> {
return Consumer<Paymentrequisitionpaymentslistprovider>( return Consumer<Paymentrequisitionpaymentslistprovider>(
builder: (context, provider, child) { builder: (context, provider, child) {
var details = provider.paymentDetails; var details = provider.paymentDetails;
return Scaffold( return SafeArea(
resizeToAvoidBottomInset: true, top: false,
appBar: appbar(context, "Details"), bottom: Platform.isIOS?false:true,
backgroundColor: AppColors.scaffold_bg_color, child: Scaffold(
body: SafeArea( resizeToAvoidBottomInset: true,
child: Container( appBar: appbar(context, "Details"),
backgroundColor: AppColors.scaffold_bg_color,
body: Container(
margin: EdgeInsets.symmetric(vertical: 10, horizontal: 10), margin: EdgeInsets.symmetric(vertical: 10, horizontal: 10),
child: SingleChildScrollView( child: SingleChildScrollView(
child: Container( child: Container(
......
import 'dart:io';
import 'package:dropdown_button2/dropdown_button2.dart'; import 'package:dropdown_button2/dropdown_button2.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
...@@ -26,12 +28,14 @@ Dropdowntheme ddtheme = Dropdowntheme(); ...@@ -26,12 +28,14 @@ Dropdowntheme ddtheme = Dropdowntheme();
var quotationDetails = provider.appointmentDetails; var quotationDetails = provider.appointmentDetails;
return WillPopScope( return WillPopScope(
onWillPop: () => onBackPressed(context), onWillPop: () => onBackPressed(context),
child: Scaffold( child: SafeArea(
resizeToAvoidBottomInset: true, top: false,
appBar: appbar(context, "Appointment Details"), bottom: Platform.isIOS?false:true,
backgroundColor: AppColors.scaffold_bg_color, child: Scaffold(
body: SafeArea( resizeToAvoidBottomInset: true,
child: SizedBox( appBar: appbar(context, "Appointment Details"),
backgroundColor: AppColors.scaffold_bg_color,
body: SizedBox(
child: SingleChildScrollView( child: SingleChildScrollView(
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
...@@ -119,40 +123,40 @@ Dropdowntheme ddtheme = Dropdowntheme(); ...@@ -119,40 +123,40 @@ Dropdowntheme ddtheme = Dropdowntheme();
), ),
), ),
), ),
), floatingActionButton: Align(
floatingActionButton: Align( alignment: Alignment.bottomCenter,
alignment: Alignment.bottomCenter, child: InkWell(
child: InkWell( onTap: () {
onTap: () { _showAddAppointmentSheet(context);
_showAddAppointmentSheet(context); },
}, child: Container(
child: Container( alignment: Alignment.bottomCenter,
alignment: Alignment.bottomCenter, height: 45,
height: 45, width: MediaQuery
width: MediaQuery .of(context)
.of(context) .size
.size .width,
.width, margin: EdgeInsets.symmetric(horizontal: 10),
margin: EdgeInsets.symmetric(horizontal: 10), decoration: BoxDecoration(
decoration: BoxDecoration( color: AppColors.app_blue,
color: AppColors.app_blue, borderRadius: BorderRadius.circular(14.0),
borderRadius: BorderRadius.circular(14.0), ),
), child: Center(
child: Center( child: Text(
child: Text( "Add Appointment",
"Add Appointment", textAlign: TextAlign.center,
textAlign: TextAlign.center, style: TextStyle(
style: TextStyle( color: Colors.white,
color: Colors.white, fontFamily: "JakartaMedium",
fontFamily: "JakartaMedium", ),
), ),
), ),
), ),
), ),
), ),
floatingActionButtonLocation:
FloatingActionButtonLocation.centerFloat,
), ),
floatingActionButtonLocation:
FloatingActionButtonLocation.centerFloat,
), ),
); );
}, },
......
import 'dart:io';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart'; import 'package:flutter_svg/svg.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
...@@ -21,12 +23,14 @@ class _FollowUpDetailsState extends State<FollowUpDetails> { ...@@ -21,12 +23,14 @@ class _FollowUpDetailsState extends State<FollowUpDetails> {
var followupDetails = provider.followupDetails; var followupDetails = provider.followupDetails;
return WillPopScope( return WillPopScope(
onWillPop: () => onBackPressed(context), onWillPop: () => onBackPressed(context),
child: Scaffold( child: SafeArea(
resizeToAvoidBottomInset: true, top: false,
appBar: appbar(context, "Followup Details"), bottom: Platform.isIOS?false:true,
backgroundColor: AppColors.scaffold_bg_color, child: Scaffold(
body: SafeArea( resizeToAvoidBottomInset: true,
child: SizedBox( appBar: appbar(context, "Followup Details"),
backgroundColor: AppColors.scaffold_bg_color,
body: SizedBox(
child: SingleChildScrollView( child: SingleChildScrollView(
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
...@@ -52,7 +56,7 @@ class _FollowUpDetailsState extends State<FollowUpDetails> { ...@@ -52,7 +56,7 @@ class _FollowUpDetailsState extends State<FollowUpDetails> {
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
...List.generate(4, (j) { ...List.generate(4, (j) {
final textheads = [ final textheads = [
"Employee Name", "Employee Name",
...@@ -107,8 +111,8 @@ class _FollowUpDetailsState extends State<FollowUpDetails> { ...@@ -107,8 +111,8 @@ class _FollowUpDetailsState extends State<FollowUpDetails> {
), ),
), ),
), ),
),
),
), ),
); );
}, },
......
import 'dart:io';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter_svg/svg.dart'; import 'package:flutter_svg/svg.dart';
import 'package:generp/Notifiers/crmProvider/crmLeadDetailsProvider.dart'; import 'package:generp/Notifiers/crmProvider/crmLeadDetailsProvider.dart';
...@@ -101,184 +103,188 @@ class _LeadDetailsByModeState extends State<LeadDetailsByMode> { ...@@ -101,184 +103,188 @@ class _LeadDetailsByModeState extends State<LeadDetailsByMode> {
} }
return WillPopScope( return WillPopScope(
child: Scaffold( child: SafeArea(
resizeToAvoidBottomInset: true, top: false,
appBar: appbar2( bottom: Platform.isIOS?false:true,
context, child: Scaffold(
"Lead Details (${widget.mode})", resizeToAvoidBottomInset: true,
provider.resetAll, appBar: appbar2(
InkResponse( context,
onTap: () { "Lead Details (${widget.mode})",
_showOptionsSheet(context); provider.resetAll,
}, InkResponse(
child: SvgPicture.asset("assets/svg/ic_more.svg", height: 30), onTap: () {
_showOptionsSheet(context);
},
child: SvgPicture.asset("assets/svg/ic_more.svg", height: 30),
),
), ),
), backgroundColor: AppColors.scaffold_bg_color,
backgroundColor: AppColors.scaffold_bg_color, body: Container(
body: Container( child: SingleChildScrollView(
child: SingleChildScrollView( child: Container(
child: Container( decoration: BoxDecoration(
decoration: BoxDecoration( color: Colors.white,
color: Colors.white, borderRadius: BorderRadius.circular(16),
borderRadius: BorderRadius.circular(16), ),
), margin: EdgeInsets.symmetric(vertical: 10, horizontal: 10),
margin: EdgeInsets.symmetric(vertical: 10, horizontal: 10), padding: EdgeInsets.symmetric(vertical: 10, horizontal: 10),
padding: EdgeInsets.symmetric(vertical: 10, horizontal: 10), child: Column(
child: Column( children: [
children: [ Row(
Row( children: [
children: [ Expanded(
Expanded( flex: 1,
flex: 1, child: Container(
child: Container( height: 50,
height: 50, width: 35,
width: 35, padding: EdgeInsets.all(8.0),
padding: EdgeInsets.all(8.0), decoration: BoxDecoration(
decoration: BoxDecoration( color: Color(0xFFE6F6FF),
color: Color(0xFFE6F6FF), borderRadius: BorderRadius.circular(8),
borderRadius: BorderRadius.circular(8), ),
), child: SvgPicture.asset(
child: SvgPicture.asset( "assets/svg/se_block_head.svg",
"assets/svg/se_block_head.svg", ),
), ),
), ),
), SizedBox(width: 10),
SizedBox(width: 10), Expanded(
Expanded( flex: 4,
flex: 4, child: SizedBox(
child: SizedBox( child: Column(
child: Column( crossAxisAlignment: CrossAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start, children: [
children: [ Text(
Text( leadDetails.name ?? "-",
leadDetails.name ?? "-", style: TextStyle(
style: TextStyle( fontFamily: "JakartaMedium",
fontFamily: "JakartaMedium", fontSize: 14,
fontSize: 14, color: AppColors.semi_black,
color: AppColors.semi_black, ),
), ),
), ],
], ),
), ),
), ),
), SizedBox(width: 10),
SizedBox(width: 10), if(provider.showEditButton=="1")
if(provider.showEditButton=="1") Expanded(
Expanded( flex: 1,
flex: 1, child: InkResponse(
child: InkResponse( onTap: () async {
onTap: () async { var res = await Navigator.push(
var res = await Navigator.push( context,
context, MaterialPageRoute(
MaterialPageRoute( builder:
builder: (context) => EditAccountDetails(
(context) => EditAccountDetails( leadID: leadDetails.id,
leadID: leadDetails.id, mode: widget.mode,
mode: widget.mode, accountID: leadDetails.accId,
accountID: leadDetails.accId, companyName:leadDetails.name,
companyName:leadDetails.name, ),
), ),
);
if(res==true){
provider.crmLeadDetailsAPIFunction(context, widget.leadId, widget.mode);
}
},
child: Container(
height: 32,
width: 30,
padding: EdgeInsets.all(8.0),
child: SvgPicture.asset(
"assets/svg/crm_contact_edit.svg",
), ),
);
if(res==true){
provider.crmLeadDetailsAPIFunction(context, widget.leadId, widget.mode);
}
},
child: Container(
height: 32,
width: 30,
padding: EdgeInsets.all(8.0),
child: SvgPicture.asset(
"assets/svg/crm_contact_edit.svg",
), ),
), ),
), ),
), ],
], ),
), Divider(thickness: 0.5, color: Color(0xFFD7D7D7)),
Divider(thickness: 0.5, color: Color(0xFFD7D7D7)), ...List.generate(totalSubHeadings.length, (j) {
...List.generate(totalSubHeadings.length, (j) { return Container(
return Container( padding: EdgeInsets.symmetric(vertical: 7),
padding: EdgeInsets.symmetric(vertical: 7), child: Row(
child: Row( crossAxisAlignment: CrossAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start, children: [
children: [ Expanded(
Expanded( child: Text(
child: Text( totalHeadings[j],
totalHeadings[j], style: TextStyle(
style: TextStyle( fontFamily: "JakartaMedium",
fontFamily: "JakartaMedium", fontSize: 14,
fontSize: 14, color: AppColors.semi_black,
color: AppColors.semi_black, ),
), ),
), ),
), Expanded(
Expanded( child: InkResponse(
child: InkResponse( child:
child: totalHeadings[j] == "Lead Age"
totalHeadings[j] == "Lead Age" ? Tooltip(
? Tooltip( triggerMode: TooltipTriggerMode.tap,
triggerMode: TooltipTriggerMode.tap,
message: message:
"${provider.leadDetails.createdDatetime}", "${provider.leadDetails.createdDatetime}",
child: Text( child: Text(
totalSubHeadings[j] == "" totalSubHeadings[j] == ""
? "-"
: totalSubHeadings[j],
style: TextStyle(
fontSize: 14,
color: Color(0xFF818181),
decorationColor:
AppColors.grey_semi,
decoration:
TextDecoration.underline,
),
),
)
: Text(
totalSubHeadings[j] == ""
? "-" ? "-"
: totalSubHeadings[j], : totalSubHeadings[j],
style: TextStyle( style: TextStyle(
fontSize: 14, fontSize: 14,
color: Color(0xFF818181), color: Color(0xFF818181),
decorationColor:
AppColors.grey_semi,
decoration:
TextDecoration.underline,
), ),
), ),
) ),
: Text(
totalSubHeadings[j] == ""
? "-"
: totalSubHeadings[j],
style: TextStyle(
fontSize: 14,
color: Color(0xFF818181),
),
),
), ),
), ],
], ),
), );
); }),
}), InkResponse(
InkResponse( onTap: () async {
onTap: () async { provider.showMoreDetails = !provider.showMoreDetails;
provider.showMoreDetails = !provider.showMoreDetails; },
}, child: Container(
child: Container( padding: EdgeInsets.symmetric(
padding: EdgeInsets.symmetric( vertical: 5,
vertical: 5, ),
), child: Row(
child: Row( crossAxisAlignment:
crossAxisAlignment: CrossAxisAlignment.center,
CrossAxisAlignment.center, mainAxisAlignment:
mainAxisAlignment: MainAxisAlignment.center,
MainAxisAlignment.center, children: [
children: [ Text(
Text( provider.showMoreDetails?"- Show Less": "+ More Details",
provider.showMoreDetails?"- Show Less": "+ More Details", style: TextStyle(
style: TextStyle( fontFamily: "JakartaMedium",
fontFamily: "JakartaMedium", fontSize: 14,
fontSize: 14, color: AppColors.app_blue,
color: AppColors.app_blue, ),
), ),
),
], ],
),
), ),
), ),
), ],
], ),
), ),
), ),
), ),
......
This diff is collapsed.
...@@ -46,7 +46,7 @@ class _NearbyOpenLeadsState extends State<NearbyOpenLeads> { ...@@ -46,7 +46,7 @@ class _NearbyOpenLeadsState extends State<NearbyOpenLeads> {
onWillPop: () => onBackPressed(context), onWillPop: () => onBackPressed(context),
child: Scaffold( child: Scaffold(
resizeToAvoidBottomInset: true, resizeToAvoidBottomInset: true,
appBar: appbar2(context, "Nearby Leads (Open)",provider.resetAll,SizedBox(width: 0,)), appBar: appbar2(context, "Nearby Leads (Open)",provider.resetAll,sendWidget),
backgroundColor: AppColors.scaffold_bg_color, backgroundColor: AppColors.scaffold_bg_color,
body: SafeArea( body: SafeArea(
child: Container( child: Container(
...@@ -140,67 +140,7 @@ class _NearbyOpenLeadsState extends State<NearbyOpenLeads> { ...@@ -140,67 +140,7 @@ class _NearbyOpenLeadsState extends State<NearbyOpenLeads> {
), ),
), ),
SizedBox(height: 15), SizedBox(height: 15),
Align(
alignment: Alignment.centerLeft,
child: Text(
'Status',
style: TextStyle(
fontSize: 18.0,
fontWeight: FontWeight.w500,
),
),
),
DropdownButtonHideUnderline(
child: Row(
children: [
Expanded(
child: DropdownButton2<String>(
isExpanded: true,
hint: const Row(
children: [
Expanded(
child: Text(
'Select Complaint Status',
style: TextStyle(
fontSize: 14,
),
overflow: TextOverflow.ellipsis,
),
),
],
),
items: <String>[
'Active',
'Inactive',
'Suspense',
].map(
(value) =>
DropdownMenuItem<String>(
value: value,
child: Text(
value ?? '',
style: const TextStyle(
fontSize: 14,
),
overflow: TextOverflow.ellipsis,
),
)).toList(),
value: provider.selectedItem,
onChanged: (String? newValue) {
setState(() {
provider.selectedItem = newValue!;
});
},
buttonStyleData: ddtheme.buttonStyleData,
iconStyleData: ddtheme.iconStyleData,
menuItemStyleData: ddtheme.menuItemStyleData,
dropdownStyleData: ddtheme.dropdownStyleData,
),
),
],
),
),
Row( Row(
children: [ children: [
Text( Text(
...@@ -222,7 +162,11 @@ class _NearbyOpenLeadsState extends State<NearbyOpenLeads> { ...@@ -222,7 +162,11 @@ class _NearbyOpenLeadsState extends State<NearbyOpenLeads> {
), ),
InteractiveSlider( InteractiveSlider(
min: 1.0, min: 1.0,
max: 100.0, max: 50.0,
padding: EdgeInsets.symmetric(horizontal: 0,
vertical: 0),
iconSize: 0.0,
enabled: true, enabled: true,
// backgroundColor: AppColors.app_blue, // backgroundColor: AppColors.app_blue,
...@@ -230,32 +174,32 @@ class _NearbyOpenLeadsState extends State<NearbyOpenLeads> { ...@@ -230,32 +174,32 @@ class _NearbyOpenLeadsState extends State<NearbyOpenLeads> {
segmentDividerColor:Color(0xFFF6F6F8), segmentDividerColor:Color(0xFFF6F6F8),
onChanged: (value) { onChanged: (value) {
provider.currentValue = value; provider.currentValue = value;
provider.debounce(() { // provider.debounce(() {
provider.LoadNearbyOpenLeadsAPI(context); // provider.LoadNearbyOpenLeadsAPI(context);
}, Duration(milliseconds: 200)); // }, Duration(milliseconds: 200));
},
),
Slider(
value: provider.currentValue,
max: 100,
divisions: 100,
label: provider.currentValue.toStringAsFixed(2),
inactiveColor: Color(0xFFD7D7D7),
activeColor: AppColors.cyan_blue,
onChanged: (value) {
provider.currentValue = value;
provider.debounce(() {
provider.LoadNearbyOpenLeadsAPI(context);
}, Duration(milliseconds: 200));
}, },
), ),
// Slider(
// value: provider.currentValue,
// max: 100,
// divisions: 100,
//
// label: provider.currentValue.toStringAsFixed(2),
// inactiveColor: Color(0xFFD7D7D7),
// activeColor: AppColors.cyan_blue,
// onChanged: (value) {
// provider.currentValue = value;
// provider.debounce(() {
// provider.LoadNearbyOpenLeadsAPI(context);
// }, Duration(milliseconds: 200));
// },
// ),
SizedBox(height: 30.0), SizedBox(height: 30.0),
Container( Container(
child: InkWell( child: InkWell(
onTap: () { onTap: () {
provider.debounce(() { provider.debounce(() {
provider.LoadNearbyOpenLeadsAPI(context); provider.LoadNearbyOpenLeadsAPI(context,provider.currentValue);
Navigator.pop(context); Navigator.pop(context);
}, Duration(milliseconds: 500)); }, Duration(milliseconds: 500));
}, },
......
import 'dart:io';
import 'package:dropdown_button2/dropdown_button2.dart'; import 'package:dropdown_button2/dropdown_button2.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
...@@ -166,170 +168,174 @@ class ProspectDetailsByModeState extends State<ProspectDetailsByMode> { ...@@ -166,170 +168,174 @@ class ProspectDetailsByModeState extends State<ProspectDetailsByMode> {
var leadDetails = provider.accountDetails; var leadDetails = provider.accountDetails;
return WillPopScope( return WillPopScope(
child: Scaffold( child: SafeArea(
resizeToAvoidBottomInset: true, top: false,
appBar: appbar2( bottom: Platform.isIOS?false:true,
context, child: Scaffold(
widget.pageTitleName, resizeToAvoidBottomInset: true,
provider.resetAll, appBar: appbar2(
InkResponse( context,
onTap: () { widget.pageTitleName,
_showOptionsSheet(context); provider.resetAll,
}, InkResponse(
child: SvgPicture.asset("assets/svg/ic_more.svg", height: 30), onTap: () {
_showOptionsSheet(context);
},
child: SvgPicture.asset("assets/svg/ic_more.svg", height: 30),
),
), ),
), backgroundColor: AppColors.scaffold_bg_color,
backgroundColor: AppColors.scaffold_bg_color, body: Container(
body: Container( child: SingleChildScrollView(
child: SingleChildScrollView( child: Container(
child: Container( decoration: BoxDecoration(
decoration: BoxDecoration( color: Colors.white,
color: Colors.white, borderRadius: BorderRadius.circular(16),
borderRadius: BorderRadius.circular(16), ),
), margin: EdgeInsets.symmetric(vertical: 10, horizontal: 10),
margin: EdgeInsets.symmetric(vertical: 10, horizontal: 10), padding: EdgeInsets.symmetric(vertical: 10, horizontal: 10),
padding: EdgeInsets.symmetric(vertical: 10, horizontal: 10), child: Column(
child: Column( children: [
children: [ Row(
Row( children: [
children: [ Expanded(
Expanded( flex: 1,
flex: 1, child: Container(
child: Container( height: 50,
height: 50, width: 35,
width: 35, padding: EdgeInsets.all(8.0),
padding: EdgeInsets.all(8.0), decoration: BoxDecoration(
decoration: BoxDecoration( color: Color(0xFFE6F6FF),
color: Color(0xFFE6F6FF), borderRadius: BorderRadius.circular(8),
borderRadius: BorderRadius.circular(8), ),
), child: SvgPicture.asset(
child: SvgPicture.asset( "assets/svg/se_block_head.svg",
"assets/svg/se_block_head.svg", ),
), ),
), ),
), SizedBox(width: 10),
SizedBox(width: 10), Expanded(
Expanded( flex: 4,
flex: 4, child: SizedBox(
child: SizedBox( child: Column(
child: Column( crossAxisAlignment: CrossAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start, children: [
children: [ Text(
Text( "${leadDetails.salutationName ?? "-"} ${leadDetails.name ?? "-"}",
"${leadDetails.salutationName ?? "-"} ${leadDetails.name ?? "-"}", style: TextStyle(
style: TextStyle( fontFamily: "JakartaMedium",
fontFamily: "JakartaMedium", fontSize: 14,
fontSize: 14, color: AppColors.semi_black,
color: AppColors.semi_black, ),
), ),
), ],
], ),
), ),
), ),
),
if(provider.showTransferAccount=="1")...[ if(provider.showTransferAccount=="1")...[
SizedBox(width: 5), SizedBox(width: 5),
Expanded( Expanded(
flex: 1, flex: 1,
child: InkResponse( child: InkResponse(
onTap: () async { onTap: () async {
_showTransferAccountSheet( _showTransferAccountSheet(
context, context,
provider.accountDetails.id!, provider.accountDetails.id!,
); );
}, },
child: Container( child: Container(
height: 32, height: 32,
width: 30, width: 30,
padding: EdgeInsets.all(8.0), padding: EdgeInsets.all(8.0),
child: SvgPicture.asset( child: SvgPicture.asset(
"assets/svg/transfer_ac.svg", "assets/svg/transfer_ac.svg",
),
), ),
), ),
), ),
), ],
], SizedBox(width: 5),
SizedBox(width: 5), Expanded(
Expanded( flex: 1,
flex: 1, child: InkResponse(
child: InkResponse( onTap: () async {
onTap: () async { editProvider.checkDropDownValues();
editProvider.checkDropDownValues(); prefill();
prefill(); await _showEditAccountSheet(
await _showEditAccountSheet( context,
context, provider.accountDetails.id!,
provider.accountDetails.id!, );
); },
}, child: Container(
child: Container( height: 32,
height: 32, width: 30,
width: 30, padding: EdgeInsets.all(8.0),
padding: EdgeInsets.all(8.0), child: SvgPicture.asset(
child: SvgPicture.asset( "assets/svg/crm_contact_edit.svg",
"assets/svg/crm_contact_edit.svg", ),
), ),
), ),
), ),
), ],
], ),
), Divider(thickness: 0.5, color: Color(0xFFD7D7D7)),
Divider(thickness: 0.5, color: Color(0xFFD7D7D7)), ...List.generate(provider.subHeadings.length, (j) {
...List.generate(provider.subHeadings.length, (j) { return Container(
return Container( padding: EdgeInsets.symmetric(vertical: 7),
padding: EdgeInsets.symmetric(vertical: 7), child: Row(
child: Row( crossAxisAlignment: CrossAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start, children: [
children: [ Expanded(
Expanded( child: Text(
child: Text( provider.Headings[j],
provider.Headings[j], style: TextStyle(
style: TextStyle( fontFamily: "JakartaMedium",
fontFamily: "JakartaMedium", fontSize: 14,
fontSize: 14, color: AppColors.semi_black,
color: AppColors.semi_black, ),
), ),
), ),
), Expanded(
Expanded( child: InkResponse(
child: InkResponse( child:
child: provider.Headings[j] == "Lead Age"
provider.Headings[j] == "Lead Age" ? Tooltip(
? Tooltip( triggerMode: TooltipTriggerMode.tap,
triggerMode: TooltipTriggerMode.tap,
message: message:
"${provider.accountDetails.createdDatetime}", "${provider.accountDetails.createdDatetime}",
child: Text( child: Text(
provider.subHeadings[j] == ""
? "-"
: provider.subHeadings[j],
style: TextStyle(
fontSize: 14,
color: Color(0xFF818181),
decorationColor:
AppColors.grey_semi,
decoration:
TextDecoration.underline,
),
),
)
: Text(
provider.subHeadings[j] == "" provider.subHeadings[j] == ""
? "-" ? "-"
: provider.subHeadings[j], : provider.subHeadings[j],
style: TextStyle( style: TextStyle(
fontSize: 14, fontSize: 14,
color: Color(0xFF818181), color: Color(0xFF818181),
decorationColor:
AppColors.grey_semi,
decoration:
TextDecoration.underline,
), ),
), ),
) ),
: Text(
provider.subHeadings[j] == ""
? "-"
: provider.subHeadings[j],
style: TextStyle(
fontSize: 14,
color: Color(0xFF818181),
),
),
), ),
), ],
], ),
), );
); }),
}), ],
], ),
), ),
), ),
), ),
......
import 'dart:io';
import 'package:dropdown_button2/dropdown_button2.dart'; import 'package:dropdown_button2/dropdown_button2.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:flutter/services.dart'; import 'package:flutter/services.dart';
...@@ -48,30 +50,31 @@ class _ProspectListByModeState extends State<ProspectListByMode> { ...@@ -48,30 +50,31 @@ class _ProspectListByModeState extends State<ProspectListByMode> {
onWillPop: () { onWillPop: () {
return onBackPressed(context); return onBackPressed(context);
}, },
child: Scaffold( child: SafeArea(
resizeToAvoidBottomInset: true, top: false,
appBar: appbar2( bottom: Platform.isIOS?false:true,
context, child: Scaffold(
widget.pageTitleName, resizeToAvoidBottomInset: true,
provider.resetForm, appBar: appbar2(
Row( context,
children: [ widget.pageTitleName,
InkResponse( provider.resetForm,
onTap: () async { Row(
_showFilterSheet(context); children: [
}, InkResponse(
child: SvgPicture.asset( onTap: () async {
"assets/svg/filter_ic.svg", _showFilterSheet(context);
height: 25, },
child: SvgPicture.asset(
"assets/svg/filter_ic.svg",
height: 25,
),
), ),
), ],
], ),
), ),
), backgroundColor: AppColors.scaffold_bg_color,
backgroundColor: AppColors.scaffold_bg_color, body: provider.isLoading
body: SafeArea(
child:
provider.isLoading
? Center( ? Center(
child: CircularProgressIndicator.adaptive( child: CircularProgressIndicator.adaptive(
valueColor: AlwaysStoppedAnimation<Color>( valueColor: AlwaysStoppedAnimation<Color>(
...@@ -259,7 +262,8 @@ class _ProspectListByModeState extends State<ProspectListByMode> { ...@@ -259,7 +262,8 @@ class _ProspectListByModeState extends State<ProspectListByMode> {
), ),
) )
: :
Emptywidget(context),) Emptywidget(context)
),
), ),
); );
}, },
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
import 'dart:io';
import 'package:dropdown_button2/dropdown_button2.dart'; import 'package:dropdown_button2/dropdown_button2.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:provider/provider.dart'; import 'package:provider/provider.dart';
...@@ -44,12 +46,14 @@ class _EditAccountDetailsState extends State<EditAccountDetails> { ...@@ -44,12 +46,14 @@ class _EditAccountDetailsState extends State<EditAccountDetails> {
builder: (context, provider, child) { builder: (context, provider, child) {
return WillPopScope( return WillPopScope(
onWillPop: () => onBackPressed(context), onWillPop: () => onBackPressed(context),
child: Scaffold( child: SafeArea(
resizeToAvoidBottomInset: true, top: false,
appBar: appbar(context, "Edit Account"), bottom: Platform.isIOS?false:true,
backgroundColor: AppColors.scaffold_bg_color, child: Scaffold(
body: SafeArea( resizeToAvoidBottomInset: true,
child: Container( appBar: appbar(context, "Edit Account"),
backgroundColor: AppColors.scaffold_bg_color,
body: Container(
padding: EdgeInsets.symmetric(horizontal: 10,vertical: 10), padding: EdgeInsets.symmetric(horizontal: 10,vertical: 10),
margin: EdgeInsets.symmetric(horizontal: 10,vertical: 5), margin: EdgeInsets.symmetric(horizontal: 10,vertical: 5),
decoration: BoxDecoration( decoration: BoxDecoration(
...@@ -201,8 +205,8 @@ class _EditAccountDetailsState extends State<EditAccountDetails> { ...@@ -201,8 +205,8 @@ class _EditAccountDetailsState extends State<EditAccountDetails> {
), ),
), ),
), ),
),
),
), ),
); );
}, },
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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