Skip to content

Commit 9dd1522

Browse files
committed
changes to text and formatting
1 parent b569326 commit 9dd1522

File tree

2 files changed

+21
-28
lines changed

2 files changed

+21
-28
lines changed

docs/understanding-the-flutterflow-ui/projects/how-to-create-use-app-state.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ FlutterFlow manages state in several ways, depending on the scope.
1010

1111
Generally, state management is handled using the Provider package, which facilitates the provisioning of data models for components, pages, and the overall app state.
1212

13-
![state management](../../../static/img/state-management.avif)
13+
<img src="../../../static/img/state-management.avif" alt="state management" />
1414

1515
## Page & Component Models
1616

docs/understanding-the-flutterflow-ui/projects/how-to-run-test-projects.md

Lines changed: 20 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,10 @@ There are 4 ways to test your project in FlutterFlow.
1313
## Preview Mode
1414
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.
1515

16-
<div class="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-
<div class="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]
2220
- Actions may not trigger or work properly.
2321
- FontAwesome icons jump around when mouse hovers over certain material widgets.
2422
- 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
3230
- Dropdown disabling does not work in
3331
- Preview Mode.
3432
- Tooltip does not work for some screen sizes in Preview Mode.
35-
</div>
33+
:::
3634

3735
## Test Mode
38-
3936
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.
4037

4138
To run your app in Test Mode:
42-
4339
1. Click on the **Test icon** or press **Cmd/Ctrl + I** (a keyboard shortcut). This will run your app in a new browser window.
4440
2. Switch to the app builder and make some changes, such as changing colors and alignment.
4541
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.
4642

47-
<h4>Test Mode Button Colors</h4>
43+
#### Test Mode Button Colors
4844
The test mode button color indicates the following status:
4945
- Orange: Building
5046
- Green: Ready
5147
- Yellow: Expiring Soon
5248
- Red: Expired
53-
<div class="alert alert--info" role="alert">
54-
#### When to Use Test Mode
49+
50+
### When to Use Test Mode
5551
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-
<div class="alert alert--info" role="alert">
58-
<h4>Troubleshooting – Slow Loading</h4>
52+
53+
:::warning[Troubleshooting – Slow Loading]
5954
If you see a progress bar at the top of the device running for over 15 seconds, try refreshing the page.
60-
</div>
61-
<div class="alert alert--warning" role="alert">
62-
#### Test Mode Limitations
55+
:::
56+
57+
:::caution[Test Mode Limitations]
6358
- 30 minute testing time. After the 30 minutes has expired, you can start another test mode.
6459
- 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.
6560
- 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,
7065
- Widgets having Shimmer or Tint animation might not appear properly.
7166
- Assets used within Custom Code might not appear properly.
7267
- Audio Recording actions do not work in Test Mode, use web publishing in Settings to test recording audio.
73-
</div>
68+
:::
7469

7570
## 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_.
7872

7973
To run the app in Run Mode:
8074

8175
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-
<div class="alert alert--info" role="alert">
83-
#### When to Use Run Mode
76+
77+
### When to Use Run Mode
8478
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-
<div class="alert alert--warning" role="alert">
87-
#### Run Mode Limitations
79+
80+
:::caution[Run Mode Limitations]
8881
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+
:::
9083

9184
## Local Run
9285
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

Comments
 (0)