|
|
@ -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,
|
|
|
|