title: How to pass basic auth credentials in API call for a Flutter mobile application?
body: <p>I'm working on a simple Flutter mobile app that needs to call out to an API that uses Basic Auth.</p>
  
  <p>I can hit the API in Postman using email &amp; password credentials and it encodes the email &amp; password in Base64 (I assume with a ":" separating) before performing the request.</p>
  
  <p>I'm not sure how to do this in Flutter / Dart...</p>
  
  <p>I've tinkered with the http package and tried to do the Base64 encoding... but I just get back errors from the server.</p>
  
  <p>Can anyone provide some guidance or an example for a basic auth request?</p>