FlutterFlow | API Best Practices using Data Types

Поделиться
HTML-код
  • Опубликовано: 5 янв 2025

Комментарии • 18

  • @danielhabibi
    @danielhabibi  9 месяцев назад

    Hey friends! This method is unfortunately outdated, and I recommend following the steps here instead. I'll make a video on the new method soon! docs.flutterflow.io/data-and-backend/api-calls/api-calls-101

    • @becraveiro1
      @becraveiro1 8 месяцев назад

      Hi Daniel! Can you please create a video showing this update? I don't think I am creating my Data Type correctly, as if doesn't seem like my page state is updating. Thanks again for the helpful videos!

    • @danielhabibi
      @danielhabibi  8 месяцев назад

      @@becraveiro1 Hey! The FF team actually just added an auto-create Data Type from a JSON response because so many people were struggling with it and spending too much time trying to get it to work.
      1. Test your API
      2. Copy the JSON response
      3. Go to Data Type Tab
      4. Click the new button and paste your JSON in the box
      Hope this helps!

    • @becraveiro1
      @becraveiro1 8 месяцев назад

      @@danielhabibi Hmmm Should I copy the entire Body JSON form the API Response test or should I copy the Raw Body? Also, im only interested in a few paths, does that make a difference? Just to give some context, my API Call is a google maps one that outputs a list of restaurants (lat, long, name, address). I am parsing my Data Type as a List, but the Data Type itself is not a list (each item form the API has only one lat, long, name, and address). Seem like my Page State (DataType List) is not being updated using the JSON to Data Type.. Weird.

  • @IECVanuatu-g6e
    @IECVanuatu-g6e 5 месяцев назад

    Thanks was seeking to convert json to datatype for days and found your video... manage to make it working in 2 minutes. Thanks again.

  • @ksrath1
    @ksrath1 11 месяцев назад

    Hi Daniel, thanks for this video! I'm just wondering, how does FF take the API 'parse as Data Type' and map it from the JSON path to the relevant field in 'Data Type', as per your video at 4:55? I'm trying to do that but I don't have the option 'Data Structure Field' underneath the 'course' option.

    • @danielhabibi
      @danielhabibi  11 месяцев назад

      Hi! I think I left out that part by accident. We want to create our Data Types and build out the schema the way our API is structured. This image should help imgur.com/LzUzdrR
      Also, FF actually changed the documentation on this so I'm going to re-record it and upload it as soon as possible!

    • @ksrath1
      @ksrath1 11 месяцев назад +1

      Hey@@danielhabibi TYSM, your image makes sense, and of course it now makes sense that the data type is mapped the way the API is structured! I went through the FF documentation and noticed that I had to update my FF app on my mac...that seemed to have the 'Data Structure' options. And it didn't need the 'Update App State' variable to map the API response to the data type. Hurray! Can I be cheeky...and ask for a next video request? Would it be possible to do something with Xano/API populating dynamic children that ISN'T a list view? e.g. some sort of stack? ❤

    • @danielhabibi
      @danielhabibi  11 месяцев назад

      @@ksrath1 My pleasure! Yes, I need more requests but I'm not sure I understand this one... What do you mean exactly? Like one that is generating dynamic children of a PageView or Swipeable Stack? Feel free to send me a Loom or screenshot through a DM on twitter, on discord, or to my email.

  • @MusicbyAnt
    @MusicbyAnt 9 месяцев назад

    hey Daniel thanks for the quick tuto. i follow the same tuto as you did however im returning an error. Would you be able to help me by any chance to figure out where is the blocking?

    • @danielhabibi
      @danielhabibi  9 месяцев назад

      Hey, my pleasure! Here's an invite to my discord server where I'll be glad to help you out! discord.com/invite/8sXqh3eR

  • @danielhabibi
    @danielhabibi  11 месяцев назад

    Sorry about the weird aspect ratio on this video!

  • @projects-flow
    @projects-flow 10 месяцев назад

    Hello, very good video. Which recorder and editor do you use for your videos?

    • @danielhabibi
      @danielhabibi  10 месяцев назад +1

      Thanks! I use screen.studio/@oKP8q for both recording and editing. It's mac only though.

  • @boldbold7398
    @boldbold7398 11 месяцев назад

    yeah free marketplace is a great idea please do it, also this video was amazing and informative, thank you so much

    • @danielhabibi
      @danielhabibi  11 месяцев назад +1

      Great, will do! My pleasure!

  • @AndrewBurchfield
    @AndrewBurchfield 11 месяцев назад

    Such a great video! (And teacher! #Subscribed) I’m still having issues though 😔 Is there somewhere I could send you an email or show you what I’m dealing with?

    • @danielhabibi
      @danielhabibi  11 месяцев назад

      Haha thank you! Yes, of course, and I'm sorry to hear that. You can email at danielhabibiofficial@gmail.com