Skip to content

Commit

Permalink
Initial Release
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavkonidena committed Dec 11, 2023
1 parent 3a20a03 commit b866f8b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 10 deletions.
1 change: 0 additions & 1 deletion lib/src/screens/baseUser/home/bottom_nav.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'package:book_my_spot_frontend/src/screens/baseUser/home/custompainter_bottomnav.dart';
import 'package:book_my_spot_frontend/src/state/navbar/navbar_state.dart';
import 'package:flutter_riverpod/flutter_riverpod.dart';
import 'package:flutter/material.dart';
Expand Down
2 changes: 0 additions & 2 deletions lib/src/screens/baseUser/newReservation/event_booking.dart
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,6 @@ class EventBookingPage extends ConsumerWidget {
ref.refresh(eventsProvider);
context.go("/");
}

print(post_data);
},
tileColor:
const Color.fromRGBO(217, 217, 217, 0.3),
Expand Down
8 changes: 4 additions & 4 deletions lib/src/screens/baseUser/newReservation/group_booking.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,20 @@ class GroupBookingFinalPage extends ConsumerWidget {
i < ref.read(groupselectedProvider.notifier).state.length;
i++) {
var id = ref.read(groupselectedProvider)[i]["id"];
print(id);

grpMembers.add(id);
}
print(grpMembers);

grpMembers.add(StorageManager.getToken().toString());
var grp_data = {
"name": grp_name,
"id": jsonEncode(grpMembers).toString(),
};
print(grp_data);

var grp_response = await http
.post(Uri.parse(using + "group/add"), body: grp_data);
var grp_id = jsonDecode(grp_response.body.toString());
print(data);

initial_post_data["group_id"] = grp_id.toString();
var response = await http.post(
Uri.parse(using + "booking/group/bookSlot"),
Expand Down
4 changes: 2 additions & 2 deletions lib/src/screens/baseUser/newReservation/group_creation.dart
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ class _GroupCreatePageState extends ConsumerState<GroupCreatePage> {
Uri.parse(using + "team/add"),
body: post_data);
var data = jsonDecode(response.body.toString());
print(data);

}
ref.refresh(groupselectedProvider);
await ref.watch(teamsProvider.notifier).getTeams(ref);
Expand Down Expand Up @@ -199,7 +199,7 @@ class _GroupCreatePageState extends ConsumerState<GroupCreatePage> {
"member_id": member_id,
"admin": admin,
};
print(post_data);

var responses = await http.post(
Uri.parse(
using + "team/add"),
Expand Down
2 changes: 1 addition & 1 deletion lib/src/screens/baseUser/teams/teams_detail.dart
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class _TeamDetailsState extends ConsumerState<TeamDetails> {
}
e.errorHandler(ref);
} catch (e) {
print(
debugPrint(
"Unknown error occoured!" + e.toString());
}
},
Expand Down

0 comments on commit b866f8b

Please sign in to comment.