12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- import 'package:flutter/material.dart';
- import '../driverMain.dart';
- class driverOrderCancelled 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: [
- const Text(
- 'Opps..',
- style: TextStyle(
- fontFamily: 'Poppins',
- fontSize: 20,
- fontWeight: FontWeight.bold,
- color: Colors.black, // Adjust color as needed
- ),
- ),
- const SizedBox(height: 10),
- const Text(
- 'Your customer cancelled this order',
- style: TextStyle(
- fontFamily: 'Poppins',
- fontSize: 20,
- fontWeight: FontWeight.bold,
- color: Colors.black, // 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) => driverMain()),
- );
- },
- child: const Text(
- 'Back to main page',
- style: TextStyle(
- fontFamily: 'Poppins',
- fontSize: 17,
- fontWeight: FontWeight.bold,
- color: Colors.white,
- ),
- ),
- ),
- ),
- ),
- const SizedBox(height: 10),
- ],
- ),
- ),
- );
- }
- }
|