forked from eatvio/eatvio_app
feat(chat): API method info success
This commit is contained in:
@@ -27,9 +27,10 @@ class ChatBloc extends Bloc<ChatEvent, ChatState> {
|
||||
AppRoutes.authScreen,
|
||||
);
|
||||
}
|
||||
final String? id = state.chatModelObj?.chatID;
|
||||
final String? chatID = state.chatModelObj?.chatID;
|
||||
print(chatID);
|
||||
final response = await http.get(
|
||||
Uri.parse(dotenv.env['SERVER_ROOT']! + '/chat/show/$id'),
|
||||
Uri.parse(dotenv.env['SERVER_ROOT']! + '/chat/show/$chatID'),
|
||||
headers: {
|
||||
'Authorization': 'Bearer $token',
|
||||
},
|
||||
|
||||
@@ -14,15 +14,3 @@ class ChatInitialEvent extends ChatEvent {
|
||||
@override
|
||||
List<Object?> get props => [];
|
||||
}
|
||||
|
||||
///event for dropdown selection
|
||||
class ChangeDropDownEvent extends ChatEvent {
|
||||
ChangeDropDownEvent({required this.value});
|
||||
|
||||
SelectionPopupModel value;
|
||||
|
||||
@override
|
||||
List<Object?> get props => [
|
||||
value,
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user