Merge remote-tracking branch 'origin/master'

dev
suresh 2 years ago
commit 1559952dab

Before

Width:  |  Height:  |  Size: 412 KiB

After

Width:  |  Height:  |  Size: 412 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 362 KiB

@ -40,22 +40,23 @@ class _ConectedPendingCustomersState extends State<ConectedPendingCustomers> wit
final List<Tab> topTabs = <Tab>[ final List<Tab> topTabs = <Tab>[
Tab( Tab(
child: Column( child: Column(
children: [Text('Conected Customers')], children: [Text('Pending Customers')],
), ),
), ),
Tab( Tab(
child: Column( child: Column(
children: [Text('Pending Customers')], children: [Text('Conected Customers')],
), ),
), ),
]; ];
Future<void> getConnectedSuppliersData() async { Future<void> getConnectedSuppliersData() async {
isPendingDataLoading = true; isConnectedDataLoading = true;
try { try {
var response = await AppSettings.getConnectedCustomers(); var response = await AppSettings.getConnectedCustomers();
@ -65,13 +66,13 @@ class _ConectedPendingCustomersState extends State<ConectedPendingCustomers> wit
((jsonDecode(response)['data']) as List).map((dynamic model) { ((jsonDecode(response)['data']) as List).map((dynamic model) {
return ConnectedCustomersModel.fromJson(model); return ConnectedCustomersModel.fromJson(model);
}).toList(); }).toList();
isPendingDataLoading = false; isConnectedDataLoading = false;
}); });
} catch (e) { } catch (e) {
setState(() { setState(() {
isPendingDataLoading = false; isConnectedDataLoading = false;
isSereverIssuePending = true; isSereverIssuePending = true;
}); });
} }
@ -426,23 +427,24 @@ class _ConectedPendingCustomersState extends State<ConectedPendingCustomers> wit
),*/ ),*/
Container( Container(
//color: Colors.lightBlueAccent, //color: Colors.lightBlueAccent,
child: isConnectedDataLoading?Center( child: isPendingDataLoading?Center(
child: CircularProgressIndicator( child: CircularProgressIndicator(
color: primaryColor, color: primaryColor,
strokeWidth: 5.0, strokeWidth: 5.0,
), ),
):connectedCustomers(), ):pendingCustomers(),
), ),
Container( Container(
//color: Colors.lightBlueAccent, //color: Colors.lightBlueAccent,
child: isPendingDataLoading?Center( child: isConnectedDataLoading?Center(
child: CircularProgressIndicator( child: CircularProgressIndicator(
color: primaryColor, color: primaryColor,
strokeWidth: 5.0, strokeWidth: 5.0,
), ),
):pendingCustomers(), ):connectedCustomers(),
), ),
]), ]),
); );
} }

@ -4,11 +4,8 @@ import 'package:flutter_svg/flutter_svg.dart';
import 'package:watermanagement/adddeliveryboy.dart'; import 'package:watermanagement/adddeliveryboy.dart';
import 'package:watermanagement/addtankers.dart'; import 'package:watermanagement/addtankers.dart';
import 'package:watermanagement/conect_request_customers.dart'; import 'package:watermanagement/conect_request_customers.dart';
import 'package:watermanagement/conected_customers.dart';
import 'package:watermanagement/getdeliveryboydata.dart'; import 'package:watermanagement/getdeliveryboydata.dart';
import 'package:watermanagement/login.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:watermanagement/settings.dart';
import 'package:image_picker/image_picker.dart'; import 'package:image_picker/image_picker.dart';
import 'package:watermanagement/tankersview.dart'; import 'package:watermanagement/tankersview.dart';
@ -100,7 +97,7 @@ class _DashboardState extends State<Dashboard> {
setState(() { setState(() {
AppSettings.updatedImage = imageTemp; AppSettings.updatedImage = imageTemp;
}); });
uploadProfileApi(AppSettings.updatedImage); uploadProfileApi(image.path);
AppSettings.saveProfile(image.path); AppSettings.saveProfile(image.path);
@ -118,7 +115,7 @@ class _DashboardState extends State<Dashboard> {
AppSettings.updatedImage = imageTemp; AppSettings.updatedImage = imageTemp;
}); });
uploadProfileApi(AppSettings.updatedImage); uploadProfileApi(image.path);
AppSettings.saveProfile(image.path); AppSettings.saveProfile(image.path);
} on PlatformException catch (e) { } on PlatformException catch (e) {
@ -134,7 +131,7 @@ class _DashboardState extends State<Dashboard> {
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
Container( Container(
height: MediaQuery.of(context).size.height * .330, height: MediaQuery.of(context).size.height * .250,
width: double.infinity, width: double.infinity,
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(0), borderRadius: BorderRadius.circular(0),
@ -142,7 +139,7 @@ class _DashboardState extends State<Dashboard> {
//color: Colors.red, //color: Colors.red,
child: FittedBox( child: FittedBox(
child:Image( child:Image(
image: const AssetImage('images/appbgsuplier.png'), image: const AssetImage('images/appbgsupplier.png'),
), ),
fit: BoxFit.fill, fit: BoxFit.fill,

Loading…
Cancel
Save