Full restart takes to the main.dart file after recent update.
See original GitHub issueThis issue started happening after I updated my Android Studio today.
Steps to Reproduce
- Besides a regular
main.dart
file, create a new file sayhome.dart
, and keep your cursor in that file. - Do a full restart, you’ll find the cursor is taken to the
main.dart
file.
Screenshot:
Version info
[✓] Flutter (Channel dev, 1.25.0-8.0.pre, on Mac OS X 10.15.7 19H2 darwin-x64, locale en-US)
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
[✓] Xcode - develop for iOS and macOS (Xcode 12.3)
[✓] Chrome - develop for the web
[✓] Android Studio (version 4.1)
[✓] IntelliJ IDEA Community Edition (version 2020.3.2)
[✓] VS Code (version 1.49.0)
Issue Analytics
- State:
- Created 3 years ago
- Reactions:5
- Comments:22 (10 by maintainers)
Top Results From Across the Web
How to force a Flutter application restart (in production mode)?
import 'package:flutter/material.dart'; void main() { runApp( RestartWidget( ... This will update some dependencies in pubspec.yaml file.
Read more >Hot reload - Flutter documentation
Hot reload works by injecting updated source code files into the running Dart Virtual Machine (VM). After the VM updates classes with the...
Read more >Understanding Flutter hot reload and hot restart the simplest way
Hot reload works by injecting updated source code files into the running Dart Virtual Machine (VM). After the VM updates classes with the...
Read more >Difference Between Hot Reload and Hot Restart in Flutter
When Hot Reload is invoked, the host machine checks the edited code since the last compilation and recompiles that again. Hot Restart takes...
Read more >Dart | IntelliJ IDEA Documentation - JetBrains
Create a Dart project from a Stagehand template · Select File | New | Project from the main menu or click the New...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Sorry about this. The devtools fix has landed and a new version of devtools has been published (0.9.7+3). If you have intellij open, you will need to close your project and reopen it to get the fix.
It looks like the Flutter Inspector tab is selecting the app’s main widget after a restart, and that that is changing the file and selection of the active editor.