remove param context
This commit is contained in:
@@ -9,10 +9,8 @@ import '../mih_components/mih_pop_up_messages/mih_error_message.dart';
|
|||||||
import 'package:supertokens_flutter/http.dart' as http;
|
import 'package:supertokens_flutter/http.dart' as http;
|
||||||
|
|
||||||
class MihBusinessDetailsServices {
|
class MihBusinessDetailsServices {
|
||||||
|
|
||||||
Future<Business?> getBusinessDetails(
|
Future<Business?> getBusinessDetails(
|
||||||
String app_id,
|
String app_id,
|
||||||
BuildContext context,
|
|
||||||
) async {
|
) async {
|
||||||
var response = await http.get(
|
var response = await http.get(
|
||||||
Uri.parse("${AppEnviroment.baseApiUrl}/business/app_id/$app_id"),
|
Uri.parse("${AppEnviroment.baseApiUrl}/business/app_id/$app_id"),
|
||||||
|
|||||||
@@ -75,22 +75,10 @@ class MIHApiCalls {
|
|||||||
} else {
|
} else {
|
||||||
bUserData = null;
|
bUserData = null;
|
||||||
}
|
}
|
||||||
// var responseBUser = await http.get(
|
|
||||||
// Uri.parse("$baseAPI/business-user/$uid"),
|
|
||||||
// );
|
|
||||||
// if (responseBUser.statusCode == 200) {
|
|
||||||
// String body = responseBUser.body;
|
|
||||||
// var decodedData = jsonDecode(body);
|
|
||||||
// BusinessUser business_User = BusinessUser.fromJson(decodedData);
|
|
||||||
// bUserData = business_User;
|
|
||||||
// } else {
|
|
||||||
// bUserData = null;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// Get Businessdata
|
// Get Businessdata
|
||||||
Business? business = await MihBusinessDetailsServices().getBusinessDetails(
|
Business? business = await MihBusinessDetailsServices().getBusinessDetails(
|
||||||
uid,
|
uid,
|
||||||
context,
|
|
||||||
);
|
);
|
||||||
if (business != null) {
|
if (business != null) {
|
||||||
busData = business;
|
busData = business;
|
||||||
|
|||||||
Reference in New Issue
Block a user