mirrored_repositories/flutter_taxi_booking_customer_app/lib/features/home
import 'package:flutter/material.dart';
import 'package:flutter_taxi_booking_customer_app/widgets/upcoming_ride_itmelayout_widget.dart';


class UpComingRideScreen extends StatefulWidget {
  @override
  _State createState() => _State();
}

class _State extends State<UpComingRideScreen> {
  List<String> rideTimes = [
    "Today, 9:30 AM",
    "Dec 6, 2019 8:25 AM",
    "Dec 5, 2019 8:25 AM"
  ];
  List<String> rideType = ["Vitt S", "Vitt Xtra", "Vitt S"];
  List<String> pickUpAdd = [
    "38, rue des Nations",
    "14, boulevard Amiral",
    "75, Rue Roussy"
  ];
  List<String> dropUpAdd = [
    "54, rue du Gue Jacquet",
    "75, Rue Roussy",
    "14, boulevard Amiral"
  ];
  List<String> amount = ["€ 43.10", "€ 33.60", "€ 12.14"];
  List<String> image = [
    "assets/mapiamge.jpeg",
    "assets/mapiamge.jpeg",
    "assets/mapiamge.jpeg"
  ];

  @override
  Widget build(BuildContext context) {
    return ListView.builder(
        shrinkWrap: true,
        physics: const NeverScrollableScrollPhysics(),
        itemCount: 3,
        itemBuilder: (BuildContext context, int index) {
          return UpcomingRideItmeLayoutWidget(
            rideTime: rideTimes[index],
            rideName: rideType[index],
            droopupAddress: dropUpAdd[index],
            pickupAddress: pickUpAdd[index],
            rideAmount: amount[index],
            rideImage: image[index],
          );
        });
  }
}
