driverFinishOrder.dart 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. import 'package:flutter/material.dart';
  2. import 'driverSelectOrder.dart';
  3. class driverFinishOrder 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. Image.asset(
  15. 'assets/images/successImage.png',
  16. height: 140,
  17. width: 140,
  18. ),
  19. const Text(
  20. 'Order is finished',
  21. style: TextStyle(
  22. fontFamily: 'Poppins',
  23. fontSize: 17,
  24. fontWeight: FontWeight.bold,
  25. color: Colors.green, // Adjust color as needed
  26. ),
  27. ),
  28. const SizedBox(height: 10),
  29. const Text(
  30. 'You did a really good job!',
  31. style: TextStyle(
  32. fontFamily: 'Poppins',
  33. fontSize: 17,
  34. fontWeight: FontWeight.bold,
  35. color: Colors.green, // Adjust color as needed
  36. ),
  37. ),
  38. const SizedBox(height: 70),
  39. Align(
  40. alignment: Alignment.center,
  41. child:
  42. Container(
  43. width: 334,
  44. height: 65,
  45. decoration: BoxDecoration(
  46. borderRadius: BorderRadius.circular(10),
  47. color: const Color.fromRGBO(119, 97, 255, 1.0),
  48. ),
  49. child: TextButton(
  50. onPressed: () {
  51. // Handle Next button press
  52. Navigator.push(
  53. context,
  54. MaterialPageRoute(builder: (context) => driverSelectOrder()),
  55. );
  56. },
  57. child: const Text(
  58. 'Back to main page',
  59. style: TextStyle(
  60. fontFamily: 'Poppins',
  61. fontSize: 17,
  62. fontWeight: FontWeight.bold,
  63. color: Colors.white,
  64. ),
  65. ),
  66. ),
  67. ),
  68. ),
  69. const SizedBox(height: 10),
  70. ],
  71. ),
  72. ),
  73. );
  74. }
  75. }