source and service location changes

master
gitadmin 1 month ago
parent 252a4c0486
commit fdfdecf6da

@ -25,7 +25,7 @@ class _AvailabilityScreenState extends State<AvailabilityScreen> {
TimeOfDay? _weekdayEndTime; TimeOfDay? _weekdayEndTime;
TimeOfDay? _weekendStartTime; TimeOfDay? _weekendStartTime;
TimeOfDay? _weekendEndTime; TimeOfDay? _weekendEndTime;
int currentStep = 3; int currentStep = 4;
final List<String> _days = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]; final List<String> _days = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];

@ -385,18 +385,32 @@ class _FleetEmployeesState extends State<FleetEmployees> {
), ),
), ),
_LabeledField( _LabeledField(
label: "License Number *", label: "Driver License Number *",
child: DropdownButtonFormField<String>( child: DropdownButtonFormField<String>(
value: selectedLicense, value: selectedLicense,
dropdownColor: Colors.white,
items: licenseNumbers items: licenseNumbers
.map((t) => .map((t) =>
DropdownMenuItem(value: t, child: Text(t))) DropdownMenuItem(value: t, child: Text(t)))
.toList(), .toList(),
onChanged: (v) => setState(() => selectedLicense = v), onChanged: (v) => setState(() => selectedLicense = v),
validator: (v) => v == null ? "Select License" : null, validator: (v) => v == null || v.isEmpty
? "Driver License required"
: null,
isExpanded: true,
alignment: Alignment.centerLeft,
hint: Text(
"Select License Number",
style: fontTextStyle(
14, const Color(0xFF939495), FontWeight.w400),
),
icon: Image.asset('images/downarrow.png',
width: 16, height: 16),
decoration: const InputDecoration( decoration: const InputDecoration(
border: OutlineInputBorder(), border: OutlineInputBorder(),
isDense: true, isDense: false,
contentPadding: EdgeInsets.symmetric(
horizontal: 12, vertical: 14),
), ),
), ),
), ),
@ -404,16 +418,30 @@ class _FleetEmployeesState extends State<FleetEmployees> {
label: "Years of Experience *", label: "Years of Experience *",
child: DropdownButtonFormField<String>( child: DropdownButtonFormField<String>(
value: selectedExperience, value: selectedExperience,
dropdownColor: Colors.white,
items: yearOptions items: yearOptions
.map((t) => .map((t) =>
DropdownMenuItem(value: t, child: Text(t))) DropdownMenuItem(value: t, child: Text(t)))
.toList(), .toList(),
onChanged: (v) => setState(() => selectedExperience = v), onChanged: (v) =>
validator: (v) => setState(() => selectedExperience = v),
v == null ? "Select Experience" : null, validator: (v) => v == null || v.isEmpty
? "Experience is required"
: null,
isExpanded: true,
alignment: Alignment.centerLeft,
hint: Text(
"Years",
style: fontTextStyle(
14, const Color(0xFF939495), FontWeight.w400),
),
icon: Image.asset('images/downarrow.png',
width: 16, height: 16),
decoration: const InputDecoration( decoration: const InputDecoration(
border: OutlineInputBorder(), border: OutlineInputBorder(),
isDense: true, isDense: false,
contentPadding: EdgeInsets.symmetric(
horizontal: 12, vertical: 14),
), ),
), ),
), ),
@ -475,6 +503,7 @@ class _FleetEmployeesState extends State<FleetEmployees> {
label: "Status *", label: "Status *",
child: DropdownButtonFormField<String>( child: DropdownButtonFormField<String>(
value: _status, value: _status,
dropdownColor: Colors.white,
items: _statusOptions items: _statusOptions
.map((s) => DropdownMenuItem(value: s, child: Text(s))) .map((s) => DropdownMenuItem(value: s, child: Text(s)))
.toList(), .toList(),

@ -393,11 +393,19 @@ class _AddTankerFormState extends State<AddTankerForm> {
label: "Tanker Type *", label: "Tanker Type *",
child: DropdownButtonFormField<String>( child: DropdownButtonFormField<String>(
value: selectedType, value: selectedType,
dropdownColor: Colors.white, // 👈 sets popup background color
menuMaxHeight: 250, // 👈 optional: limits dropdown height
items: tankerTypes items: tankerTypes
.map((t) => DropdownMenuItem(value: t, child: Text(t))) .map((t) => DropdownMenuItem(
value: t,
child: Text(
t, style: fontTextStyle(14, Color(0xFF2D2E30), FontWeight.w500),
),
))
.toList(), .toList(),
onChanged: (v) => setState(() => selectedType = v), onChanged: (v) => setState(() => selectedType = v),
validator: (v) => v == null || v.isEmpty ? "Tanker Type is required" : null, validator: (v) =>
v == null || v.isEmpty ? "Tanker Type is required" : null,
isExpanded: true, isExpanded: true,
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
hint: Text( hint: Text(
@ -409,14 +417,18 @@ class _AddTankerFormState extends State<AddTankerForm> {
border: OutlineInputBorder(), border: OutlineInputBorder(),
isDense: false, isDense: false,
contentPadding: EdgeInsets.symmetric(horizontal: 12, vertical: 14), contentPadding: EdgeInsets.symmetric(horizontal: 12, vertical: 14),
filled: true, // 👈 fills the field background
fillColor: Colors.white, // 👈 ensures the closed dropdown is also white
), ),
), )
), ),
_LabeledField( _LabeledField(
label: "Type of water *", label: "Type of water *",
child: DropdownButtonFormField<String>( child: DropdownButtonFormField<String>(
value: selectedTypeOfWater, value: selectedTypeOfWater,
dropdownColor: Colors.white, // 👈 sets popup background color
menuMaxHeight: 250,
items: typeOfWater items: typeOfWater
.map((t) => DropdownMenuItem(value: t, child: Text(t))) .map((t) => DropdownMenuItem(value: t, child: Text(t)))
.toList(), .toList(),

@ -4,6 +4,7 @@ import 'package:google_maps_flutter/google_maps_flutter.dart';
import 'package:supplier_new/common/settings.dart'; import 'package:supplier_new/common/settings.dart';
import 'package:supplier_new/profile/service_locations_radius.dart'; import 'package:supplier_new/profile/service_locations_radius.dart';
import '../resources/source_loctaions_model.dart'; import '../resources/source_loctaions_model.dart';
import 'availability.dart';
void main() => runApp(const MaterialApp(home: ServiceLocation())); void main() => runApp(const MaterialApp(home: ServiceLocation()));
@ -17,7 +18,8 @@ class ServiceLocation extends StatefulWidget {
class _ServiceLocationState extends State<ServiceLocation> { class _ServiceLocationState extends State<ServiceLocation> {
final _formKey = GlobalKey<FormState>(); final _formKey = GlobalKey<FormState>();
String _deliveryFrom = 'business'; String _deliveryFrom = 'business';
final TextEditingController _radiusController = TextEditingController(text: "10"); final TextEditingController _radiusController =
TextEditingController(text: "10");
bool _customizeEachSource = false; bool _customizeEachSource = false;
bool isLoading = false; bool isLoading = false;
int currentStep = 3; int currentStep = 3;
@ -95,331 +97,358 @@ class _ServiceLocationState extends State<ServiceLocation> {
child: isLoading child: isLoading
? const Center(child: CircularProgressIndicator()) ? const Center(child: CircularProgressIndicator())
: Form( : Form(
key: _formKey, key: _formKey,
child: ListView( child: ListView(
padding: const EdgeInsets.fromLTRB(20, 10, 20, 24), padding: const EdgeInsets.fromLTRB(20, 10, 20, 24),
children: [ children: [
Text("Step $currentStep/5", Text("Step $currentStep/5",
style: fontTextStyle( style: fontTextStyle(
16, const Color(0xFFC3C4C4), FontWeight.w500)), 16, const Color(0xFFC3C4C4), FontWeight.w500)),
const SizedBox(height: 16), const SizedBox(height: 16),
Row( Row(
children: List.generate(5, (index) { children: List.generate(5, (index) {
final isFilled = index < currentStep; final isFilled = index < currentStep;
return Expanded( return Expanded(
child: Container( child: Container(
margin: const EdgeInsets.symmetric(horizontal: 2), margin: const EdgeInsets.symmetric(horizontal: 2),
height: 5, height: 5,
decoration: BoxDecoration( decoration: BoxDecoration(
color: isFilled color: isFilled
? const Color(0xFF0D3771) ? const Color(0xFF0D3771)
: const Color(0xFFE6E6E6), : const Color(0xFFE6E6E6),
borderRadius: BorderRadius.circular(2), borderRadius: BorderRadius.circular(2),
), ),
),
);
}),
), ),
);
}),
),
const SizedBox(height: 16), const SizedBox(height: 16),
Text("SERVICE LOCATIONS",
style: fontTextStyle(
20, const Color(0xFF515253), FontWeight.w600)),
const SizedBox(height: 16),
Align(
alignment: Alignment.centerLeft,
child: Image.asset('images/marker-pin.png',
width: 24, height: 24),
),
const SizedBox(height: 16),
Text(
"Define where you want to provide delivery services",
style: fontTextStyle(
14, const Color(0xFF939495), FontWeight.w500),
),
const SizedBox(height: 16),
RadioListTile<String>(
value: 'business',
groupValue: _deliveryFrom,
onChanged: (value) =>
setState(() => _deliveryFrom = value ?? 'business'),
title: Text("From Business Location",
style: fontTextStyle(
12, const Color(0xFF2D2E30), FontWeight.w400)),
dense: true,
contentPadding: EdgeInsets.zero,
visualDensity:
const VisualDensity(horizontal: 0, vertical: -3),
),
RadioListTile<String>(
value: 'source',
groupValue: _deliveryFrom,
onChanged: (value) =>
setState(() => _deliveryFrom = value ?? 'source'),
title: Text("From Source Locations",
style: fontTextStyle(
12, const Color(0xFF2D2E30), FontWeight.w400)),
dense: true,
contentPadding: EdgeInsets.zero,
visualDensity:
const VisualDensity(horizontal: 0, vertical: -3),
),
const SizedBox(height: 16),
// 🔹 BUSINESS LOCATION SECTION Text("SERVICE LOCATIONS",
Visibility(
visible: _deliveryFrom == 'business',
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text("Delivery Radius (in Kms) *",
style: fontTextStyle( style: fontTextStyle(
12, const Color(0xFF2F3036), FontWeight.w600)), 20, const Color(0xFF515253), FontWeight.w600)),
const SizedBox(height: 16), const SizedBox(height: 16),
TextFormField( Align(
controller: _radiusController, alignment: Alignment.centerLeft,
keyboardType: TextInputType.number, child: Image.asset('images/marker-pin.png',
decoration: InputDecoration( width: 24, height: 24),
hintText: "Enter radius in kms",
hintStyle: fontTextStyle(
14, const Color(0xFF939495), FontWeight.w400),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(8),
),
contentPadding: const EdgeInsets.symmetric(
horizontal: 12, vertical: 12),
),
), ),
const SizedBox(height: 16), const SizedBox(height: 16),
Container( Text(
width: double.infinity, "Define where you want to provide delivery services",
height: 220, // 👈 small map fits neatly style: fontTextStyle(
decoration: BoxDecoration( 14, const Color(0xFF939495), FontWeight.w500),
border: Border.all(color: const Color(0xFFE6E6E6)),
borderRadius: BorderRadius.circular(8),
),
child: ClipRRect(
borderRadius: BorderRadius.circular(8),
child: ServiceLocationsRadiusScreen(
initialPosition: const LatLng(17.381597, 78.481791),
radiusKmListenable: _radiusKmNotifier,
),
),
), ),
],
),
),
// 🔹 SOURCE LOCATIONS SECTION
Visibility(
visible: _deliveryFrom == 'source',
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text("Delivery Radius (in Kms) *",
style: fontTextStyle(
12, const Color(0xFF2F3036), FontWeight.w600)),
const SizedBox(height: 16), const SizedBox(height: 16),
TextFormField(
controller: _radiusController, RadioListTile<String>(
keyboardType: TextInputType.number, value: 'business',
decoration: InputDecoration( groupValue: _deliveryFrom,
hintText: "Enter radius in kms", onChanged: (value) =>
hintStyle: fontTextStyle( setState(() => _deliveryFrom = value ?? 'business'),
14, const Color(0xFF939495), FontWeight.w400), title: Text("From Business Location",
border: OutlineInputBorder( style: fontTextStyle(
borderRadius: BorderRadius.circular(8), 12, const Color(0xFF2D2E30), FontWeight.w400)),
), dense: true,
contentPadding: const EdgeInsets.symmetric( contentPadding: EdgeInsets.zero,
horizontal: 12, vertical: 12), visualDensity:
), const VisualDensity(horizontal: 0, vertical: -3),
),
RadioListTile<String>(
value: 'source',
groupValue: _deliveryFrom,
onChanged: (value) =>
setState(() => _deliveryFrom = value ?? 'source'),
title: Text("From Source Locations",
style: fontTextStyle(
12, const Color(0xFF2D2E30), FontWeight.w400)),
dense: true,
contentPadding: EdgeInsets.zero,
visualDensity:
const VisualDensity(horizontal: 0, vertical: -3),
), ),
const SizedBox(height: 16), const SizedBox(height: 16),
Row(
children: [ // 🔹 BUSINESS LOCATION SECTION
Checkbox( Visibility(
value: _customizeEachSource, visible: _deliveryFrom == 'business',
onChanged: (val) => setState( child: Column(
() => _customizeEachSource = val ?? false), crossAxisAlignment: CrossAxisAlignment.start,
materialTapTargetSize: children: [
MaterialTapTargetSize.shrinkWrap, Text("Delivery Radius (in Kms) *",
visualDensity: const VisualDensity( style: fontTextStyle(12, const Color(0xFF2F3036),
horizontal: -4, vertical: -4), FontWeight.w600)),
), const SizedBox(height: 16),
const SizedBox(width: 6), TextFormField(
Expanded( controller: _radiusController,
child: Text( keyboardType: TextInputType.number,
"Customize for each source location", decoration: InputDecoration(
style: fontTextStyle( hintText: "Enter radius in kms",
12, const Color(0xFF2D2E30), hintStyle: fontTextStyle(
FontWeight.w400), 14, const Color(0xFF939495), FontWeight.w400),
border: OutlineInputBorder(
borderRadius: BorderRadius.circular(8),
),
contentPadding: const EdgeInsets.symmetric(
horizontal: 12, vertical: 12),
),
), ),
), const SizedBox(height: 16),
], Container(
width: double.infinity,
height: 220, // 👈 small map fits neatly
decoration: BoxDecoration(
border:
Border.all(color: const Color(0xFFE6E6E6)),
borderRadius: BorderRadius.circular(8),
),
child: ClipRRect(
borderRadius: BorderRadius.circular(8),
child: ServiceLocationsRadiusScreen(
initialPosition:
const LatLng(17.381597, 78.481791),
radiusKmListenable: _radiusKmNotifier,
),
),
),
],
),
), ),
const SizedBox(height: 12),
// 🔹 Show source list if enabled // 🔹 SOURCE LOCATIONS SECTION
if (_customizeEachSource) Visibility(
Column( visible: _deliveryFrom == 'source',
child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: sourceLocationsList.isEmpty children: [
? [ Text("Delivery Radius (in Kms) *",
const Text( style: fontTextStyle(12, const Color(0xFF2F3036), FontWeight.w600)),
"No source locations available"), const SizedBox(height: 16),
] TextFormField(
: List.generate(sourceLocationsList.length, controller: _radiusController,
(index) { keyboardType: TextInputType.number,
final d = sourceLocationsList[index]; decoration: InputDecoration(
final isExpanded = hintText: "Enter radius in kms",
_expandedMap[index] ?? false; hintStyle: fontTextStyle(14, const Color(0xFF939495), FontWeight.w400),
border: OutlineInputBorder(
return Container( borderRadius: BorderRadius.circular(8),
margin: ),
const EdgeInsets.only(bottom: 8), contentPadding:
decoration: BoxDecoration( const EdgeInsets.symmetric(horizontal: 12, vertical: 12),
color: const Color(0xFFF7F7F7), ),
border: Border.all( ),
color: const SizedBox(height: 16),
const Color(0xFFE5E5E5)), Row(
borderRadius: children: [
BorderRadius.circular(12), Checkbox(
value: _customizeEachSource,
onChanged: (val) => setState(() {
_customizeEachSource = val ?? false;
}),
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
visualDensity:
const VisualDensity(horizontal: -4, vertical: -4),
),
const SizedBox(width: 6),
Expanded(
child: Text(
"Customize for each source location",
style: fontTextStyle(
12, const Color(0xFF2D2E30), FontWeight.w400),
), ),
child: Column( ),
children: [ ],
ListTile( ),
dense: true, const SizedBox(height: 12),
contentPadding:
EdgeInsets.zero, // 🔹 Show source list if enabled
minVerticalPadding: 0, if (_customizeEachSource)
visualDensity: Column(
const VisualDensity( crossAxisAlignment: CrossAxisAlignment.start,
vertical: -4, children: sourceLocationsList.isEmpty
horizontal: 0), ? [
title: Text( const Text("No source locations available"),
d.source_name ?? ]
'Unnamed location', : List.generate(sourceLocationsList.length, (index) {
style: fontTextStyle( final d = sourceLocationsList[index];
14, final isExpanded = _expandedMap[index] ?? false;
const Color(0xFF2D2E30),
FontWeight.w600), return Container(
), margin: const EdgeInsets.only(bottom: 8),
trailing: IconButton( padding:
icon: Image.asset( const EdgeInsets.symmetric(horizontal: 12, vertical: 0),
isExpanded decoration: BoxDecoration(
? 'images/arrow-up.png' color: const Color(0xFFF1F1F1),
: 'images/downarrow.png', border: Border.all(color: const Color(0xFFE5E5E5)),
width: 18, borderRadius: BorderRadius.circular(29),
height: 18, ),
), child: Column(
onPressed: () { children: [
setState(() { ListTile(
_expandedMap[index] = dense: true,
!isExpanded; contentPadding: EdgeInsets.zero,
}); minVerticalPadding: 0,
}, visualDensity:
), const VisualDensity(vertical: -4, horizontal: 0),
), title: Text(
if (isExpanded) d.source_name ?? 'Unnamed location',
Container(
margin:
const EdgeInsets.only(
left: 10,
right: 10,
bottom: 6),
padding:
const EdgeInsets.all(10),
decoration: BoxDecoration(
color: Colors.white,
borderRadius:
BorderRadius.circular(
8),
border: Border.all(
color:
const Color(
0xFFE5E5E5)),
),
child: Text(
"Address: ${d.address ?? 'N/A'}",
style: fontTextStyle( style: fontTextStyle(
12, 14, const Color(0xFF2D2E30), FontWeight.w600),
const Color( ),
0xFF646566), trailing: IconButton(
FontWeight.w400), icon: Image.asset(
isExpanded
? 'images/arrow-up.png'
: 'images/downarrow.png',
width: 18,
height: 18,
),
onPressed: () {
setState(() {
_expandedMap[index] = !isExpanded;
});
},
), ),
), ),
], if (isExpanded)
Column(
children: [
Container(
margin: const EdgeInsets.only(
left: 10, right: 10, bottom: 6),
padding: const EdgeInsets.all(10),
decoration: BoxDecoration(
color: Colors.white,
borderRadius: BorderRadius.circular(8),
border: Border.all(
color: const Color(0xFFE5E5E5)),
),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text("Delivery Radius (in Kms) *",
style: fontTextStyle(
12,
const Color(0xFF2F3036),
FontWeight.w600)),
const SizedBox(height: 16),
TextFormField(
controller: _radiusController,
keyboardType: TextInputType.number,
decoration: InputDecoration(
hintText: "Enter radius in kms",
hintStyle: fontTextStyle(
14,
const Color(0xFF939495),
FontWeight.w400),
border: OutlineInputBorder(
borderRadius:
BorderRadius.circular(8),
),
contentPadding:
const EdgeInsets.symmetric(
horizontal: 12, vertical: 12),
),
),
const SizedBox(height: 16),
Container(
width: double.infinity,
height: 180,
decoration: BoxDecoration(
borderRadius:
BorderRadius.circular(8),
border: Border.all(
color: const Color(0xFFE6E6E6)),
),
child: ClipRRect(
borderRadius:
BorderRadius.circular(8),
child: ServiceLocationsRadiusScreen(
initialPosition: LatLng(
d.latitude ?? 17.3850,
d.longitude ?? 78.4867,
),
radiusKmListenable:
_radiusKmNotifier,
),
),
),
],
),
),
],
),
],
),
);
}),
),
// 🔹 Hide main map when customizeEachSource = true
if (!_customizeEachSource) ...[
const SizedBox(height: 16),
Container(
width: double.infinity,
height: 250,
decoration: BoxDecoration(
border: Border.all(color: const Color(0xFFE6E6E6)),
borderRadius: BorderRadius.circular(8),
),
child: ClipRRect(
borderRadius: BorderRadius.circular(8),
child: ServiceLocationsRadiusScreen(
initialPosition: const LatLng(20.5937, 78.9629),
radiusKmListenable: _radiusKmNotifier,
), ),
); ),
}), ),
],
],
), ),
),
const SizedBox(height: 24),
Text("Types of Services",
style: fontTextStyle(
16, const Color(0xFF2D2E30), FontWeight.w600)),
const SizedBox(height: 12),
Text(
"Define what type of services you would wish to provide",
style: fontTextStyle(
14, const Color(0xFF939495), FontWeight.w500)),
const SizedBox(height: 16), const SizedBox(height: 16),
Container( ..._services
.map((service) => _serviceItem(service))
.toList(),
const SizedBox(height: 24),
SizedBox(
width: double.infinity, width: double.infinity,
height: 250, child: ElevatedButton(
decoration: BoxDecoration( style: ElevatedButton.styleFrom(
border: backgroundColor: const Color(0xFF8270DB),
Border.all(color: const Color(0xFFE6E6E6)), foregroundColor: Colors.white,
borderRadius: BorderRadius.circular(8), padding: const EdgeInsets.symmetric(vertical: 14),
), shape: RoundedRectangleBorder(
child: ClipRRect( borderRadius: BorderRadius.circular(24)),
borderRadius: BorderRadius.circular(8),
child: ServiceLocationsRadiusScreen(
initialPosition:
const LatLng(20.5937, 78.9629),
radiusKmListenable: _radiusKmNotifier,
), ),
onPressed: () {
Navigator.push(
context,
MaterialPageRoute(
builder: (_) => const AvailabilityScreen()));
},
child: Text("Save & Continue",
style: fontTextStyle(
14, Colors.white, FontWeight.w400)),
), ),
), ),
], ],
), ),
), ),
const SizedBox(height: 24),
Text("Types of Services",
style: fontTextStyle(
16, const Color(0xFF2D2E30), FontWeight.w600)),
const SizedBox(height: 12),
Text("Define what type of services you would wish to provide",
style: fontTextStyle(
14, const Color(0xFF939495), FontWeight.w500)),
const SizedBox(height: 16),
..._services.map((service) => _serviceItem(service)).toList(),
const SizedBox(height: 24),
SizedBox(
width: double.infinity,
child: ElevatedButton(
style: ElevatedButton.styleFrom(
backgroundColor: const Color(0xFF8270DB),
foregroundColor: Colors.white,
padding: const EdgeInsets.symmetric(vertical: 14),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(24)),
),
onPressed: () {
final selected = _selectedServices.isEmpty
? "No services selected"
: _selectedServices.join(", ");
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(
"Saved successfully for ${_deliveryFrom == 'business' ? 'Business Location' : 'Source Locations'}\nSelected: $selected"),
),
);
},
child: Text("Save & Continue",
style: fontTextStyle(
14, Colors.white, FontWeight.w400)),
),
),
],
),
),
), ),
); );
} }
@ -443,7 +472,8 @@ class _ServiceLocationState extends State<ServiceLocation> {
children: [ children: [
Icon( Icon(
selected ? Icons.check_box : Icons.check_box_outline_blank, selected ? Icons.check_box : Icons.check_box_outline_blank,
color: selected ? const Color(0xFF8270DB) : const Color(0xFF939495), color:
selected ? const Color(0xFF8270DB) : const Color(0xFF939495),
size: 20, size: 20,
), ),
const SizedBox(width: 8), const SizedBox(width: 8),

@ -313,6 +313,7 @@ class _SourceLocationState extends State<SourceLocation> {
label: "Water Type *", label: "Water Type *",
child: DropdownButtonFormField<String>( child: DropdownButtonFormField<String>(
value: selectedWaterType, value: selectedWaterType,
dropdownColor: Colors.white,
items: waterTypes items: waterTypes
.map((w) => DropdownMenuItem(value: w, child: Text(w))) .map((w) => DropdownMenuItem(value: w, child: Text(w)))
.toList(), .toList(),

@ -248,6 +248,7 @@ class _ResourcesDriverScreenState extends State<ResourcesDriverScreen> {
label: "Driver License Number *", label: "Driver License Number *",
child: DropdownButtonFormField<String>( child: DropdownButtonFormField<String>(
value: selectedLicense, value: selectedLicense,
dropdownColor: Colors.white,
items: licenseNumbers items: licenseNumbers
.map((t) => .map((t) =>
DropdownMenuItem(value: t, child: Text(t))) DropdownMenuItem(value: t, child: Text(t)))
@ -278,6 +279,7 @@ class _ResourcesDriverScreenState extends State<ResourcesDriverScreen> {
label: "Years of Experience *", label: "Years of Experience *",
child: DropdownButtonFormField<String>( child: DropdownButtonFormField<String>(
value: selectedExperience, value: selectedExperience,
dropdownColor: Colors.white,
items: yearOptions items: yearOptions
.map((t) => .map((t) =>
DropdownMenuItem(value: t, child: Text(t))) DropdownMenuItem(value: t, child: Text(t)))
@ -377,6 +379,7 @@ class _ResourcesDriverScreenState extends State<ResourcesDriverScreen> {
label: "Status *", label: "Status *",
child: DropdownButtonFormField<String>( child: DropdownButtonFormField<String>(
value: _status, value: _status,
dropdownColor: Colors.white,
items: _statusOptions items: _statusOptions
.map((s) => .map((s) =>
DropdownMenuItem(value: s, child: Text(s))) DropdownMenuItem(value: s, child: Text(s)))

@ -275,6 +275,7 @@ class _ResourcesFleetScreenState extends State<ResourcesFleetScreen> {
label: "Tanker Type *", label: "Tanker Type *",
child: DropdownButtonFormField<String>( child: DropdownButtonFormField<String>(
value: selectedType, value: selectedType,
dropdownColor: Colors.white,
items: tankerTypes items: tankerTypes
.map((t) => DropdownMenuItem(value: t, child: Text(t))) .map((t) => DropdownMenuItem(value: t, child: Text(t)))
.toList(), .toList(),
@ -299,6 +300,7 @@ class _ResourcesFleetScreenState extends State<ResourcesFleetScreen> {
label: "Type of water *", label: "Type of water *",
child: DropdownButtonFormField<String>( child: DropdownButtonFormField<String>(
value: selectedTypeOfWater, value: selectedTypeOfWater,
dropdownColor: Colors.white,
items: typeOfWater items: typeOfWater
.map((t) => DropdownMenuItem(value: t, child: Text(t))) .map((t) => DropdownMenuItem(value: t, child: Text(t)))
.toList(), .toList(),

@ -393,6 +393,7 @@ class _ResourcesSourceScreenState extends State<ResourcesSourceScreen> {
label: "Water Type *", label: "Water Type *",
child: DropdownButtonFormField<String>( child: DropdownButtonFormField<String>(
value: selectedWaterType, value: selectedWaterType,
dropdownColor: Colors.white,
items: waterTypes items: waterTypes
.map((w) => DropdownMenuItem(value: w, child: Text(w))) .map((w) => DropdownMenuItem(value: w, child: Text(w)))
.toList(), .toList(),

Loading…
Cancel
Save