From 0ca9c88914a0978692fb08785ced8f55a64948b3 Mon Sep 17 00:00:00 2001 From: suresh Date: Fri, 8 Sep 2023 16:40:20 +0530 Subject: [PATCH] updated the code --- lib/adddeliveryboy.dart | 6 +++--- lib/conect_request_customers.dart | 6 +++--- lib/settings.dart | 9 --------- 3 files changed, 6 insertions(+), 15 deletions(-) diff --git a/lib/adddeliveryboy.dart b/lib/adddeliveryboy.dart index d8ef8d3..6566942 100644 --- a/lib/adddeliveryboy.dart +++ b/lib/adddeliveryboy.dart @@ -370,9 +370,9 @@ class _deliverboyState extends State { AppSettings.longSuccessToast( "Deliverboy Created Successfully"); - deliverNameController.text = ''; - deliveryPhoneNumberController.text = ''; - deliveryAlternativePhoneNumberController.text = ''; + deliverNameController.text= ''; + deliveryPhoneNumberController.text= ''; + deliveryAlternativePhoneNumberController.text= ''; /* Navigator.pop(context); await Navigator.push( context, diff --git a/lib/conect_request_customers.dart b/lib/conect_request_customers.dart index d2b1904..a6dba14 100644 --- a/lib/conect_request_customers.dart +++ b/lib/conect_request_customers.dart @@ -1,7 +1,7 @@ import 'dart:convert'; import 'dart:io'; -import 'package:flutter/material.dart'; -import 'package:flutter_svg/flutter_svg.dart'; +import 'package:flutter_svg/flutter_svg.dart';import 'package:flutter/material.dart'; + import 'package:geolocator/geolocator.dart'; import 'package:google_maps_flutter/google_maps_flutter.dart'; import 'package:watermanagement/models/connected_customers_model.dart'; @@ -109,6 +109,7 @@ class _ConectedPendingCustomersState extends State wit getPendingSuppliersData(); super.initState(); } + Widget connectedCustomers(){ if(connectedCustomersList.length!=0){ @@ -260,7 +261,6 @@ class _ConectedPendingCustomersState extends State wit Widget pendingCustomers(){ if(pendingSuppliersList.length!=0){ - return Column( crossAxisAlignment: CrossAxisAlignment.end, children: [ diff --git a/lib/settings.dart b/lib/settings.dart index 9d000a8..1cbfefd 100644 --- a/lib/settings.dart +++ b/lib/settings.dart @@ -125,15 +125,6 @@ class AppSettings { static String rejectRequestUrl = host +"friend-request/reject"; static String profilePicUrl = host + 'supplier/profile-picture'; - - - - - - - - - static File? updatedImage; static String image=''; static var api = {