diff --git a/lib/controllers/providers/api/gas_refill_comments.dart b/lib/controllers/providers/api/gas_refill_comments.dart index 9a06013e..21990d71 100644 --- a/lib/controllers/providers/api/gas_refill_comments.dart +++ b/lib/controllers/providers/api/gas_refill_comments.dart @@ -48,7 +48,7 @@ class GasRefillCommentsProvider extends ChangeNotifier { notifyListeners(); Response response; try { - response = await ApiManager.instance.get(URLs.getGazRefillComments + "?callRequestId=$callId"); + response = await ApiManager.instance.get(URLs.getGazRefillComments + "?gasRefillId=$callId"); stateCode = response.statusCode; if (response.statusCode >= 200 && response.statusCode < 300) { diff --git a/lib/views/pages/user/gas_refill/gas_refill_comments.dart b/lib/views/pages/user/gas_refill/gas_refill_comments.dart index fa45981e..2b545dcd 100644 --- a/lib/views/pages/user/gas_refill/gas_refill_comments.dart +++ b/lib/views/pages/user/gas_refill/gas_refill_comments.dart @@ -28,6 +28,7 @@ class GasRefillCommentsBottomSheet extends StatefulWidget { class _GasRefillCommentsBottomSheetState extends State { final GlobalKey _formKey = GlobalKey(); + GasRefillCommentsProvider commentsProvider; String text; @override @@ -35,9 +36,15 @@ class _GasRefillCommentsBottomSheetState extends State(context); + commentsProvider= Provider.of(context); final userProvider = Provider.of(context, listen: false); return SingleChildScrollView( child: Wrap(