123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- import 'package:flutter/material.dart';
- import 'driverSelectOrder.dart';
- class driverFinishOrder extends StatelessWidget {
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- backgroundColor: Colors.white,
- body: Padding(
- padding: const EdgeInsets.all(16.0),
- child: Column(
- mainAxisAlignment: MainAxisAlignment.center,
- crossAxisAlignment: CrossAxisAlignment.center,
- children: [
- Image.asset(
- 'assets/images/successImage.png',
- height: 140,
- width: 140,
- ),
- const Text(
- 'Order is finished',
- style: TextStyle(
- fontFamily: 'Poppins',
- fontSize: 17,
- fontWeight: FontWeight.bold,
- color: Colors.green, // Adjust color as needed
- ),
- ),
- const SizedBox(height: 10),
- const Text(
- 'You did a really good job!',
- style: TextStyle(
- fontFamily: 'Poppins',
- fontSize: 17,
- fontWeight: FontWeight.bold,
- color: Colors.green, // Adjust color as needed
- ),
- ),
- const SizedBox(height: 70),
- Align(
- alignment: Alignment.center,
- child:
- Container(
- width: 334,
- height: 65,
- decoration: BoxDecoration(
- borderRadius: BorderRadius.circular(10),
- color: const Color.fromRGBO(119, 97, 255, 1.0),
- ),
- child: TextButton(
- onPressed: () {
- // Handle Next button press
- Navigator.push(
- context,
- MaterialPageRoute(builder: (context) => driverSelectOrder()),
- );
- },
- child: const Text(
- 'Back to main page',
- style: TextStyle(
- fontFamily: 'Poppins',
- fontSize: 17,
- fontWeight: FontWeight.bold,
- color: Colors.white,
- ),
- ),
- ),
- ),
- ),
- const SizedBox(height: 10),
- ],
- ),
- ),
- );
- }
- }
|