You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/understanding-the-flutterflow-ui/projects/how-to-create-use-app-state.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ FlutterFlow manages state in several ways, depending on the scope.
10
10
11
11
Generally, state management is handled using the Provider package, which facilitates the provisioning of data models for components, pages, and the overall app state.
Copy file name to clipboardExpand all lines: docs/understanding-the-flutterflow-ui/projects/how-to-run-test-projects.md
+20-27Lines changed: 20 additions & 27 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,12 +13,10 @@ There are 4 ways to test your project in FlutterFlow.
13
13
## Preview Mode
14
14
You can use the Preview Mode to quickly try out your app on a virtual device without waiting for it to build. This is helpful primarily for navigation and animations. You can also preview your app in the Dark/Light mode and visualize it on various mobile, tablet, and desktop devices.
15
15
16
-
<divclass="alert alert--info"role="alert">
17
-
#### When to Use Preview Mode
18
-
The main benefit is that your app will load instantly. However, because of the limitations this feature is used much less often that the other testing modes.
19
-
</div>
20
-
<divclass="alert alert--warning"role="alert">
21
-
#### Preview Mode Limitations
16
+
### When to Use Preview Mode
17
+
The primary benefit of "Preview Mode" is that it allows your app to load instantly, making it ideal for UI testing. However, most business logic is not included in this mode. As a result, "Preview Mode" is used less frequently than other testing modes, which provide a more comprehensive evaluation of the app's functionality.
18
+
19
+
:::caution[Preview Mode Limitations]
22
20
- Actions may not trigger or work properly.
23
21
- FontAwesome icons jump around when mouse hovers over certain material widgets.
24
22
- Firestore data is not loaded from Firebase.
@@ -32,34 +30,31 @@ The main benefit is that your app will load instantly. However, because of the l
32
30
- Dropdown disabling does not work in
33
31
- Preview Mode.
34
32
- Tooltip does not work for some screen sizes in Preview Mode.
35
-
</div>
33
+
:::
36
34
37
35
## Test Mode
38
-
39
36
Test mode uses Flutter's "Hot Reload" feature, which lets you immediately see any changes made to code in an emulator or on-device. Running your app in _Test_ Mode helps you experiment, test UIs, and fix bugs faster.
40
37
41
38
To run your app in Test Mode:
42
-
43
39
1. Click on the **Test icon** or press **Cmd/Ctrl + I** (a keyboard shortcut). This will run your app in a new browser window.
44
40
2. Switch to the app builder and make some changes, such as changing colors and alignment.
45
41
3. Now switch to the Test Mode tab and click **Instant Reload** or press **Cmd/Ctrl + J** to see the changes in under 10 seconds.
46
42
47
-
<h4>Test Mode Button Colors</h4>
43
+
#### Test Mode Button Colors
48
44
The test mode button color indicates the following status:
49
45
- Orange: Building
50
46
- Green: Ready
51
47
- Yellow: Expiring Soon
52
48
- Red: Expired
53
-
<divclass="alert alert--info"role="alert">
54
-
####When to Use Test Mode
49
+
50
+
### When to Use Test Mode
55
51
When designing and developing your app, Test Mode is the second most common testing mode (next to Local Run). It's Hot Reloading allows for fast iteration and testing. It's downsides compared to Local Run are its restricted time (30 min.) and lack of access to some features (e.g. camera).
56
-
</div>
57
-
<divclass="alert alert--info"role="alert">
58
-
<h4>Troubleshooting – Slow Loading</h4>
52
+
53
+
:::warning[Troubleshooting – Slow Loading]
59
54
If you see a progress bar at the top of the device running for over 15 seconds, try refreshing the page.
60
-
</div>
61
-
<divclass="alert alert--warning"role="alert">
62
-
#### Test Mode Limitations
55
+
:::
56
+
57
+
:::caution[Test Mode Limitations]
63
58
- 30 minute testing time. After the 30 minutes has expired, you can start another test mode.
64
59
- If you see a grey "broken" screen with a sad face, it may be a DNS server issue with your network provider. We recommend using CloudFlare's 1.1.1.1 DNS server. Click here to see instructions.
65
60
- Lottie animation may not load if you provide a variable path.
@@ -70,23 +65,21 @@ If you see a progress bar at the top of the device running for over 15 seconds,
70
65
- Widgets having Shimmer or Tint animation might not appear properly.
71
66
- Assets used within Custom Code might not appear properly.
72
67
- Audio Recording actions do not work in Test Mode, use web publishing in Settings to test recording audio.
73
-
</div>
68
+
:::
74
69
75
70
## Run Mode
76
-
77
-
You can test a fully functional version of your app using the _Run_ mode, including live data. It will build the app, which typically requires around 2-4 minutes - but can be longer for larger projects. You can then interact with your app through your web browser.
71
+
You can test a fully functional version of your app using the _Run_ mode, including live data. It will build the app, which typically requires around 2-4 minutes - but can be longer for larger projects. You can then interact with your app through your web browser. This is a web version of the app, identical to the version that is run in _Test Mode_.
78
72
79
73
To run the app in Run Mode:
80
74
81
75
1. Click on the **dropdown** next to the Test Mode button \***\*or press **Cmd/Ctrl + E\*\* (a keyboard shortcut). This will run your app in a new browser window.
82
-
<divclass="alert alert--info"role="alert">
83
-
####When to Use Run Mode
76
+
77
+
### When to Use Run Mode
84
78
The main benefit of Run Mode is the ability to share a running app. The url of the Run Mode is public and shareable. All Run Modes will persist and can be accessed in the drop down menu next to the lightning bolt icon in upper right of the FlutterFlow builder.
85
-
</div>
86
-
<divclass="alert alert--warning"role="alert">
87
-
#### Run Mode Limitations
79
+
80
+
:::caution[Run Mode Limitations]
88
81
Run Mode does not support Hot Reloading so any changes you make to your app will not be reflected in the Run Mode. In order to see the changes you would have to create another Run Mode.
89
-
</div>
82
+
:::
90
83
91
84
## Local Run
92
85
You can test your app on an emulator or physical mobile device with Local Run feature, which is available in the FlutterFlow Desktop App. Local Run automatically tracks changes in your FlutterFlow project, downloads the code locally, and gives you the option to use Flutter's Hot Reload or Hot Restart to see your changes instantly on a device.
0 commit comments