123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- import 'package:flutter/material.dart';
- import 'driverFinishOrder.dart';
- import 'driverSelectOrder.dart';
- class driverPickup extends StatelessWidget {
-
-
- @override
- Widget build(BuildContext context) {
- return Scaffold(
- body: Padding(
- padding: const EdgeInsets.all(16.0),
- child: SingleChildScrollView(
- child:
- Column(
- mainAxisAlignment: MainAxisAlignment.center,
- children: <Widget>[
- const SizedBox(height: 20),
- Image.asset(
- 'assets/images/successImage.png',
- height: 140,
- width: 140,
- ),
- const SizedBox(height: 5),
- const Text(
- 'This order successfully created!',
- style:
- TextStyle(color: Colors.green, fontWeight: FontWeight.bold),
- ),
-
- const Card(
- margin: EdgeInsets.symmetric(vertical: 20.0),
- child: Padding(
- padding: EdgeInsets.all(16.0),
- child: Column(
- children: <Widget>[
- Row(
- mainAxisAlignment: MainAxisAlignment.spaceBetween,
- children: <Widget>[
- Text('07:40 PM'),
- Text('Monday'),
- ],
- ),
- Divider(),
- ListTile(
- title: Text('Name:'),
- subtitle: Text('Mu Shuang'),
- ),
- ListTile(
- title: Text('Route:'),
- subtitle: Text('Within UPM'),
- ),
- ListTile(
- title: Text('Start:'),
- subtitle: Text('FSKTM'),
- ),
- ListTile(
- title: Text('More than 4:'),
- subtitle: Text('Yes'),
- ),
- ListTile(
- title: Text('Tel:'),
- subtitle: Text('1129991444'),
- ),
- ListTile(
- title: Text('Price:'),
- subtitle: Text('RM 5'),
- ),
- ],
- ),
- ),
- ),
- ElevatedButton(
- style: ElevatedButton.styleFrom(
- backgroundColor: const Color.fromRGBO(119, 97, 255, 1.0) ,
- onPrimary: Colors.white,
- ),
- onPressed: () {
- Navigator.push(
- context,
- MaterialPageRoute(builder: (context) => driverFinishOrder()),
- );
- },
- child: const Text('Finish Ride'),
- ),
- const SizedBox(height: 10),
- ElevatedButton(
- style: ElevatedButton.styleFrom(
- backgroundColor: const Color.fromRGBO(255, 120, 116, 1) ,
- onPrimary: Colors.white,
- ),
- onPressed: () {
- Navigator.push(
- context,
- MaterialPageRoute(builder: (context) => driverSelectOrder()),
- );
- },
- child: const Text('Cancel'),
- ),
- ],
- ),
- )
- ),
- );
- }
- }
|