Posts

Taxi Booking Project - AppDelegate.Swift

Image
Please, support my blog by clicking on our sponsors ad!   import UIKit import Flutter import GoogleMaps @UIApplicationMain @objc class AppDelegate: FlutterAppDelegate { override func application( _ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? ) -> Bool { GMSServices.provideAPIKey( "Your Key" ) GeneratedPluginRegistrant.register(with: self) return super.application(application, didFinishLaunchingWithOptions: launchOptions) } } Go to Main project

Taxi booking Project - AndroidManifest.xml

Image
Please, support my blog by clicking on our sponsors ad!   < manifest xmlns: android ="http://schemas.android.com/apk/res/android" > < application android :label ="myfirstproject" android :name ="${applicationName}" android :icon ="@mipmap/ic_launcher" > < activity android :name =".MainActivity" android :exported ="true" android :launchMode ="singleTop" android :theme ="@style/LaunchTheme" android :configChanges ="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode" android :hardwareAccelerated ="true" android :windowSoftInputMode ="adjustResize" > <!-- Specifies an Android theme to apply to this Activity as soon as the Android process

Taxi booking in flutter - pubspec.yaml

Image
Please, support my blog by clicking on our sponsors ad!   dependencies : font_awesome_flutter : ^10.6.0 provider : ^6.1.1 flutter : sdk : flutter # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons : ^1.0.2 google_maps_flutter : ^2.5.3 cached_network_image : ^3.3.1 Go to Main project

Taxi Booking in Flutter - vehicle.dart

Image
  import 'package:cached_network_image/cached_network_image.dart' ; import 'package:flutter/material.dart' ; import 'package:font_awesome_flutter/font_awesome_flutter.dart' ; import 'package:google_maps_flutter/google_maps_flutter.dart' ; import 'package:myfirstproject/Dashboard.dart' ; import 'package:myfirstproject/ViewModels/vehicleviewmodel.dart' ; import 'package:myfirstproject/cards/areaspot_card.dart' ; import 'package:myfirstproject/cards/location_card.dart' ; import 'package:myfirstproject/common/bottomnavigationbar.dart' ; import 'package:myfirstproject/common/constants.dart' ; import 'package:myfirstproject/ViewModels/locationviewmodel.dart' ; import 'package:provider/provider.dart' ; class Vehicle extends StatefulWidget { const Vehicle({Key? key}) : super (key: key); @override VehicleState createState() => VehicleState (); } class VehicleState extends State<Vehicle>

Jay Shree Ram

 

Create a Taxi Booking Project in flutter

Image
Introduction: In today's fast-paced world, the demand for efficient transportation solutions is ever-growing. Taxi booking apps have emerged as indispensable tools, offering users convenience and reliability in navigating urban landscapes. Leveraging the power of Flutter, a versatile and efficient cross-platform framework, developers can craft robust and feature-rich taxi booking apps that meet the needs of modern travelers. In this guide, we'll explore how to build a taxi booking app with Flutter, incorporating essential features like a dashboard, maps integration, online payment, and route selection, all while adhering to the MVVM architecture. Building the Taxi Booking App with Flutter Project Setup: Begin by creating a new Flutter project and setting up the necessary dependencies, including packages for state management and maps integration. Model Definition: Define the data model for the app, encompassing classes to represent rides, user information, payment details, and

Taxi Booking in Flutter - RideDetail dart

Image
 Create a file named as 'RideDetail.dart' in Lib Folder and paste following code: Please, support my blog by clicking on our sponsors ad! import 'package:flutter/material.dart'; import 'package:font_awesome_flutter/font_awesome_flutter.dart'; import 'package:myfirstproject/Dashboard.dart'; import 'package:myfirstproject/cards/areaspot_card.dart'; import 'package:myfirstproject/cards/location_card.dart'; import 'package:myfirstproject/common/bottomnavigationbar.dart'; import 'package:myfirstproject/common/constants.dart'; import 'package:myfirstproject/ViewModels/locationviewmodel.dart'; import 'package:provider/provider.dart'; class RideDetail extends StatefulWidget { const RideDetail({Key? key}) : super(key: key); @override RideDetailState createState() => RideDetailState(); } class RideDetailState extends State { final LocationViewModel locationViewModel = LocationViewModel();