fixed issue api related
This commit is contained in:
@@ -35,7 +35,7 @@ class _OrderDetailsScreenState extends State<OrderDetailsScreen> {
|
||||
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<OrderDetailsScreen> {
|
||||
SizedBox(width: 5),
|
||||
AnimatedContainer(
|
||||
duration: Duration(milliseconds: 500),
|
||||
width: 20,
|
||||
width: 15,
|
||||
height: 3,
|
||||
color: isCompleted ? Colors.green : Colors.grey,
|
||||
),
|
||||
|
||||
@@ -142,6 +142,7 @@ class _MyOrderScreenState extends State<MyOrderScreen> {
|
||||
],
|
||||
),
|
||||
Spacer(),
|
||||
|
||||
// Container(
|
||||
// padding: EdgeInsets.symmetric(
|
||||
// horizontal: 5, vertical: 5),
|
||||
@@ -166,27 +167,27 @@ class _MyOrderScreenState extends State<MyOrderScreen> {
|
||||
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<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