Consider:
  static const String endPoint = 'http://192.168.18.22:8001/v1';
Here is my configuration for my endPoint project. "192.168.18.22:8001" is my IP address in my Android device:
Consider:
  static const String endPoint = 'http://192.168.18.22:8001/v1';
Here is my configuration for my endPoint project. "192.168.18.22:8001" is my IP address in my Android device:
 
    
     
    
    If you're running on an Android device, the localhost address is usually 10.0.0.2.
 
    
    