fixed issue api related

This commit is contained in:
2025-03-01 18:47:26 +05:30
parent 0904abf774
commit 5ed75e2aef
5 changed files with 27 additions and 28 deletions

BIN
.DS_Store vendored

Binary file not shown.

View File

@@ -998,7 +998,7 @@
"languageVersion": "3.4" "languageVersion": "3.4"
} }
], ],
"generated": "2025-02-27T10:55:41.147060Z", "generated": "2025-03-01T13:17:00.413477Z",
"generator": "pub", "generator": "pub",
"generatorVersion": "3.4.4", "generatorVersion": "3.4.4",
"flutterRoot": "file:///Users/rajeevsingh/Documents/allSoftwares/flutter", "flutterRoot": "file:///Users/rajeevsingh/Documents/allSoftwares/flutter",

File diff suppressed because one or more lines are too long

View File

@@ -35,7 +35,7 @@ class _OrderDetailsScreenState extends State<OrderDetailsScreen> {
return Scaffold( return Scaffold(
appBar: AppBar(title: Text('Order Details')), appBar: AppBar(title: Text('Order Details')),
body: Padding( body: Padding(
padding: const EdgeInsets.all(8.0), padding: const EdgeInsets.all(2.0),
child: Column( child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
@@ -151,7 +151,7 @@ class _OrderDetailsScreenState extends State<OrderDetailsScreen> {
SizedBox(width: 5), SizedBox(width: 5),
AnimatedContainer( AnimatedContainer(
duration: Duration(milliseconds: 500), duration: Duration(milliseconds: 500),
width: 20, width: 15,
height: 3, height: 3,
color: isCompleted ? Colors.green : Colors.grey, color: isCompleted ? Colors.green : Colors.grey,
), ),

View File

@@ -142,6 +142,7 @@ class _MyOrderScreenState extends State<MyOrderScreen> {
], ],
), ),
Spacer(), Spacer(),
// Container( // Container(
// padding: EdgeInsets.symmetric( // padding: EdgeInsets.symmetric(
// horizontal: 5, vertical: 5), // horizontal: 5, vertical: 5),
@@ -166,27 +167,27 @@ class _MyOrderScreenState extends State<MyOrderScreen> {
TextStyle(fontWeight: FontWeight.bold)), TextStyle(fontWeight: FontWeight.bold)),
Row( Row(
children: [ children: [
ElevatedButton( // ElevatedButton(
onPressed: () {}, // onPressed: () {},
style: ElevatedButton.styleFrom( // style: ElevatedButton.styleFrom(
backgroundColor: Colors.white, // backgroundColor: Colors.white,
side: BorderSide(color: Colors.green), // side: BorderSide(color: Colors.green),
shape: RoundedRectangleBorder( // shape: RoundedRectangleBorder(
borderRadius: // borderRadius:
BorderRadius.circular(10), // BorderRadius.circular(10),
), // ),
), // ),
child: Row( // child: Row(
children: [ // children: [
Icon(Icons.message, // // Icon(Icons.message,
color: Colors.green), // // color: Colors.green),
SizedBox(width: 5), // // SizedBox(width: 5),
Text('Message', // // Text('Message',
style: TextStyle( // // style: TextStyle(
color: Colors.green)), // // color: Colors.green)),
], // ],
), // ),
), // ),
SizedBox(width: 10), SizedBox(width: 10),
ElevatedButton( ElevatedButton(
onPressed: () { onPressed: () {
@@ -229,9 +230,7 @@ class _MyOrderScreenState extends State<MyOrderScreen> {
); );
} }
Future<void> _makePhoneCall(String number) async Future<void> _makePhoneCall(String number) async {
{
try { try {
final Uri phoneUri = Uri(scheme: 'tel', path: number); final Uri phoneUri = Uri(scheme: 'tel', path: number);
if (await canLaunchUrl(phoneUri)) { if (await canLaunchUrl(phoneUri)) {