Kick off your book project in 3 hours! Live workshop on Zoom. You’ll leave with a real book project, progress on your first chapter, and a clear plan to keep going. Saturday, June 6, 2026. Learn more…

Leanpub Header

Skip to main content

Create Flutter widgets dynamically with a REST API in Laravel or Django

Create a REST API (JSON) with Laravel and PHP or Django and Python - connect it to an iOS and Android app with Dart

In this book, you won't just learn to create static screens; you will learn to build dynamic interfaces (Server-Driven UI). We will start with layout in Flutter, move through the robust construction of APIs and models using Laravel and Django, and finish by implementing a "Widget Mix" so the backend dictates how the app looks. By the end, you will have built a system where you can update your users' UI in real-time, without having to wait for app store approvals. This is the solid foundation you need to develop scalable and modern applications.

Minimum price

$8.00

$20.00

You pay

Author earns

$
PDF
EPUB
About

About

About the Book

In this book, you won't just learn to create static screens; you will learn to build dynamic interfaces (Server-Driven UI). We will start with layout in Flutter, move through the robust construction of APIs and models using Laravel and Django, and finish by implementing a "Widget Mix" so the backend dictates how the app looks. By the end, you will have built a system where you can update your users' UI in real-time, without having to wait for app store approvals. This is the solid foundation you need to develop scalable and modern applications.

Map

Chapter 1 - Creating the application mockup in Flutter: Learn to design your Flutter application from scratch. Build the user interface (UI) and prepare it to consume dynamic data from a backend.

Chapter 2 - Laravel: Models, Migrations, and CRUD Operations of the Admin Panel: Discover how to configure your backend in Laravel. Learn how to build the initial models and CRUD operations to manage your Flutter application's data.

Chapter 3 - Laravel Building the REST API: Create a scalable REST API with Laravel. Learn how to expose your model data and configure endpoints to consume it from your frontend.

Chapter 4 - Django: Templates, Migrations, and Admin Panel: Start your backend with Django. Step-by-step guide to creating models, configuring the admin panel, and building your application's CRUDs.

Chapter 5 - Building a REST API in Django: Learn how to develop a REST API with the Django REST Framework. Configure views, serializers, and endpoints to connect your backend to any app.

Chapter 6 - Consume the REST API from Flutter: Connect your Flutter app to the backend. Learn how to make HTTP requests, consume REST APIs, and display real-world dynamic data in your interface.

Chapter 7 - Widget Mixes with Django Admin: Implement Server-Driven UI in Django. Learn how to structure a widget mix in the backend to dynamically control your Flutter app's interface.

Chapter 8 - Widget Mixes with Laravel: Create dynamic interfaces (Server-Driven UI) with Laravel. Discover how to define a widget mix in the backend to render your app in Flutter.

Chapter 9 - Consume Dynamic Widget Mix in Flutter: Implement Server-Driven UI in Flutter. A guide to creating builders, providers, and dynamic pages by consuming a Widget Mix.

Chapter 10 - Notes CRUD style REST API in Laravel: CRUD-style REST API for Notes in Laravel Meta Description: Build a complete REST API in Laravel for managing notes. Learn step-by-step: migrations, Eloquent models, resource controllers, and testing with Postman.

Chapter 11 - Notes CRUD-style REST API in Django: Notes CRUD-Style REST API in Django Meta Description: Implement a notes CRUD with the Django REST Framework. Detailed guide on models, serializers, and views to build a powerful and scalable API

Chapter 12 - Flutter - Sending CRUD requests to the Notes REST API: Flutter - Sending CRUD Requests to the Notes REST API Meta Description: Connect Flutter to your REST API. Master GET, POST, PUT, and DELETE requests to sync notes in real time and efficiently handle JSON responses.

Chapter 13 - Laravel - Defining the behavior for widgets: Defining Widget Behavior Meta Description: Optimize the backend of your Laravel widgets. Learn to define dynamic behaviors and business logic for reusable interface components.

Chapter 14 - Django - Defining behavior for widgets: Django - Defining Widget Behavior Meta Description: Defines the logic and behavior of dynamic widgets in Django. Structures the backend to serve interactive components efficiently and cleanly.

Chapter 15 - Flutter - Defining behavior for widgets: Flutter - Defining Widget Behavior Meta Description: Implement advanced interactivity in Flutter. Learn to manage dynamic states and actions in your widgets based on logic received from the server.

Chapter 16 - Django - Protecting the REST API with Token Authentication: Django - Secure your REST API with Token Authentication Meta Description: Secure your Django REST API with Token Authentication. Protect your resources and manage user access professionally and securely.

Chapter 17 - Laravel - Protecting the REST API with Laravel Passport: Protecting your REST API with Laravel Passport Meta Description: Implement OAuth2 in Laravel using Passport. Learn how to issue and validate access tokens to secure your API against unauthorized access.

Chapter 18 - Flutter - Adapting the app to the protected REST API: Flutter - Adapting the app to the protected REST API Meta Description: Configure Flutter to consume protected APIs. Token management, session persistence, and security headers for a robust mobile application.

Chapter 19 - Flutter - Drag and Drop card system: Flutter - Drag and Drop Card System Meta Description: Design an interactive card interface using drag and drop in Flutter. Guide to implementing dynamic movement and visual reordering of elements.

Chapter 20 - Flutter - Adding functionality to the card system: Flutter - Adding Functionality to the Card System Meta Description: Complete your card system in Flutter. Synchronize user interaction with the backend and optimize data persistence after drag and drop.

Share this book

Author

About the Author

Andrés Cruz Yoris

Andrés Cruz Yoris, Licenciado en Computación, con más de 10 años de experiencia en el desarrollo de aplicaciones web en general; trabajo con PHP, Python y tecnologías del lado del cliente como HTML, JavaScript, CSS, Vue entre otras; y del lado del servidor como Laravel, Flask, Django y Codeigniter. También desarrollo con Android Studio, xCode y Flutter para la creación de aplicaciones nativas para Android e IOS.

Pongo a tú disposición parte de mi aprendizaje, reflejado en cada una de las palabras que componen mis libros sobre el desarrollo de aplicaciones en general.

The Leanpub 60 Day 100% Happiness Guarantee

Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.

Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.

You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!

So, there's no reason not to click the Add to Cart button, is there?

See full terms...

Earn $8 on a $10 Purchase, and $16 on a $20 Purchase

We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.

(Yes, some authors have already earned much more than that on Leanpub.)

In fact, authors have earned over $15 million writing, publishing and selling on Leanpub.

Learn more about writing on Leanpub

Free Updates. DRM Free.

If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).

Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.

Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.

Learn more about Leanpub's ebook formats and where to read them

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub