flutter_stetho
flutter_stetho copied to clipboard
non-abstract class 'StethoHttpClientRequest' is missing implementations for HttpClientRequest.abort
./../Tools/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_stetho-0.5.0/lib/src/http_client_request.dart:10:7: Error: The non-abstract class 'StethoHttpClientRequest' is missing implementations for these members:
- HttpClientRequest.abort
Try to either
- provide an implementation,
- inherit an implementation from a superclass or mixin,
- mark the class as abstract, or
- provide a 'noSuchMethod' implementation.
class StethoHttpClientRequest implements HttpClientRequest {
^^^^^^^^^^^^^^^^^^^^^^^
org-dartlang-sdk:///third_party/dart/sdk/lib/_http/http.dart:2045:8: Context: 'HttpClientRequest.abort' is defined here.
void abort([Object? exception, StackTrace? stackTrace]);
^^^^^
this is for sdk: ">=2.1.0 <3.0.0"
$ flutter doctor -v
[✓] Flutter (Channel dev, 1.22.0-9.0.pre, on Mac OS X 10.15.6 19G2021, locale en-US)
• Flutter version 1.22.0-9.0.pre at XXX
• Framework revision 7a43175198 (6 days ago), 2020-08-28 23:18:04 -0400
• Engine revision 07e2520d5d
• Dart version 2.10.0 (build 2.10.0-73.0.dev)
[✓] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
• Platform android-30, build-tools 29.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 11.7)
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 11.7, Build version 11E801a
• CocoaPods version 1.8.4
[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 42.1.1
• Dart plugin version 191.8593
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
[✓] VS Code (version 1.48.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.13.2
[✓] Connected device (1 available)
• Android SDK built for x86 (mobile) • emulator-5554 • android-x86 • Android 8.1.0 (API 27) (emulator)
• No issues found!
https://github.com/dart-lang/sdk/issues/41904
same here, I'm on dev channel too.
@sgehrman in the meantime you can use my PR if you'd like:
https://github.com/jasonlewicki/flutter_stetho
pubspec.yaml
flutter_stetho:
git:
url: git://github.com/jasonlewicki/flutter_stetho.git
ref: master
there's only one method added: https://github.com/brianegan/flutter_stetho/pull/40/files
Flutter 1.22 is now on stable and breaks flutter_stetho
https://medium.com/flutter/announcing-flutter-1-22-44f146009e5f