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
- Move running instructions closer to the prerequisite section
- Improve formatting and readability of code examples
- Maintain note about backend service for development environment
Copy file name to clipboardExpand all lines: README.md
+12-14Lines changed: 12 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -87,23 +87,21 @@ Get started for free and purchase when you're ready to launch!
87
87
```
88
88
4. **Run the app:**
89
89
90
-
### Running the App
90
+
To run the app, first selectyour desired environment in`lib/main.dart`:
91
91
92
-
To run the app, first selectyour desired environment in`lib/main.dart`:
92
+
```dart
93
+
// lib/main.dart
93
94
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
+
```
101
99
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.)*
0 commit comments