Skip to content

Commit 5611b5b

Browse files
committed
updates
1 parent 007a54b commit 5611b5b

File tree

4 files changed

+52
-38
lines changed

4 files changed

+52
-38
lines changed

docs/concepts/state-management.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: State Management
3+
description: An overview of state management in FlutterFlow
4+
---
5+
6+
State management is a crucial concept focused on maintaining and controlling the *state* of an application. Simply put, it involves monitoring the changes within your app and updating the user interface to reflect these changes.
7+
8+
You can think of the UI as a function of your state variables, where changes in these variables directly influence what the UI displays.
9+
10+
In FlutterFlow, there are a few types of state variables that you can create:
11+
12+
13+
![App State is shared across multiple pages in the application. Component State is specific to a component. Page State is shared across widgets on the page.](<state_management_overview.png>)
14+
15+
16+
- State variables are themselves variables - meaning they have a *name* and a *data type*.
17+
- They also have an initial value that is set when you create the variable.
18+
- Once you create a state variable, it's value can be used to change the configuration of widget properties - like any other variable.
19+
- You can update the value of state variables using the *Update State Variable* action.
20+
21+
You can learn more about state management from this video:
22+
<div class="video-container"><iframe src="https://www.youtube.com/watch?v=jD6L4xjYjJA" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe></div>
23+
24+
25+
26+
<!-- TO DO: link to variables section + action secton -->
27+
28+
<!-- TO DO: add link to app, page and component state variable sections -- and also link to something about widget state in built in widget section -->
29+
30+
31+
32+
33+
484 KB
Loading

docs/troubleshooting/push-notifications.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ toc_max_heading_level: 5
99
Push notifications play a vital role in mobile apps, letting you connect with your audience and update them on key developments. But, there are instances when push notifications fail to deliver. In this guide, we'll explore some typical problems that hinder push notifications in FlutterFlow and offer detailed instructions on how to fix them.
1010

1111

12-
![push-notifications-ff.png](push-notification-assets%2Fpush-notifications-ff.png)
12+
<img src="./push-notification-assets/push-notifications-ff.png" alt="Firebase Console" />
1313

1414
:::tip Using CodeMagic? [Skip ahead!](https://mdxjs.com/playground/)
1515

@@ -20,7 +20,7 @@ Push notifications play a vital role in mobile apps, letting you connect with yo
2020
#### 1. Ensure your subscription status hasn't changed.
2121
Head to the [Firebase Console](https://console.firebase.google.com/) and select Project Settings > Usage & Billing > Details & Settings.
2222

23-
![firebase-console.png](push-notification-assets%2Ffirebase-console.png)
23+
<img src="./push-notification-assets/firebase-console.png" alt="Firebase Console" />
2424

2525
If you see Spark listed, you will need to select Modify Plan and upgrade to a Blaze Plan.
2626

sidebars.ts

Lines changed: 17 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2,42 +2,23 @@ import type {SidebarsConfig} from '@docusaurus/plugin-content-docs';
22

33

44
const sidebars: SidebarsConfig = {
5-
troubleshootingSidebar: [{type: 'autogenerated', dirName: 'troubleshooting'}], // Adjust `dirName` as needed
6-
changelogSidebar: [{type: 'autogenerated', dirName: 'changelog'}], // Adjust `dirName` as needed
7-
docsSidebar: [
8-
{
9-
type: 'category',
10-
label: 'Getting Started',
11-
collapsed: false,
12-
items: ['index', {
13-
type: 'category', label: "Before You Begin", items: [
14-
'intro/before-you-begin/setting-up-flutterflow', 'intro/before-you-begin/app-architecture', 'intro/quickstart'
15-
]
16-
}],
17-
},
18-
{
19-
type: 'category',
20-
label: 'Resources',
21-
collapsed: false,
22-
items: [
23-
{
24-
type: 'autogenerated',
25-
dirName: 'resources'
26-
}
27-
],
28-
},
29-
{
30-
type: 'category',
31-
label: 'Building Concepts',
32-
collapsed: false,
33-
items: [
34-
{
35-
type: 'autogenerated',
36-
dirName: 'ff-concepts'
37-
}
38-
],
39-
}
40-
]
5+
troubleshootingSidebar: [{type: 'autogenerated', dirName: 'troubleshooting'}], // Adjust `dirName` as needed
6+
changelogSidebar: [{type: 'autogenerated', dirName: 'changelog'}], // Adjust `dirName` as needed
7+
docsSidebar : [
8+
{
9+
type: 'category',
10+
label: 'Getting Started',
11+
collapsed: false,
12+
items: ['index', {type: 'category', label: "Before You Begin", items: [
13+
'intro/before-you-begin/setting-up-flutterflow', 'intro/before-you-begin/app-architecture'
14+
]}]},
15+
{
16+
type: 'category',
17+
label: 'Concepts',
18+
collapsed: false,
19+
items: ['concepts/state-management']
20+
}
21+
]
4122
};
4223

4324
export default sidebars;

0 commit comments

Comments
 (0)