cancelled product
This commit is contained in:
@@ -26,18 +26,15 @@ class _MyOrderScreenState extends State<MyOrderScreen> {
|
||||
}
|
||||
|
||||
String convertUtcToIst(String utcTime) {
|
||||
// Parse the UTC time string
|
||||
DateTime utcDateTime = DateTime.parse(utcTime).toUtc();
|
||||
|
||||
// Convert to IST (UTC +5:30)
|
||||
DateTime istDateTime =
|
||||
utcDateTime.add(const Duration(hours: 5, minutes: 30));
|
||||
|
||||
// Format the IST datetime with AM/PM
|
||||
String formattedDateTime =
|
||||
DateFormat("dd-MM-yyyy hh:mm a").format(istDateTime);
|
||||
|
||||
return formattedDateTime; // Example: 11-02-2025 10:44 AM
|
||||
return formattedDateTime;
|
||||
}
|
||||
|
||||
@override
|
||||
@@ -145,16 +142,16 @@ class _MyOrderScreenState extends State<MyOrderScreen> {
|
||||
],
|
||||
),
|
||||
Spacer(),
|
||||
Container(
|
||||
padding: EdgeInsets.symmetric(
|
||||
horizontal: 5, vertical: 5),
|
||||
decoration: BoxDecoration(
|
||||
color: Colors.green.shade100,
|
||||
borderRadius: BorderRadius.circular(10),
|
||||
),
|
||||
child: Text(order.orderStatus,
|
||||
style: TextStyle(color: Colors.green)),
|
||||
),
|
||||
// Container(
|
||||
// padding: EdgeInsets.symmetric(
|
||||
// horizontal: 5, vertical: 5),
|
||||
// decoration: BoxDecoration(
|
||||
// color: Colors.green.shade100,
|
||||
// borderRadius: BorderRadius.circular(10),
|
||||
// ),
|
||||
// child: Text(order.orderStatus,
|
||||
// style: TextStyle(color: Colors.green)),
|
||||
// ),
|
||||
],
|
||||
),
|
||||
SizedBox(height: 10),
|
||||
@@ -232,7 +229,9 @@ class _MyOrderScreenState extends State<MyOrderScreen> {
|
||||
);
|
||||
}
|
||||
|
||||
Future<void> _makePhoneCall(String number) async {
|
||||
Future<void> _makePhoneCall(String number) async
|
||||
{
|
||||
|
||||
try {
|
||||
final Uri phoneUri = Uri(scheme: 'tel', path: number);
|
||||
if (await canLaunchUrl(phoneUri)) {
|
||||
|
||||
Reference in New Issue
Block a user