question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Auto assist method override suggestions, such as initState

See original GitHub issue

When I know there is a method I could override, such as initState, I’d like to start typing in ini and hit control space for suggestions and ask for method override options, and hit enter to write the ast.

Steps to Reproduce

  1. Start typing in ini.
  2. Hit control-space for auto suggestions
  3. Nothing comes up yet.

screen shot 2017-06-18 at 10 30 51 am

Version info

[✓] Flutter (on Mac OS X 10.12.5 16F73, locale en-US, channel master)
    • Flutter at /Users/branflake2267/git/flutter
    • Framework revision 28fd54c116 (35 hours ago), 2017-06-16 23:54:27 -0700
    • Engine revision 784e975672
    • Tools Dart version 1.24.0-dev.6.7

[✓] Android toolchain - develop for Android devices (Android SDK 26.0.0)
    • Android SDK at /Users/branflake2267/Library/Android/sdk
    • Platform android-26, build-tools 26.0.0
    • Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] iOS toolchain - develop for iOS devices (Xcode 8.3.3)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 8.3.3, Build version 8E3004b
    • ios-deploy 1.9.1
    • CocoaPods version 1.2.1

[✓] Android Studio (version 2.3)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Gradle version 3.2
    • Java version OpenJDK Runtime Environment (build 1.8.0_112-release-b06)

[✓] IntelliJ IDEA Community Edition (version 2017.1.4)
    • Flutter plugin version 14.0
    • Dart plugin version 171.4694.29

[✓] IntelliJ IDEA Ultimate Edition (version 2017.1.4)
    • Flutter plugin version 14.0
    • Dart plugin version 171.4694.29

[✓] Connected devices
    • iPhone 7 • 458BC4FE-8205-4369-8718-193B9FC88C8B • ios • iOS 10.3 (simulator)

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:68 (54 by maintainers)

github_iconTop GitHub Comments

3reactions
branflake2267commented, Jun 19, 2017

Yeah, works like that in Eclipse, but it’s the same in Android Studio and IDEA.

Here I’m trying to override my superclass method in Android Studio. Same with IDEA and a Java project. screen shot 2017-06-19 at 5 43 01 am

1reaction
DanTupcommented, Feb 21, 2018

I’ve raise separate issues for these:

dart-lang/sdk#32260 - Override completions have bad selectionOffsets dart-lang/sdk#32259 - Override completions don’t appear if @override is already present

Read more comments on GitHub >

github_iconTop Results From Across the Web

initState() not show in Autosuggetion - android studio
I try to override initState() inside ...
Read more >
Some Widely Used Override Methods in Flutter - ProAndroidDev
All Important Override Methods of Flutter · InitState() · didUpdateWidget() · dispose() · build() · reassemble() · didChangeDependencies() · mount().
Read more >
Introduction to Flutter Hooks - Topcoder
Let's take AnimationController for example. ... AnimationController _controller; @override void initState() { super.initState(); _controller ...
Read more >
Introduction to widgets - Flutter documentation
The central idea is that you build your UI out of widgets. Widgets describe what their view should look like given their current...
Read more >
Flutter Riverpod 2.0: The Ultimate Guide - Code With Andrea
To learn about it, read: How to Auto-Generate your Providers with Flutter ... extends ConsumerWidget { @override // 2. build method has an ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found