Flutter Tutorial - Parsing XML and JSON Data | Dart

  Рет қаралды 23,115

RetroPortal Studio

RetroPortal Studio

Күн бұрын

#flutter #json #xml
In this Flutter Tutorial i will be teaching you to parse XML and JSON data in Flutter. We'll be using a package called "XML" for parsing XML files :
Package Link : pub.dev/packages/xml
We'll be Reading File from Assets and then Display the data in a ListView using FutureBuilder.
If you like the tutorial, please hit the LIKE and SUBSCRIBE button and follow me on Instagram & Twitter for future updates!
Twitter: / theretroportal
Instagram: www.instragram.com/retroporta...
LinkedIn: / parasjainrps
Happy Coding!

Пікірлер: 23
@RetroPortalStudio
@RetroPortalStudio 4 жыл бұрын
If you find this video useful, consider Following me on: Twitter: twitter.com/theretroportal Instagram: instagram.com/retroportalstudio Happy Coding! ✌️😁
@yourasa1213
@yourasa1213 4 жыл бұрын
13:46 -> XML
@SimonKenyon
@SimonKenyon 4 жыл бұрын
very helpful
@flutterdeevshow
@flutterdeevshow Жыл бұрын
Perfect! 👋👋👋
@andrewstevenson4901
@andrewstevenson4901 4 жыл бұрын
Great tutorial. I have subscribed. It has certainly got me started. I need to read a KML file, which has multiple levels, so I can display polyline layer on top of a Google Map. Can you tell me how I would do that? I'm missing something. Thanks
@habeebmurtala7318
@habeebmurtala7318 4 жыл бұрын
thanks
@zakkyang6476
@zakkyang6476 3 жыл бұрын
Hi, do you know what is the function of 'get' working here?
@ndahood2526
@ndahood2526 3 жыл бұрын
RetroPortal Studio nice tutorial thank you i need some help for your side i do a soap request i got it a xml formatted a data but actually i want a xml inside a json data please help me
@szarejas
@szarejas 4 жыл бұрын
Is this method working with more complicated JSON syntax, when is an array whose elements are more objects?
@RetroPortalStudio
@RetroPortalStudio 4 жыл бұрын
yes this is completely feasible. your function body will change accordingly then. ✌😁 Send me the sample data if you want to know how! Would be happy to help!
@szarejas
@szarejas 4 жыл бұрын
@@RetroPortalStudio Sample is typical JSON data, when object have nested arrays, as a childs, like example myObj = { "name":"John", "age":30, "cars": [ { "name":"Ford", "models":[ "Fiesta", "Focus", "Mustang" ] }, { "name":"BMW", "models":[ "320", "X3", "X5" ] }, { "name":"Fiat", "models":[ "500", "Panda" ] } ] }
@clementbabaniyi
@clementbabaniyi 4 жыл бұрын
@RetroPortal Studio can you answer this,, i.m having the same problem
@shalinijoshi
@shalinijoshi 4 жыл бұрын
Hey! can you help how can I get XML data from online, not from asset file?
@anandjha5353
@anandjha5353 4 жыл бұрын
http.Response response = await http.get(Uri.encodeFull("10.0.2.2/my_api/my_response.xml")); print(response.body); //xml response
@anandjha5353
@anandjha5353 4 жыл бұрын
Here the url returns data in xml format which is stored in response variable and response.body will print the xml response.
@clementbabaniyi
@clementbabaniyi 4 жыл бұрын
Can you help with a nested loop { "id": 3, "name": "Food&Nutrition", "content": [ { "id": 1, "topic": "Baking", "image": "assets/baking.png" }, { "id": 2, "topic": "Fruitful living", "image": "assets/drugs.png" }, { "id": 3, "topic": "Project Management", "image": "assets/nursing.png" } ] }
@learningcurious5845
@learningcurious5845 2 жыл бұрын
there is an error calling the return type cant be null. can anyone tell why?
@davepoty
@davepoty Жыл бұрын
Did you already know the answer? coz I need one too haha
@shahzebnaqvi
@shahzebnaqvi 2 жыл бұрын
Code link?
@syedwajahathussain9730
@syedwajahathussain9730 4 жыл бұрын
Please share your computer specifications.
@RetroPortalStudio
@RetroPortalStudio 4 жыл бұрын
Ryzen 5 | 8GB | SSD | 4GB 1050Ti 😅
@syedwajahathussain9730
@syedwajahathussain9730 4 жыл бұрын
RetroPortal Studio I want to buy a system for development purpose should I buy a used macbook or buy a computer with good specs.??
@RetroPortalStudio
@RetroPortalStudio 4 жыл бұрын
@@syedwajahathussain9730 If you are just starting out and are not planning on developing for mac. I personally would suggest a well built PC. Mac would cost you much more if you wish to develop for android!
Flutter - Convert Complex JSON to Dart Classes Easily | JSON Serialization
8:40
Converting JSON to Dart Classes
13:03
Bleyl Dev
Рет қаралды 21 М.
Nastya and SeanDoesMagic
00:16
Nastya
Рет қаралды 31 МЛН
Fast and Furious: New Zealand 🚗
00:29
How Ridiculous
Рет қаралды 24 МЛН
EVOLUTION OF ICE CREAM 😱 #shorts
00:11
Savage Vlogs
Рет қаралды 7 МЛН
Flutter Provider - State Management using PROVIDER ( A BLoC Alternative)
25:24
Flutter - Loading paged JSON data into the ListView
39:02
Brandon Donnelson
Рет қаралды 24 М.
How to read local json file in flutter & show json data in listview builder
20:06
Top 10 Widgets every Flutter Developer should know!
17:17
RetroPortal Studio
Рет қаралды 281 М.
Flutter Read Data from Local JSON Files
6:29
dbestech
Рет қаралды 27 М.
Display Data From a JSON in Flutter
7:11
Programming Addict
Рет қаралды 123 М.
Top 12 Flutter Tips & Tricks
9:32
Fireship
Рет қаралды 266 М.
Flutter: Auto Create Models from JSON | Serializable
11:46
Codepur
Рет қаралды 32 М.
Какой ноутбук взять для учёбы? #msi #rtx4090 #laptop #юмор #игровой #apple #shorts
0:18
АЙФОН 20 С ФУНКЦИЕЙ ВИДЕНИЯ ОГНЯ
0:59
КиноХост
Рет қаралды 1,2 МЛН
Как бесплатно замутить iphone 15 pro max
0:59
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 7 МЛН
Здесь упор в процессор
18:02
Рома, Просто Рома
Рет қаралды 422 М.
Как распознать поддельный iPhone
0:44
PEREKUPILO
Рет қаралды 2,2 МЛН