Skip to content

Commit ea2a31a

Browse files
authored
Update README.md
Signed-off-by: fulleni <[email protected]>
1 parent 30186fd commit ea2a31a

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

README.md

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,23 +92,22 @@ Get started for free and purchase when you're ready to launch!
9292
```
9393
4. **Run the app:**
9494

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

97-
To run the app, first select your desired environment in `lib/main.dart`:
97+
```dart
98+
// lib/main.dart
9899
99-
```dart
100-
// lib/main.dart
101-
102-
// Use `AppEnvironment.demo` to run with in-memory data (no API needed).
103-
// Use `AppEnvironment.development` to connect to a local backend API.
104-
const appEnvironment = AppEnvironment.demo;
100+
// Use `AppEnvironment.demo` to run with in-memory data (no API needed).
101+
// Use `AppEnvironment.development` to connect to a local backend API.
102+
// Use `AppEnvironment.production` to connect to a live backend API.
103+
const appEnvironment = AppEnvironment.demo;
105104
```
106105

107106
Then, run the app from your terminal:
108107
```bash
109108
flutter run
110109
```
111-
*(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.)*
110+
*(Note: For `development/production` environment, ensure the [backend service](https://github.com/flutter-news-app-full-source-code/flutter-news-app-api-server-full-source-code) is running.)*
112111

113112
---
114113

0 commit comments

Comments
 (0)