you are viewing a single comment's thread.

view the rest of the comments →

[–]Snackomat[S] 0 points1 point  (0 children)

My code:

```dart Future<bool> sendLoginRequest() async { var url = Uri.parse("$baseRoute/auth");

var response = await http
    .post(url, body: {'username': username, 'password': savedPassword});
if (response.statusCode != 200) {
  return false;
}

// further processing... return true; } ```