diff --git a/images/appbgsuplier.png b/images/appbgsuplier1.png similarity index 100% rename from images/appbgsuplier.png rename to images/appbgsuplier1.png diff --git a/images/appbgsupplier.png b/images/appbgsupplier.png new file mode 100644 index 0000000..7f8444d Binary files /dev/null and b/images/appbgsupplier.png differ diff --git a/lib/conect_request_customers.dart b/lib/conect_request_customers.dart index df7b144..d2b1904 100644 --- a/lib/conect_request_customers.dart +++ b/lib/conect_request_customers.dart @@ -40,22 +40,23 @@ class _ConectedPendingCustomersState extends State wit final List topTabs = [ - Tab( + Tab( child: Column( - children: [Text('Conected Customers')], + children: [Text('Pending Customers')], ), ), Tab( child: Column( - children: [Text('Pending Customers')], + children: [Text('Conected Customers')], ), ), + ]; Future getConnectedSuppliersData() async { - isPendingDataLoading = true; + isConnectedDataLoading = true; try { var response = await AppSettings.getConnectedCustomers(); @@ -65,13 +66,13 @@ class _ConectedPendingCustomersState extends State wit ((jsonDecode(response)['data']) as List).map((dynamic model) { return ConnectedCustomersModel.fromJson(model); }).toList(); - isPendingDataLoading = false; + isConnectedDataLoading = false; }); } catch (e) { setState(() { - isPendingDataLoading = false; + isConnectedDataLoading = false; isSereverIssuePending = true; }); } @@ -426,23 +427,24 @@ class _ConectedPendingCustomersState extends State wit ),*/ Container( //color: Colors.lightBlueAccent, - child: isConnectedDataLoading?Center( + child: isPendingDataLoading?Center( child: CircularProgressIndicator( color: primaryColor, strokeWidth: 5.0, ), - ):connectedCustomers(), + ):pendingCustomers(), ), Container( //color: Colors.lightBlueAccent, - child: isPendingDataLoading?Center( + child: isConnectedDataLoading?Center( child: CircularProgressIndicator( color: primaryColor, strokeWidth: 5.0, ), - ):pendingCustomers(), + ):connectedCustomers(), ), + ]), ); } diff --git a/lib/dashboard.dart b/lib/dashboard.dart index 61bf476..bd94d40 100644 --- a/lib/dashboard.dart +++ b/lib/dashboard.dart @@ -4,11 +4,8 @@ import 'package:flutter_svg/flutter_svg.dart'; import 'package:watermanagement/adddeliveryboy.dart'; import 'package:watermanagement/addtankers.dart'; import 'package:watermanagement/conect_request_customers.dart'; -import 'package:watermanagement/conected_customers.dart'; import 'package:watermanagement/getdeliveryboydata.dart'; import 'package:watermanagement/login.dart'; -import 'package:watermanagement/place_picker.dart'; -import 'package:watermanagement/request_customers.dart'; import 'package:watermanagement/settings.dart'; import 'package:image_picker/image_picker.dart'; import 'package:watermanagement/tankersview.dart'; @@ -100,7 +97,7 @@ class _DashboardState extends State { setState(() { AppSettings.updatedImage = imageTemp; }); - uploadProfileApi(AppSettings.updatedImage); + uploadProfileApi(image.path); AppSettings.saveProfile(image.path); @@ -118,7 +115,7 @@ class _DashboardState extends State { AppSettings.updatedImage = imageTemp; }); - uploadProfileApi(AppSettings.updatedImage); + uploadProfileApi(image.path); AppSettings.saveProfile(image.path); } on PlatformException catch (e) { @@ -134,7 +131,7 @@ class _DashboardState extends State { child: Column( children: [ Container( - height: MediaQuery.of(context).size.height * .330, + height: MediaQuery.of(context).size.height * .250, width: double.infinity, decoration: BoxDecoration( borderRadius: BorderRadius.circular(0), @@ -142,7 +139,7 @@ class _DashboardState extends State { //color: Colors.red, child: FittedBox( child:Image( - image: const AssetImage('images/appbgsuplier.png'), + image: const AssetImage('images/appbgsupplier.png'), ), fit: BoxFit.fill,