Skip to content

Commit 373a8da

Browse files
authored
Update flutter-app.md (#3653)
1 parent defbbe3 commit 373a8da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/tutorials/control/flutter-app.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ class _HomeScreenState extends State<HomeScreen> {
374374

375375
Notice in the file the following line:
376376

377-
```dart {class="line-numbers linkable-line-numbers"}
377+
```dart {class="line-numbers linkable-line-numbers" data-start="28"}
378378
_viam = await Viam.withApiKey(dotenv.env['API_KEY_ID']?? '', dotenv.env['API_KEY']?? '');
379379
```
380380

@@ -463,7 +463,7 @@ import 'home_screen.dart';
463463

464464
Change `ElevatedButton` in the `Column` to the following:
465465

466-
```dart {class="line-numbers linkable-line-numbers"}
466+
```dart {class="line-numbers linkable-line-numbers" data-start="35"}
467467
ElevatedButton(
468468
onPressed: () => Navigator.of(context)
469469
.push(MaterialPageRoute(builder: (_) => HomeScreen())),
@@ -673,7 +673,7 @@ Now that you have the code for the screens in place, you can enable navigation b
673673

674674
Connect the home screen to the locations screen by un-commenting the following two lines in <file>home_screen.dart</file>:
675675

676-
```dart {class="line-numbers linkable-line-numbers" data-line="3-4"}
676+
```dart {class="line-numbers linkable-line-numbers" data-line="3-4" data-start="42"}
677677
/// This method will navigate to a specific [Location]. <-- Leave this commented!
678678
void _navigateToLocation(Location location) {
679679
Navigator.of(context) // <-- Un-comment this

0 commit comments

Comments
 (0)