library my_prj.globals; import 'dart:convert'; String USER_LOGIN = 'user'; String PASS_LOGIN = 'password'; var path = 'http://localhost:8080/api/v1/'; var auth = 'Basic ${base64Encode(utf8.encode('$USER_LOGIN:$PASS_LOGIN'))}'; Map headers = { 'content-type': 'application/json', 'accept': 'application/json', 'authorization': auth };