-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Labels
c: crashStack traces logged to the consoleStack traces logged to the consoled: examplesSample code and demosSample code and demosplatform-webWeb applications specificallyWeb applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.
Description
In VS Code 1.38 with the Flutter plugin installed.
When folllowing Write your first app - Step 4: Creating an infinite scrolling ListView, I saved at step 2 after adding _buildSuggestions and ran flutter run -d chrome. That gave me an (expected) error that _buildRow is not defined:
> flutter run -d chrome
Launching lib/main.dart on Chrome in debug mode...
Building application for the web... 10.8s
Error compiling dartdevc module:flutter_hello|lib/main.ddc.js
packages/flutter_hello/main.dart:43:18: Error: The method '_buildRow' isn't defined for the class 'RandomWordsState'.
- 'RandomWordsState' is from 'package:flutter_hello/main.dart' ('packages/flutter_hello/main.dart').
Try correcting the name to the name of an existing method, or defining a method named '_buildRow'.
return _buildRow(_suggestions[index]);
^^^^^^^^^
AssetNotFoundException: flutter_hello|lib/main.ddc.js
Failed after 279ms
Attempting to connect to browser instance..
(This is taking an unexpectedly long time.) ⣯
Then, I add the _buildRow method described in step 3, save and nothing happens; it's still doing the loading animation. Pressing R also does nothing, so I have to kill the process and run flutter run -d chrome again. After that, the app works like expected.
Metadata
Metadata
Assignees
Labels
c: crashStack traces logged to the consoleStack traces logged to the consoled: examplesSample code and demosSample code and demosplatform-webWeb applications specificallyWeb applications specificallytoolAffects the "flutter" command-line tool. See also t: labels.Affects the "flutter" command-line tool. See also t: labels.