userMatchingDriver.dart 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. import 'package:flutter/material.dart';
  2. import 'package:putra_go/screens/passenger/userHome/userCustomizedOrder.dart';
  3. class userMatchingDriver 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. 'Looking for driver to accept..',
  16. style: TextStyle(
  17. fontFamily: 'Poppins',
  18. fontSize: 17,
  19. fontWeight: FontWeight.bold,
  20. color: Colors.black, // Adjust color as needed
  21. ),
  22. ),
  23. const Text(
  24. 'Do no worry,',
  25. style: TextStyle(
  26. fontFamily: 'Poppins',
  27. fontSize: 17,
  28. fontWeight: FontWeight.bold,
  29. color: Colors.black, // Adjust color as needed
  30. ),
  31. ),
  32. const Text(
  33. 'It needs some time~',
  34. style: TextStyle(
  35. fontFamily: 'Poppins',
  36. fontSize: 17,
  37. fontWeight: FontWeight.bold,
  38. color: Colors.black, // Adjust color as needed
  39. ),
  40. ),
  41. const SizedBox(height: 10),
  42. Image.asset(
  43. 'assets/images/matchingLogo.png',
  44. height: 170,
  45. width: 170,
  46. ),
  47. const SizedBox(height: 40),
  48. Align(
  49. alignment: Alignment.center,
  50. child:
  51. Container(
  52. width: 334,
  53. height: 65,
  54. decoration: BoxDecoration(
  55. borderRadius: BorderRadius.circular(10),
  56. color: const Color.fromRGBO(255, 120, 116, 1),
  57. ),
  58. child: TextButton(
  59. onPressed: () {
  60. Navigator.push(
  61. context,
  62. MaterialPageRoute(builder: (context) => userCustomizedOrder()),
  63. );
  64. },
  65. child: const Text(
  66. 'Cancle this order',
  67. style: TextStyle(
  68. fontFamily: 'Poppins',
  69. fontSize: 17,
  70. fontWeight: FontWeight.bold,
  71. color: Colors.white,
  72. ),
  73. ),
  74. ),
  75. ),
  76. ),
  77. const SizedBox(height: 10),
  78. ],
  79. ),
  80. ),
  81. );
  82. }
  83. }