1

I see there is an HTTP Dart Package found at https://pub.dev/packages/http

The documentation & examples provided look acceptable.

Is this an easy way to learn HTTP requests in Dart / Flutter, or should I take a different approach?

My end goal is OpenID Connect & OAuth for QuickBooks Online, so I cannot use Google and other popular OAuth providers.

1 Answer 1

2

This is the official Http package for dart from the dart team. I say, stay with this package for http requests in Dart/Flutter and if this package doesn't cover your needs later on, there are probably another package that will.

I recommend to use import prefix on this package so it doesn't conflict with any other package you might use

import 'package:http/http.dart' as http;

example:

final response = await http.post(url, body: ...);
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.