A Fake Airlines Flutter application.
This project is using fake api calls from instantwebtools
Screen consists of passengers list (downloaded by chunks of 10 while scrolled till the end), and a text field, which takes an integer number of the page, which need to be downloaded. List items can be expanded showing an additional information (airline logo and country).
Example of a GET call (with page number(0) and response limit(10) ):
https://api.instantwebtools.net/v1/passenger?page=0&size=10
Example of response:
{
"totalPassengers": 6,
"totalPages": 6,
"data": [
{
"_id": "5eef7f1bdfaf515ddc9feade",
"name": "Saman Jeewantha",
"trips": 500,
"airline": [
{
"id": 4,
"name": "Emirates",
"country": "Dubai",
"logo": "https://upload.wikimedia.org/wikipedia/commons/thumb/d/d0/Emirates_logo.svg/150px-Emirates_logo.svg.png",
"slogan": "From Dubai to destinations around the world.",
"head_quaters": "Garhoud, Dubai, United Arab Emirates",
"website": "www.emirates.com/",
"established": "1985"
}
],
"__v": 0
}
]
}