From 5ed75e2aef1645fc37f7d920890960d1aef13ac4 Mon Sep 17 00:00:00 2001 From: bestonemitRam Date: Sat, 1 Mar 2025 18:47:26 +0530 Subject: [PATCH] fixed issue api related --- .DS_Store | Bin 10244 -> 10244 bytes .dart_tool/package_config.json | 2 +- .flutter-plugins-dependencies | 2 +- lib/src/ui/myOrder/OrderDetailsScreen.dart | 4 +- lib/src/ui/myOrder/my_order.dart | 47 ++++++++++----------- 5 files changed, 27 insertions(+), 28 deletions(-) diff --git a/.DS_Store b/.DS_Store index c34570ad11f58355199a7257244d05566fe14663..ebb2c2f6180d8dcd428e41eef766cef730e81111 100644 GIT binary patch delta 169 zcmZn(XbIS0D8S6fuxxUIfYf9^0WP)^Q?)o;cTA2GP(v`KbP6&IgOl@f3m8CvF#tre zFz7L)Gh{N9YC|(~Qym3MbA!#@!m*5uRhwUmNDBi1!VfQC delta 169 zcmZn(XbIS0D8S6{$7FJXfYf9^0WP*@oOWLSw@r={P(v`KbP6&IgOl@f3m8Cv(EvoU zFz7L)Gh{N9L^qjnwyyDC|FpUZ0;70Wn|RZ{8B_(7yu#cG7 { return Scaffold( appBar: AppBar(title: Text('Order Details')), body: Padding( - padding: const EdgeInsets.all(8.0), + padding: const EdgeInsets.all(2.0), child: Column( crossAxisAlignment: CrossAxisAlignment.start, children: [ @@ -151,7 +151,7 @@ class _OrderDetailsScreenState extends State { SizedBox(width: 5), AnimatedContainer( duration: Duration(milliseconds: 500), - width: 20, + width: 15, height: 3, color: isCompleted ? Colors.green : Colors.grey, ), diff --git a/lib/src/ui/myOrder/my_order.dart b/lib/src/ui/myOrder/my_order.dart index 0e7c54d..d931e01 100644 --- a/lib/src/ui/myOrder/my_order.dart +++ b/lib/src/ui/myOrder/my_order.dart @@ -142,6 +142,7 @@ class _MyOrderScreenState extends State { ], ), Spacer(), + // Container( // padding: EdgeInsets.symmetric( // horizontal: 5, vertical: 5), @@ -166,27 +167,27 @@ class _MyOrderScreenState extends State { TextStyle(fontWeight: FontWeight.bold)), Row( children: [ - ElevatedButton( - onPressed: () {}, - style: ElevatedButton.styleFrom( - backgroundColor: Colors.white, - side: BorderSide(color: Colors.green), - shape: RoundedRectangleBorder( - borderRadius: - BorderRadius.circular(10), - ), - ), - child: Row( - children: [ - Icon(Icons.message, - color: Colors.green), - SizedBox(width: 5), - Text('Message', - style: TextStyle( - color: Colors.green)), - ], - ), - ), + // ElevatedButton( + // onPressed: () {}, + // style: ElevatedButton.styleFrom( + // backgroundColor: Colors.white, + // side: BorderSide(color: Colors.green), + // shape: RoundedRectangleBorder( + // borderRadius: + // BorderRadius.circular(10), + // ), + // ), + // child: Row( + // children: [ + // // Icon(Icons.message, + // // color: Colors.green), + // // SizedBox(width: 5), + // // Text('Message', + // // style: TextStyle( + // // color: Colors.green)), + // ], + // ), + // ), SizedBox(width: 10), ElevatedButton( onPressed: () { @@ -229,9 +230,7 @@ class _MyOrderScreenState extends State { ); } - Future _makePhoneCall(String number) async - { - + Future _makePhoneCall(String number) async { try { final Uri phoneUri = Uri(scheme: 'tel', path: number); if (await canLaunchUrl(phoneUri)) {