Skip to content

Commit 4c539ce

Browse files
committed
docs(web-dashboard): update local setup instructions
- Clarify Flutter SDK installation process and reference official guide - Enable web development support via command line instruction - Recommend AppEnvironment.demo for UI development - Update API Server local setup documentation link
1 parent 7a9f21a commit 4c539ce

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/content/docs/web-dashboard/local-setup.mdx

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,14 @@ This guide will walk you through setting up and running the Flutter News App Web
1010
<Steps>
1111
1. **Prerequisites**
1212

13-
Before you begin, ensure you have the following software installed on your system:
13+
Before you begin, you must have the Flutter SDK installed and configured for web development. To ensure you are using the most up-to-date and accurate installation instructions, we recommend following the official guide directly from the Flutter team.
1414

15-
- **Flutter SDK:** Version `3.8.0` or higher. Make sure you have configured it for web development by running `flutter config --enable-web`.
15+
- **Flutter SDK:** Please follow the [Official Flutter Installation Guide](https://flutter.dev/docs/get-started/install) for your specific operating system.
16+
17+
Once installed, enable web development support by running:
18+
```bash
19+
flutter config --enable-web
20+
```
1621

1722
2. **Clone the Repository**
1823

@@ -38,7 +43,7 @@ This guide will walk you through setting up and running the Flutter News App Web
3843
- Open the file `lib/main.dart`.
3944
- Locate the `appEnvironment` constant.
4045
- Set its value to one of the following:
41-
- `AppEnvironment.demo`: Runs the dashboard with in-memory mock data. No backend API is required. This is great for testing UI components.
46+
- `AppEnvironment.demo`: **(Recommended for UI development)** Runs the dashboard with in-memory mock data. No backend API is required, making it perfect for focusing on UI changes and component testing.
4247
- `AppEnvironment.development`: Connects the dashboard to a locally running instance of the API server (typically at `http://localhost:8080`).
4348
- `AppEnvironment.production`: Connects the dashboard to your live, deployed backend API.
4449

@@ -50,7 +55,7 @@ This guide will walk you through setting up and running the Flutter News App Web
5055
```
5156

5257
<Aside>
53-
For the `development` environment, you must have the [API Server running locally](/docs/getting-started/local-setup-api) first.
58+
For the `development` environment, you must have the [API Server running locally](/docs/api-server/local-setup/) first.
5459
</Aside>
5560

5661
5. **Run the Development Server**

0 commit comments

Comments
 (0)