Sometimes when I switch branches, the IDE shows errors in Dart files. In Android or iOS dev, I'd do a clean and rebuild. Or a "gradle sync".
I've found that the closest equivalents are flutter doctor
and flutter pub get
. In my issue mentioned above, flutter pub get
fixes it and runs quickly.
Is there a shortcut or button to quickly run this from Android Studio? I know I can type it into terminal, but would love a shortcut.
I've found a few options. Sadly there is no button and I haven't found a plugin that adds one. But I've found the next closest thing.
This will run the command found in Tools -> Flutter -> Flutter Pub Get
Using the same option above, you can use a keymap.
cmd +,
) -> Keymap ctrl + b
)Using the Android Studio plugin Flutter Enhancement Suite .
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.