Skip to content

Commit 503f90d

Browse files
committed
docs(README): update app run instructions
- Move running instructions closer to the prerequisite section - Improve formatting and readability of code examples - Maintain note about backend service for development environment
1 parent 471c000 commit 503f90d

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

README.md

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -87,23 +87,21 @@ Get started for free and purchase when you're ready to launch!
8787
```
8888
4. **Run the app:**
8989

90-
### Running the App
90+
To run the app, first select your desired environment in `lib/main.dart`:
9191

92-
To run the app, first select your desired environment in `lib/main.dart`:
92+
```dart
93+
// lib/main.dart
9394
94-
```dart
95-
// lib/main.dart
96-
97-
// Use `AppEnvironment.demo` to run with in-memory data (no API needed).
98-
// Use `AppEnvironment.development` to connect to a local backend API.
99-
const appEnvironment = AppEnvironment.demo;
100-
```
95+
// Use `AppEnvironment.demo` to run with in-memory data (no API needed).
96+
// Use `AppEnvironment.development` to connect to a local backend API.
97+
const appEnvironment = AppEnvironment.demo;
98+
```
10199

102-
Then, run the app from your terminal:
103-
```bash
104-
flutter run -d chrome
105-
```
106-
*(Note: For `development` environment, ensure the [backend service](https://github.com/flutter-news-app-full-source-code/flutter-news-app-api-server-full-source-code) is running.)*
100+
Then, run the app from your terminal:
101+
```bash
102+
flutter run -d chrome
103+
```
104+
*(Note: For `development` environment, ensure the [backend service](https://github.com/flutter-news-app-full-source-code/flutter-news-app-api-server-full-source-code) is running.)*
107105

108106
---
109107

0 commit comments

Comments
 (0)