Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed the node_modules #11

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
server/node_modules

# Miscellaneous
*.class
*.log
Expand Down
34 changes: 20 additions & 14 deletions lib/pages/driver_dashboard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -25,28 +25,34 @@ class MapMarker {
}

// Globals
var dLat,dLong;


class AppConstants {
var dLat, dLong;

static void readDriver() {
var driversRef = FirebaseFirestore.instance.collection("drivers");
var response = driversRef.get();
var responseArr = [];
response.then((value) => {
value.docs.forEach((result) {
dLat=result.data()['location'][0];
dLong=result.data()['location'][1];
})
});
}
static void readDriver() {
// double dLat = 0.0, dLong = 0.0;
// var driversRef = FirebaseFirestore.instance.collection("drivers");
// var response = driversRef.get();
// var responseArr = [];
// print("___________________RUN________________________");
// print(response);
// print("_______________________________________");
// response.then((value) => {
// value.docs.forEach((result) {
// dLat = result.data()['location'][0];
// dLong = result.data()['location'][1];
// })
// });
print("Spare me");
}

static double user_long = 76.75124201279625; // lat of user
static double user_lat = 30.728236491597823; // long of user
static double hosp_long = 76.76938534904092; // lat for nearest hospital
static double hosp_lat = 30.724073914302423; // long for nearest hospital
static double driver_lat = dLat;
static double driver_long = dLong;
static double driver_lat = 30.724073914302423;
static double driver_long = 76.76938534904092;

static String driver_name = "Varun Kainthla";

Expand Down
14 changes: 7 additions & 7 deletions lib/pages/user_dashboard.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,13 @@ class _userDashboardState extends State<userDashboard> {
}

void readDriver(String aditi) {
var driversRef = FirebaseFirestore.instance.collection("drivers");
var response = driversRef.get();
var responseArr = [];
response.then((value) => {
value.docs.forEach((result) {
print(result.data());
})
var driversRef = FirebaseFirestore.instance.collection("drivers");
var response = driversRef.get();
var responseArr = [];
response.then((value) => {
value.docs.forEach((result) {
print(result.data());
})
});
}

Expand Down
15 changes: 0 additions & 15 deletions server/node_modules/.bin/compileProtos

This file was deleted.

17 changes: 0 additions & 17 deletions server/node_modules/.bin/compileProtos.cmd

This file was deleted.

18 changes: 0 additions & 18 deletions server/node_modules/.bin/compileProtos.ps1

This file was deleted.

15 changes: 0 additions & 15 deletions server/node_modules/.bin/escodegen

This file was deleted.

17 changes: 0 additions & 17 deletions server/node_modules/.bin/escodegen.cmd

This file was deleted.

18 changes: 0 additions & 18 deletions server/node_modules/.bin/escodegen.ps1

This file was deleted.

15 changes: 0 additions & 15 deletions server/node_modules/.bin/esgenerate

This file was deleted.

17 changes: 0 additions & 17 deletions server/node_modules/.bin/esgenerate.cmd

This file was deleted.

18 changes: 0 additions & 18 deletions server/node_modules/.bin/esgenerate.ps1

This file was deleted.

15 changes: 0 additions & 15 deletions server/node_modules/.bin/gp12-pem

This file was deleted.

17 changes: 0 additions & 17 deletions server/node_modules/.bin/gp12-pem.cmd

This file was deleted.

18 changes: 0 additions & 18 deletions server/node_modules/.bin/gp12-pem.ps1

This file was deleted.

15 changes: 0 additions & 15 deletions server/node_modules/.bin/jsdoc

This file was deleted.

17 changes: 0 additions & 17 deletions server/node_modules/.bin/jsdoc.cmd

This file was deleted.

18 changes: 0 additions & 18 deletions server/node_modules/.bin/jsdoc.ps1

This file was deleted.

15 changes: 0 additions & 15 deletions server/node_modules/.bin/markdown-it

This file was deleted.

17 changes: 0 additions & 17 deletions server/node_modules/.bin/markdown-it.cmd

This file was deleted.

18 changes: 0 additions & 18 deletions server/node_modules/.bin/markdown-it.ps1

This file was deleted.

Loading