update for user group

This commit is contained in:
Mohamed Nouffer
2022-09-05 19:12:25 +05:30
parent 09ac737de5
commit 6802083a0a
5 changed files with 88 additions and 51 deletions

View File

@ -166,6 +166,7 @@ List<LatLng> getLocationsList(){
void login(String email, String password, BuildContext context){
AuthService.login(email, password).then((value){
print("------- logged in user details ######## ${value} ###### --------");
if(value.isNotEmpty){
currentUser.clear();
currentUser.add(value);
@ -303,7 +304,7 @@ void login(String email, String password, BuildContext context){
if(currentUser.length > 0){
int user_id = currentUser[0]["user"]["id"] as int;
AuthService.UserDetails(user_id).then((value){
//print("--------- user details ----- ${value}");
print("--------- user details ----- ${value}");
bool paid = value![0]["paid"] as bool;
if(paid){
loadCustomAreas();