driverOrderCancelled.dart 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. import 'package:flutter/material.dart';
  2. import '../driverMain.dart';
  3. class driverOrderCancelled extends StatelessWidget {
  4. @override
  5. Widget build(BuildContext context) {
  6. return Scaffold(
  7. backgroundColor: Colors.white,
  8. body: Padding(
  9. padding: const EdgeInsets.all(16.0),
  10. child: Column(
  11. mainAxisAlignment: MainAxisAlignment.center,
  12. crossAxisAlignment: CrossAxisAlignment.center,
  13. children: [
  14. const Text(
  15. 'Opps..',
  16. style: TextStyle(
  17. fontFamily: 'Poppins',
  18. fontSize: 20,
  19. fontWeight: FontWeight.bold,
  20. color: Colors.black, // Adjust color as needed
  21. ),
  22. ),
  23. const SizedBox(height: 10),
  24. const Text(
  25. 'Your customer cancelled this order',
  26. style: TextStyle(
  27. fontFamily: 'Poppins',
  28. fontSize: 20,
  29. fontWeight: FontWeight.bold,
  30. color: Colors.black, // Adjust color as needed
  31. ),
  32. ),
  33. const SizedBox(height: 70),
  34. Align(
  35. alignment: Alignment.center,
  36. child:
  37. Container(
  38. width: 334,
  39. height: 65,
  40. decoration: BoxDecoration(
  41. borderRadius: BorderRadius.circular(10),
  42. color: const Color.fromRGBO(119, 97, 255, 1.0),
  43. ),
  44. child: TextButton(
  45. onPressed: () {
  46. // Handle Next button press
  47. Navigator.push(
  48. context,
  49. MaterialPageRoute(builder: (context) => driverMain()),
  50. );
  51. },
  52. child: const Text(
  53. 'Back to main page',
  54. style: TextStyle(
  55. fontFamily: 'Poppins',
  56. fontSize: 17,
  57. fontWeight: FontWeight.bold,
  58. color: Colors.white,
  59. ),
  60. ),
  61. ),
  62. ),
  63. ),
  64. const SizedBox(height: 10),
  65. ],
  66. ),
  67. ),
  68. );
  69. }
  70. }