Add a way for the user to see all the http requests made by the app, using the dart logging package.
It might be useful for users who want to know what is going in the background, and for debugging purposes.
The screen should be accessible from the settings screen. Should be a really simple list of text lines in the following form:
<DateTime> <Http response code> <HTTP METHOD> <Uri>
[ ] Color in red response with code > 300.
[ ] Add a button to clear the logs
[ ] Use ListView with pagination (100 items per page?)
Implementation notes:
[ ] should not reuse the existing http logger which was added for debugging locally during development
[ ] should wrap the default client returned in httpClientFactory to intercept all requests
[ ] save records in sqlite with a short retention period (7 days)
[ ] probably wise to save records by batches (like every 10?); use app lifecycle events to save a pending incomplete batch when app is about to be exited (ie. put in background)
Add a way for the user to see all the http requests made by the app, using the dart logging package. It might be useful for users who want to know what is going in the background, and for debugging purposes.
The screen should be accessible from the settings screen. Should be a really simple list of text lines in the following form:
<DateTime> <Http response code> <HTTP METHOD> <Uri>
ListView
with pagination (100 items per page?)Implementation notes:
httpClientFactory
to intercept all requests