2022-09-30
2981
#flutter#python
Damilare Jolayemi
134942
Sep 30, 2022 â‹… 10 min read

Integrating Flask and Flutter apps

Damilare Jolayemi Damilare is an enthusiastic problem-solver who enjoys building whatever works on the computer. He has a knack for slapping his keyboards till something works. When he's not talking to his laptop, you'll find him hopping on road trips and sharing moments with his friends, or watching shows on Netflix.

Recent posts:

leveraging Lighthouse audits to optimize web performance

Leveraging Lighthouse audits to optimize web performance

Slow-loading pages can stem from multiple causes, which makes them one of the most challenging issues to fix in web development. Lighthouse can help you detect and solve your web performance issues.

Anna Monus
May 14, 2025 â‹… 6 min read

Building multi-region infrastructure with AWS

This isn’t theory. It’s the exact setup you need to deliver fast, resilient apps across AWS regions with zero fluff.

Marie Starck
May 13, 2025 â‹… 5 min read
the nine best FaunaDB alternatives for 2025

The 9 best FaunaDB alternatives for 2025

Looking for a FaunaDB alternative to migrate to? Examine nine other platforms you can use and factors to consider when choosing an alternative.

Nefe Emadamerho-Atori
May 13, 2025 â‹… 7 min read
Techniques To Circulate And Record Knowledge In Engineering Teams

Techniques to circulate and record knowledge in engineering teams

From onboarding to bug tracking, these knowledge-sharing techniques keep your team aligned, reduce overhead, and build long-term technical clarity.

Marie Starck
May 12, 2025 â‹… 4 min read
View all posts

One Reply to "Integrating Flask and Flutter apps"

  1. Hey!
    I really appreciated this example!
    Thank you so much, I was able to reproduce it and learned a lot along the way 🙂
    I would like to leave some typos I found just in case somebody else might want to try it too, if I may.

    @lib/widgets/tasks.dart:
    49 FutureBuilder(
    50 future: Provider.of(context, listen: false).getTodos,
    51 builder: (ctx, snapshot) => snapshot.connection state == ConnectionState.waiting

    In line 51, instead of snapshot.connection state, it is snapshot.connectionState == …

    51 builder: (ctx, snapshot) => snapshot.connectionState == ConnectionState.waiting

    @lib/providers/todo_provider.dart:
    23 final todo = TodoItem(
    24 id: responsePayload[“id”],
    25 itemName: responsePayload[“name”],
    26 isExecuted: responsePayload[“is_executed”],
    27 );
    29 getTodos;
    30 }
    31

    In line 26, I added isExecuted: responsePayload[“is_executed”] as it was required and also called getTodos in order to update the list after a new Entry has been created.

    The files in flutter are located in
    lib/models/todo_item.dart, lib/providers/todo_provider.dart and lib/widgets/tasks.dart.

    It took me some time to figure this out, that is why I thought about sharing it.

    Thank you again for the nice example 🙂

Leave a Reply