← Back to list

FlutterFlow Micro-SaaS: App State vs. Component State (day 3)

Welcome to Day 3 of your 7-Day FlutterFlow Micro-SaaS Course!

Milan Marjanovic · 2026-05-25 10:50 · 0 claps · 2.2 min read
#flutterflow #no-code #saas #database #web-development
Open on Medium ↗
Wiki topics: 🌐 · Web Development 📱 · Mobile Development

FlutterFlow Micro-SaaS: App State vs. Component State (day 3)

Welcome to Day 3 of your 7-Day FlutterFlow Micro-SaaS Course!

Today, we are tackling a topic that separates beginner developers from professionals: State Management.

“State” is simply the data your app remembers while the user is using it. For example: Which filter is selected? Is the sidebar open or closed? What is the total price in the checkout cart right now?

If you query your database (Firebase/Supabase) every single time a user clicks a button to change a filter, your app will be slow, laggy, and your database bill will skyrocket. Today, you will learn how to handle data locally.

🎛️ The 3 Types of State You Must Master

FlutterFlow gives you three different “buckets” to store temporary data. Choosing the right one is crucial for your SaaS performance:

1. Component State (Local & Isolated)

This lives inside a specific reusable component.

  • Best used for: UI-only changes inside a small piece of your app. For example, whether a specific custom checkbox is checked, or keeping track of the text typed into a local search bar before hitting enter.
  • Why use it: When the component disappears from the screen, this memory is cleared. It keeps your app memory light.

2. Page State (Page-Specific Memory)

This lives only as long as the user stays on that specific page.

  • Best used for: Managing filters or temporary selections. For example, if a user is looking at a data table and selects “Date Range: Last 7 Days”, you store those dates in Page State.
  • Why use it: It allows the page to instantly re-render (refresh) the UI locally without reloading the entire app.

3. App State (Global Memory)

This is global and accessible from any page or component in your entire application.

  • Best used for: Universal global data. For example, the current logged-in user’s role (Admin vs. Employee), the active SaaS workspace ID, or preferred app theme (Dark vs. Light mode).
  • Why use it: It persists as long as the app is open, so you don’t have to fetch this data from the backend over and over again.

💡 Case Study: How I Used This in My Booking SaaS

In my hair salon application, clicking on a time slot in the calendar opens a popup to book an appointment:

  • Page State holds the currently selected date on the calendar. When the user clicks a different day, the page state updates instantly, and the list filters locally.
  • Component State is used inside the “Add Appointment” popup form to calculate the end-time automatically based on the selected service duration, before anything is written to Firebase.
  • App State stores the current_salon_id. Because this is global, every query on every single page automatically knows to only pull data belonging to that specific salon.

🛠️ Your Action Step for Today:

  1. Identify a variable in your SaaS that changes often (like a selected category filter or a search query).
  2. Open your FlutterFlow project and go to the App State tab on the left menu (or Page State on your active page).
  3. Create a local variable (e.g., selectedCategory as a String).
  4. Set up a button Action that uses Update App State to change this variable when clicked, and watch how your UI updates without doing a database write!

🔥 Next Step: Unleash the Power of Code

Ready to bypass the visual limitations of no-code? Move on to Day 4: Writing Custom Logic & Actions in FlutterFlow where we dive deep into Custom Dart Functions and heavy Firestore batch updates!


메타데이터
post_id
463b74dd205c
slug
flutterflow-micro-saas-app-state-vs-component-state-day-3-463b74dd205c
url
https://medium.com/@milan_m/flutterflow-micro-saas-app-state-vs-component-state-day-3-463b74dd205c
canonical_url
https://medium.com/@milan_m/flutterflow-micro-saas-app-state-vs-component-state-day-3-463b74dd205c
author_url
https://medium.com/@milan_m
status
ok
fetched_at
2026-06-09 14:34:10