Skip to content

A test that creates StretchingOverscrollIndicator with a null child fails with 'Null check operator used on a null value' #182498

Description

@ahmedsameha1

Steps to reproduce

Put the following test at the end of the main function in: packages/flutter/test/widgets/overscroll_indicator_test.dart. Then run flutter test --verbose packages/flutter/test/widgets/overscroll_indicator_test.dart

testWidgets('StretchingOverscrollIndicator does not crash when child is null', (
    WidgetTester tester,
  ) async {
    await tester.pumpWidget(
      const Directionality(
        textDirection: TextDirection.ltr,
        child: StretchingOverscrollIndicator(axisDirection: AxisDirection.down),
      ),
    );
  });

Expected results

I think that the test should pass.

Actual results

The test fails with: 'Null check operator used on a null value'

Code sample

Code sample
testWidgets('StretchingOverscrollIndicator does not crash when child is null', (
    WidgetTester tester,
  ) async {
    await tester.pumpWidget(
      const Directionality(
        textDirection: TextDirection.ltr,
        child: StretchingOverscrollIndicator(axisDirection: AxisDirection.down),
      ),
    );
  });

Screenshots or Video

Screenshots / Video demonstration

[Upload media here]

Logs

Logs
Building flutter tool...
Resolving dependencies... (2.1s)
Downloading packages... 
Got dependencies.
[  +41 ms] executing: uname -m
[  +10 ms] Exit code 0 from: uname -m
[   +1 ms] x86_64
[  +20 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update.
[        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[  +20 ms] Found 1 files which will be executed as Widget Tests.
[   +5 ms] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'FlutterEngineStamp' is not required, skipping update.
[        ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update.
[   +2 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[  +43 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[        ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[        ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[        ] Artifact Instance of 'FlutterEngineStamp' is not required, skipping update.
[        ] Artifact Instance of 'LegacyCanvasKitRemover' is not required, skipping update.
[        ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[        ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[        ] Artifact Instance of 'PubDependencies' is not required, skipping update.
[  +20 ms] executing: [/mnt/old_home/ahmed/flutter/] /mnt/old_home/ahmed/flutter/bin/cache/dart-sdk/bin/dart pub --suppress-analytics --color --directory . get --example
Resolving dependencies... 
Downloading packages... 
  _fe_analyzer_shared 92.0.0 (94.0.0 available)
  adaptive_breakpoints 0.1.7 (discontinued)
  analyzer 9.0.0 (10.0.2 available)
  archive 3.6.1 (4.0.9 available)
  dart_style 3.1.3 (3.1.5 available)
  device_info 2.0.3 (discontinued replaced by device_info_plus)
  gcloud 0.8.19 (0.9.0 available)
  google_fonts 6.3.3 (8.0.1 available)
  google_mobile_ads 5.1.0 (7.0.0 available)
  googleapis 14.0.0 (16.0.0 available)
  isolate 2.1.1 (discontinued)
  js 0.7.2 (discontinued)
  meta 1.18.0 (1.18.1 available)
  objective_c 9.2.3 (9.3.0 available)
  pedantic 1.11.1 (discontinued replaced by lints)
  petitparser 7.0.1 (7.0.2 available)
  url_launcher_ios 6.4.0 (6.4.1 available)
  webview_flutter 4.9.0 (4.13.1 available)
  webview_flutter_android 3.16.9 (4.10.11 available)
Got dependencies!
5 packages are discontinued.
14 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
[ +949 ms] Found plugin webview_flutter_wkwebview at /home/ahmed/.pub-cache/hosted/pub.dev/webview_flutter_wkwebview-3.23.6/
[  +64 ms] Found plugin webview_flutter_android at /home/ahmed/.pub-cache/hosted/pub.dev/webview_flutter_android-3.16.9/
[  +12 ms] Found plugin webview_flutter at /home/ahmed/.pub-cache/hosted/pub.dev/webview_flutter-4.9.0/
[  +33 ms] Found plugin video_player_web at /home/ahmed/.pub-cache/hosted/pub.dev/video_player_web-2.4.0/
[  +11 ms] Found plugin video_player_avfoundation at /home/ahmed/.pub-cache/hosted/pub.dev/video_player_avfoundation-2.9.3/
[   +4 ms] Found plugin video_player_android at /home/ahmed/.pub-cache/hosted/pub.dev/video_player_android-2.9.1/
[   +8 ms] Found plugin video_player at /home/ahmed/.pub-cache/hosted/pub.dev/video_player-2.10.1/
[  +12 ms] Found plugin url_launcher_windows at /home/ahmed/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.5/
[  +20 ms] Found plugin url_launcher_web at /home/ahmed/.pub-cache/hosted/pub.dev/url_launcher_web-2.4.2/
[   +5 ms] Found plugin url_launcher_macos at /home/ahmed/.pub-cache/hosted/pub.dev/url_launcher_macos-3.2.5/
[   +2 ms] Found plugin url_launcher_linux at /home/ahmed/.pub-cache/hosted/pub.dev/url_launcher_linux-3.2.2/
[   +4 ms] Found plugin url_launcher_ios at /home/ahmed/.pub-cache/hosted/pub.dev/url_launcher_ios-6.4.0/
[   +2 ms] Found plugin url_launcher_android at /home/ahmed/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.28/
[   +2 ms] Found plugin url_launcher at /home/ahmed/.pub-cache/hosted/pub.dev/url_launcher-6.3.2/
[  +80 ms] Found plugin path_provider_windows at /home/ahmed/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/
[   +4 ms] Found plugin path_provider_linux at /home/ahmed/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/
[   +3 ms] Found plugin path_provider_foundation at /home/ahmed/.pub-cache/hosted/pub.dev/path_provider_foundation-2.6.0/
[  +13 ms] Found plugin path_provider_android at /home/ahmed/.pub-cache/hosted/pub.dev/path_provider_android-2.2.22/
[   +3 ms] Found plugin path_provider at /home/ahmed/.pub-cache/hosted/pub.dev/path_provider-2.1.5/
[  +74 ms] Found plugin google_mobile_ads at /home/ahmed/.pub-cache/hosted/pub.dev/google_mobile_ads-5.1.0/
[  +23 ms] Found plugin device_info at /home/ahmed/.pub-cache/hosted/pub.dev/device_info-2.0.3/
[ +158 ms] Found plugin webview_flutter_wkwebview at /home/ahmed/.pub-cache/hosted/pub.dev/webview_flutter_wkwebview-3.23.6/
[  +14 ms] Found plugin webview_flutter_android at /home/ahmed/.pub-cache/hosted/pub.dev/webview_flutter_android-3.16.9/
[   +1 ms] Found plugin webview_flutter at /home/ahmed/.pub-cache/hosted/pub.dev/webview_flutter-4.9.0/
[  +12 ms] Found plugin video_player_web at /home/ahmed/.pub-cache/hosted/pub.dev/video_player_web-2.4.0/
[   +3 ms] Found plugin video_player_avfoundation at /home/ahmed/.pub-cache/hosted/pub.dev/video_player_avfoundation-2.9.3/
[   +4 ms] Found plugin video_player_android at /home/ahmed/.pub-cache/hosted/pub.dev/video_player_android-2.9.1/
[   +6 ms] Found plugin video_player at /home/ahmed/.pub-cache/hosted/pub.dev/video_player-2.10.1/
[   +5 ms] Found plugin url_launcher_windows at /home/ahmed/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.5/
[  +10 ms] Found plugin url_launcher_web at /home/ahmed/.pub-cache/hosted/pub.dev/url_launcher_web-2.4.2/
[   +1 ms] Found plugin url_launcher_macos at /home/ahmed/.pub-cache/hosted/pub.dev/url_launcher_macos-3.2.5/
[   +1 ms] Found plugin url_launcher_linux at /home/ahmed/.pub-cache/hosted/pub.dev/url_launcher_linux-3.2.2/
[   +2 ms] Found plugin url_launcher_ios at /home/ahmed/.pub-cache/hosted/pub.dev/url_launcher_ios-6.4.0/
[   +1 ms] Found plugin url_launcher_android at /home/ahmed/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.28/
[   +1 ms] Found plugin url_launcher at /home/ahmed/.pub-cache/hosted/pub.dev/url_launcher-6.3.2/
[  +34 ms] Found plugin path_provider_windows at /home/ahmed/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/
[   +9 ms] Found plugin path_provider_linux at /home/ahmed/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/
[   +1 ms] Found plugin path_provider_foundation at /home/ahmed/.pub-cache/hosted/pub.dev/path_provider_foundation-2.6.0/
[   +8 ms] Found plugin path_provider_android at /home/ahmed/.pub-cache/hosted/pub.dev/path_provider_android-2.2.22/
[   +3 ms] Found plugin path_provider at /home/ahmed/.pub-cache/hosted/pub.dev/path_provider-2.1.5/
[  +22 ms] Found plugin google_mobile_ads at /home/ahmed/.pub-cache/hosted/pub.dev/google_mobile_ads-5.1.0/
[   +8 ms] Found plugin device_info at /home/ahmed/.pub-cache/hosted/pub.dev/device_info-2.0.3/
[ +212 ms] Building native assets for linux_x64.
[ +185 ms] Recompiling /home/ahmed/.pub-cache/hosted/pub.dev/objective_c-9.2.3/hook/build.dart. File contents changed: /mnt/old_home/ahmed/flutter/.dart_tool/package_config.json.
[  +12 ms] Running `/mnt/old_home/ahmed/flutter/bin/cache/dart-sdk/bin/dart compile kernel --packages=/mnt/old_home/ahmed/flutter/.dart_tool/package_config.json
--output=/mnt/old_home/ahmed/flutter/.dart_tool/hooks_runner/objective_c/6b4ebf10e7/hook.dill --depfile=/mnt/old_home/ahmed/flutter/.dart_tool/hooks_runner/objective_c/6b4ebf10e7/hook.dill.d
/home/ahmed/.pub-cache/hosted/pub.dev/objective_c-9.2.3/hook/build.dart`.
[+2182 ms] Rerunning build for objective_c in /mnt/old_home/ahmed/flutter/.dart_tool/hooks_runner/objective_c/6b4ebf10e7/. Hook Dart sources and
/mnt/old_home/ahmed/flutter/.dart_tool/hooks_runner/objective_c/6b4ebf10e7/hook.dill
[   +3 ms] input.json contents:
           {
             "assets": {},
             "config": {
               "build_asset_types": [
                 "code_assets/code"
               ],
               "extensions": {
                 "code_assets": {
                   "link_mode_preference": "dynamic",
                   "target_architecture": "x64",
                   "target_os": "linux"
                 }
               },
               "linking_enabled": false
             },
             "out_dir_shared": "/mnt/old_home/ahmed/flutter/.dart_tool/hooks_runner/shared/objective_c/build/",
             "out_file": "/mnt/old_home/ahmed/flutter/.dart_tool/hooks_runner/objective_c/6b4ebf10e7/output.json",
             "package_name": "objective_c",
             "package_root": "/home/ahmed/.pub-cache/hosted/pub.dev/objective_c-9.2.3/",
             "user_defines": {}
           }
[   +6 ms] Running `(cd /home/ahmed/.pub-cache/hosted/pub.dev/objective_c-9.2.3/; HOME=/home/ahmed
PATH=/home/ahmed/.nvm/versions/node/v24.11.1/bin:/opt/chromedriver/linux-142.0.7444.162/chromedriver-linux64:/opt/flutter/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:
/usr/local/games:/snap/bin:/usr/local/go/bin /mnt/old_home/ahmed/flutter/bin/cache/dart-sdk/bin/dart --packages=/mnt/old_home/ahmed/flutter/.dart_tool/package_config.json
/mnt/old_home/ahmed/flutter/.dart_tool/hooks_runner/objective_c/6b4ebf10e7/hook.dill --config=/mnt/old_home/ahmed/flutter/.dart_tool/hooks_runner/objective_c/6b4ebf10e7/input.json )`.
[ +185 ms] output.json contents:
                    {
                      "assets_for_linking": {},
                      "status": "success",
                      "timestamp": "2026-02-17 18:54:27.000"
                    }
[  +41 ms] Building native assets for linux_x64 done.
[   +8 ms] Writing native assets json to file:///mnt/old_home/ahmed/flutter/build/native_assets/linux/native_assets.json.
[   +1 ms] Writing /mnt/old_home/ahmed/flutter/build/native_assets/linux/native_assets.json done.
[ +403 ms] running test package with arguments: [--chain-stack-traces, --, file:///mnt/old_home/ahmed/flutter/packages/flutter/test/widgets/overscroll_indicator_test.dart?]
00:00 +0: loading /mnt/old_home/ahmed/flutter/packages/flutter/test/widgets/overscroll_indicator_test.dart                                                                                           [ +218 ms] test 0: starting test /mnt/old_home/ahmed/flutter/packages/flutter/test/widgets/overscroll_indicator_test.dart
[   +4 ms] Discovered flutter_test_config.dart in /mnt/old_home/ahmed/flutter/packages/flutter/test
[   +3 ms] Compiler will use the following file as its incremental dill file: /tmp/flutter_tools.CQPSOK/flutter_test_compiler.UQBZKE/output.dill
[        ] Listening to compiler controller...
[   +8 ms] Compiling file:///tmp/flutter_tools.CQPSOK/flutter_test_listener.XSGNFO/listener.dart
[  +30 ms] Found plugin webview_flutter_wkwebview at /home/ahmed/.pub-cache/hosted/pub.dev/webview_flutter_wkwebview-3.23.6/
[   +4 ms] Found plugin webview_flutter_android at /home/ahmed/.pub-cache/hosted/pub.dev/webview_flutter_android-3.16.9/
[        ] Found plugin webview_flutter at /home/ahmed/.pub-cache/hosted/pub.dev/webview_flutter-4.9.0/
[   +4 ms] Found plugin video_player_web at /home/ahmed/.pub-cache/hosted/pub.dev/video_player_web-2.4.0/
[   +1 ms] Found plugin video_player_avfoundation at /home/ahmed/.pub-cache/hosted/pub.dev/video_player_avfoundation-2.9.3/
[        ] Found plugin video_player_android at /home/ahmed/.pub-cache/hosted/pub.dev/video_player_android-2.9.1/
[        ] Found plugin video_player at /home/ahmed/.pub-cache/hosted/pub.dev/video_player-2.10.1/
[   +1 ms] Found plugin url_launcher_windows at /home/ahmed/.pub-cache/hosted/pub.dev/url_launcher_windows-3.1.5/
[   +1 ms] Found plugin url_launcher_web at /home/ahmed/.pub-cache/hosted/pub.dev/url_launcher_web-2.4.2/
[        ] Found plugin url_launcher_macos at /home/ahmed/.pub-cache/hosted/pub.dev/url_launcher_macos-3.2.5/
[        ] Found plugin url_launcher_linux at /home/ahmed/.pub-cache/hosted/pub.dev/url_launcher_linux-3.2.2/
[        ] Found plugin url_launcher_ios at /home/ahmed/.pub-cache/hosted/pub.dev/url_launcher_ios-6.4.0/
[        ] Found plugin url_launcher_android at /home/ahmed/.pub-cache/hosted/pub.dev/url_launcher_android-6.3.28/
[        ] Found plugin url_launcher at /home/ahmed/.pub-cache/hosted/pub.dev/url_launcher-6.3.2/
[  +15 ms] Found plugin path_provider_windows at /home/ahmed/.pub-cache/hosted/pub.dev/path_provider_windows-2.3.0/
[   +1 ms] Found plugin path_provider_linux at /home/ahmed/.pub-cache/hosted/pub.dev/path_provider_linux-2.2.1/
[        ] Found plugin path_provider_foundation at /home/ahmed/.pub-cache/hosted/pub.dev/path_provider_foundation-2.6.0/
[   +3 ms] Found plugin path_provider_android at /home/ahmed/.pub-cache/hosted/pub.dev/path_provider_android-2.2.22/
[        ] Found plugin path_provider at /home/ahmed/.pub-cache/hosted/pub.dev/path_provider-2.1.5/
[  +11 ms] Found plugin google_mobile_ads at /home/ahmed/.pub-cache/hosted/pub.dev/google_mobile_ads-5.1.0/
[   +5 ms] Found plugin device_info at /home/ahmed/.pub-cache/hosted/pub.dev/device_info-2.0.3/
[  +22 ms] Skipping generating dart_plugin_registrant.dart because it is up-to-date.
[   +4 ms] /mnt/old_home/ahmed/flutter/bin/cache/dart-sdk/bin/dartaotruntime /mnt/old_home/ahmed/flutter/bin/cache/dart-sdk/bin/snapshots/frontend_server_aot.dart.snapshot --sdk-root
/mnt/old_home/ahmed/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --no-print-incremental-dependencies --target=flutter --experimental-emit-debug-metadata
-DFLUTTER_VERSION=3.41.0-1.0.pre-634 -DFLUTTER_CHANNEL=master -DFLUTTER_GIT_URL=git@github.com:ahmedsameha1/flutter.git -DFLUTTER_FRAMEWORK_REVISION=c6f03f193f -DFLUTTER_ENGINE_REVISION=9fa7f81be0
-DFLUTTER_DART_VERSION=3.12.0 (build 3.12.0-154.0.dev) --output-dill /tmp/flutter_tools.CQPSOK/flutter_test_compiler.UQBZKE/output.dill --packages
/mnt/old_home/ahmed/flutter/.dart_tool/package_config.json -Ddart.vm.profile=false -Ddart.vm.product=false --enable-asserts --track-widget-creation --initialize-from-dill
/mnt/old_home/ahmed/flutter/build/test_cache/build/6809b5c5ebac8dd2dac417951c7cd04e.cache.dill.track.dill --verbosity=error --enable-experiment=alternative-invalidation-strategy
[  +21 ms] <- compile file:///tmp/flutter_tools.CQPSOK/flutter_test_listener.XSGNFO/listener.dart
00:09 +0: loading /mnt/old_home/ahmed/flutter/packages/flutter/test/widgets/overscroll_indicator_test.dart                                                                                           [+9739 ms] <- accept
[        ] <- reset
[        ] Compiling file:///tmp/flutter_tools.CQPSOK/flutter_test_listener.XSGNFO/listener.dart took 9877ms
[   +3 ms] test 0: starting test device
[   +6 ms] test 0: awaiting connection to test device
[   +1 ms] test 0: VM Service uri is not available
[   +2 ms] test 0: test harness socket server is running at port:33119
[   +1 ms] Using this directory for fonts configuration: /tmp/flutter_tools.CQPSOK/flutter_test_fonts.CDSUXA
[        ] test 0: Starting flutter_tester process with command=[/mnt/old_home/ahmed/flutter/bin/cache/artifacts/engine/linux-x64/flutter_tester, --disable-vm-service, --enable-checked-mode,
--verify-entry-points, --enable-software-rendering, --skia-deterministic-rendering, --enable-dart-profiling, --non-interactive, --use-test-fonts, --disable-asset-fonts,
--packages=/mnt/old_home/ahmed/flutter/.dart_tool/package_config.json, --flutter-assets-dir=/mnt/old_home/ahmed/flutter/build/unit_test_assets,
/tmp/flutter_tools.CQPSOK/flutter_test_listener.XSGNFO/listener.dart.dill], environment={FLUTTER_TEST: true, FONTCONFIG_FILE: /tmp/flutter_tools.CQPSOK/flutter_test_fonts.CDSUXA/fonts.conf,
SERVER_PORT: 33119, APP_NAME: _flutter_packages, UNIT_TEST_ASSETS: /mnt/old_home/ahmed/flutter/build/unit_test_assets}
[  +13 ms] test 0: Started flutter_tester process at pid 7902
00:10 +0: loading /mnt/old_home/ahmed/flutter/packages/flutter/test/widgets/overscroll_indicator_test.dart                                                                                           [ +423 ms] test 0: connected to test device, now awaiting test result
[   +8 ms] test 0: Waiting for test harness or tests to finish
00:12 +18: StretchingOverscrollIndicator does not crash when child is null                                                                                                                           
══╡ EXCEPTION CAUGHT BY WIDGETS LIBRARY ╞═══════════════════════════════════════════════════════════
The following _TypeError was thrown building AnimatedBuilder(listenable: _StretchController(),
dirty, dependencies: [MediaQuery], state: _AnimatedState#21f05):
Null check operator used on a null value

When the exception was thrown, this was the stack:
#0      _StretchingOverscrollIndicatorState.build.<anonymous closure> (package:flutter/src/widgets/overscroll_indicator.dart:819:32)
#1      ListenableBuilder.build (package:flutter/src/widgets/transitions.dart:1173:48)
#2      _AnimatedState.build (package:flutter/src/widgets/transitions.dart:139:48)
#3      StatefulElement.build (package:flutter/src/widgets/framework.dart:5931:27)
#4      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5817:15)
#5      StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5982:11)
#6      Element.rebuild (package:flutter/src/widgets/framework.dart:5529:7)
#7      ComponentElement._firstBuild (package:flutter/src/widgets/framework.dart:5799:5)
#8      StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:5973:11)
#9      ComponentElement.mount (package:flutter/src/widgets/framework.dart:5793:5)
...     Normal element mounting (21 frames)
#30     Element.inflateWidget (package:flutter/src/widgets/framework.dart:4587:20)
#31     Element.updateChild (package:flutter/src/widgets/framework.dart:4053:20)
#32     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5841:16)
#33     Element.rebuild (package:flutter/src/widgets/framework.dart:5529:7)
#34     ProxyElement.update (package:flutter/src/widgets/framework.dart:6149:5)
#35     _InheritedNotifierElement.update (package:flutter/src/widgets/inherited_notifier.dart:108:11)
#36     Element.updateChild (package:flutter/src/widgets/framework.dart:4037:15)
#37     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5841:16)
#38     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5982:11)
#39     Element.rebuild (package:flutter/src/widgets/framework.dart:5529:7)
#40     StatefulElement.update (package:flutter/src/widgets/framework.dart:6007:5)
#41     Element.updateChild (package:flutter/src/widgets/framework.dart:4037:15)
#42     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5841:16)
#43     Element.rebuild (package:flutter/src/widgets/framework.dart:5529:7)
#44     ProxyElement.update (package:flutter/src/widgets/framework.dart:6149:5)
#45     _InheritedNotifierElement.update (package:flutter/src/widgets/inherited_notifier.dart:108:11)
#46     Element.updateChild (package:flutter/src/widgets/framework.dart:4037:15)
#47     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5841:16)
#48     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5982:11)
#49     Element.rebuild (package:flutter/src/widgets/framework.dart:5529:7)
#50     StatefulElement.update (package:flutter/src/widgets/framework.dart:6007:5)
#51     Element.updateChild (package:flutter/src/widgets/framework.dart:4037:15)
#52     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5841:16)
#53     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5982:11)
#54     Element.rebuild (package:flutter/src/widgets/framework.dart:5529:7)
#55     StatefulElement.update (package:flutter/src/widgets/framework.dart:6007:5)
#56     Element.updateChild (package:flutter/src/widgets/framework.dart:4037:15)
#57     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5841:16)
#58     Element.rebuild (package:flutter/src/widgets/framework.dart:5529:7)
#59     ProxyElement.update (package:flutter/src/widgets/framework.dart:6149:5)
#60     Element.updateChild (package:flutter/src/widgets/framework.dart:4037:15)
#61     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5841:16)
#62     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5982:11)
#63     Element.rebuild (package:flutter/src/widgets/framework.dart:5529:7)
#64     StatefulElement.update (package:flutter/src/widgets/framework.dart:6007:5)
#65     Element.updateChild (package:flutter/src/widgets/framework.dart:4037:15)
#66     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5841:16)
#67     Element.rebuild (package:flutter/src/widgets/framework.dart:5529:7)
#68     ProxyElement.update (package:flutter/src/widgets/framework.dart:6149:5)
#69     Element.updateChild (package:flutter/src/widgets/framework.dart:4037:15)
#70     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5841:16)
#71     Element.rebuild (package:flutter/src/widgets/framework.dart:5529:7)
#72     ProxyElement.update (package:flutter/src/widgets/framework.dart:6149:5)
#73     Element.updateChild (package:flutter/src/widgets/framework.dart:4037:15)
#74     _RawViewElement._updateChild (package:flutter/src/widgets/view.dart:481:16)
#75     _RawViewElement.update (package:flutter/src/widgets/view.dart:568:5)
#76     Element.updateChild (package:flutter/src/widgets/framework.dart:4037:15)
#77     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5841:16)
#78     Element.rebuild (package:flutter/src/widgets/framework.dart:5529:7)
#79     StatelessElement.update (package:flutter/src/widgets/framework.dart:5895:5)
#80     Element.updateChild (package:flutter/src/widgets/framework.dart:4037:15)
#81     ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:5841:16)
#82     StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:5982:11)
#83     Element.rebuild (package:flutter/src/widgets/framework.dart:5529:7)
#84     StatefulElement.update (package:flutter/src/widgets/framework.dart:6007:5)
#85     Element.updateChild (package:flutter/src/widgets/framework.dart:4037:15)
#86     RootElement._rebuild (package:flutter/src/widgets/binding.dart:1995:16)
#87     RootElement.update (package:flutter/src/widgets/binding.dart:1973:5)
#88     RootElement.performRebuild (package:flutter/src/widgets/binding.dart:1987:7)
#89     Element.rebuild (package:flutter/src/widgets/framework.dart:5529:7)
#90     BuildScope._tryRebuild (package:flutter/src/widgets/framework.dart:2750:15)
#91     BuildScope._flushDirtyElements (package:flutter/src/widgets/framework.dart:2807:11)
#92     BuildOwner.buildScope (package:flutter/src/widgets/framework.dart:3111:18)
#93     AutomatedTestWidgetsFlutterBinding.drawFrame (package:flutter_test/src/binding.dart:2279:19)
#94     RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:495:5)
#95     SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1430:15)
#96     SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:1345:9)
#97     AutomatedTestWidgetsFlutterBinding.pump.<anonymous closure> (package:flutter_test/src/binding.dart:2108:9)
#100    TestAsyncUtils.guard (package:flutter_test/src/test_async_utils.dart:74:41)
#101    AutomatedTestWidgetsFlutterBinding.pump (package:flutter_test/src/binding.dart:2097:27)
#102    WidgetTester.pumpWidget.<anonymous closure> (package:flutter_test/src/widget_tester.dart:598:22)
#105    TestAsyncUtils.guard (package:flutter_test/src/test_async_utils.dart:74:41)
#106    WidgetTester.pumpWidget (package:flutter_test/src/widget_tester.dart:595:27)
#107    main.<anonymous closure> (file:///mnt/old_home/ahmed/flutter/packages/flutter/test/widgets/overscroll_indicator_test.dart:776:18)
#108    testWidgets.<anonymous closure>.<anonymous closure> (package:flutter_test/src/widget_tester.dart:192:29)
<asynchronous suspension>
#109    TestWidgetsFlutterBinding._runTestBody (package:flutter_test/src/binding.dart:1800:5)
<asynchronous suspension>
<asynchronous suspension>
(elided 5 frames from dart:async and package:stack_trace)

════════════════════════════════════════════════════════════════════════════════════════════════════
00:12 +18 -1: StretchingOverscrollIndicator does not crash when child is null [E]                                                                                                                    
  Test failed. See exception logs above.
  The test description was: StretchingOverscrollIndicator does not crash when child is null
  

To run this test again: /mnt/old_home/ahmed/flutter/bin/cache/dart-sdk/bin/dart test /mnt/old_home/ahmed/flutter/packages/flutter/test/widgets/overscroll_indicator_test.dart -p vm --plain-name 'StretchingOverscrollIndicator does not crash when child is null'
[+2413 ms] test 0: Test harness is no longer needed by test process
[        ] test 0: finished
[   +1 ms] test 0: cleaning up...
[        ] test 0: ensuring test device is terminated.
[        ] test 0: Terminating flutter_tester process
[        ] test 0: Shutting down DevTools server
[        ] test 0: Test process is no longer needed by test harness
[   +1 ms] test 0: Shutting down test harness socket server
[  +11 ms] test 0: flutter_tester process at pid 7902 exited with code=-9
[        ] test 0: deleting temporary directory
[  +10 ms] test 0: finished
00:12 +18 -1: Some tests failed.                                                                                                                                                                     
[   +9 ms] Deleting /tmp/flutter_tools.CQPSOK/flutter_test_compiler.UQBZKE...
[   +6 ms] killing pid 7864
[  +47 ms] Deleting /tmp/flutter_tools.CQPSOK/flutter_test_fonts.CDSUXA...
[   +3 ms] test package returned with exit code 1
[        ] Runtime for phase TestRunner: Wall-clock: 0:00:13.090558; combined: 0:00:13.090614.
[        ] Runtime for phase Compile: Wall-clock: 0:00:09.880216; combined: 0:00:09.880292.
[        ] Runtime for phase Run: Wall-clock: 0:00:02.869331; combined: 0:00:02.869338.
[        ] Runtime for phase CoverageTotal: Wall-clock: 0:00:00.000000; combined: 0:00:00.000000.
[        ] Runtime for phase CoverageCollect: Wall-clock: 0:00:00.000000; combined: 0:00:00.000000.
[        ] Runtime for phase CoverageParseJson: Wall-clock: 0:00:00.000000; combined: 0:00:00.000000.
[        ] Runtime for phase CoverageAddHitmap: Wall-clock: 0:00:00.000000; combined: 0:00:00.000000.
[        ] Runtime for phase CoverageDataCollect: Wall-clock: 0:00:00.000000; combined: 0:00:00.000000.
[        ] Runtime for phase WatcherFinishedTest: Wall-clock: 0:00:00.000671; combined: 0:00:00.000675.
[   +8 ms] "flutter test" took 18,066ms.
[  +26 ms] 
           #0      throwToolExit (package:flutter_tools/src/base/common.dart:34:3)
           #1      TestCommand.runCommand (package:flutter_tools/src/commands/test.dart:727:7)
           <asynchronous suspension>
           #2      FlutterCommand.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command.dart:1592:27)
           <asynchronous suspension>
           #3      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:19)
           <asynchronous suspension>
           #4      CommandRunner.runCommand (package:args/command_runner.dart:212:13)
           <asynchronous suspension>
           #5      FlutterCommandRunner.runCommand.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:496:9)
           <asynchronous suspension>
           #6      AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:19)
           <asynchronous suspension>
           #7      FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:431:5)
           <asynchronous suspension>
           #8      FlutterCommandRunner.run.<anonymous closure> (package:flutter_tools/src/runner/flutter_command_runner.dart:307:33)
           <asynchronous suspension>
           #9      run.<anonymous closure>.<anonymous closure> (package:flutter_tools/runner.dart:104:11)
           <asynchronous suspension>
           #10     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:154:19)
           <asynchronous suspension>
           #11     main (package:flutter_tools/executable.dart:104:3)
           <asynchronous suspension>
           
           
[   +2 ms] Running 3 shutdown hooks
[   +2 ms] Shutdown hooks complete
[ +252 ms] exiting with code 1

Flutter Doctor output

Doctor output
[!] Flutter (Channel master, 3.42.0-1.0.pre-160, on Linux Mint 22.1 6.8.0-100-generic, locale en_US.UTF-8) [6.7s]
    • Flutter version 3.42.0-1.0.pre-160 on channel master at /mnt/old_home/ahmed/flutter
    ! Warning: `flutter` on your path resolves to /opt/flutter/bin/flutter, which is not inside your current Flutter SDK checkout at /mnt/old_home/ahmed/flutter. Consider adding
      /mnt/old_home/ahmed/flutter/bin to the front of your path.
    ! Warning: `dart` on your path resolves to /opt/flutter/bin/dart, which is not inside your current Flutter SDK checkout at /mnt/old_home/ahmed/flutter. Consider adding
      /mnt/old_home/ahmed/flutter/bin to the front of your path.
    ! Upstream repository git@github.com:ahmedsameha1/flutter.git is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to git@github.com:ahmedsameha1/flutter.git to dismiss this error.
    • Framework revision c6f03f193f (7 hours ago), 2026-02-17 11:43:34 +0200
    • Engine revision 9fa7f81be0
    • Dart version 3.12.0 (build 3.12.0-154.0.dev)
    • DevTools version 2.55.0
    • Feature flags: enable-web, enable-linux-desktop, enable-macos-desktop, enable-windows-desktop, enable-android, enable-ios, cli-animations, enable-native-assets, omit-legacy-version-file,
      enable-lldb-debugging, enable-uiscene-migration, enable-riscv64
    • If those were intentional, you can disregard the above warnings; however it is recommended to use "git" directly to perform update checks and upgrades.

[!] Android toolchain - develop for Android devices (Android SDK version 36.1.0) [2.5s]
    • Android SDK at /home/ahmed/Android/Sdk
    • Emulator version 36.2.12.0 (build_id 14214601) (CL:N/A)
    • Platform android-36, build-tools 36.1.0
    • Java binary at: /opt/android-studio/jbr/bin/java
      This is the JDK bundled with the latest Android Studio installation on this machine.
      To manually set the JDK path, use: `flutter config --jdk-dir="path/to/jdk"`.
    • Java version OpenJDK Runtime Environment (build 21.0.8+-14018985-b1038.68)
    ! Some Android licenses not accepted. To resolve this, run: flutter doctor --android-licenses

[✓] Chrome - develop for the web [26ms]
    • Chrome at google-chrome

[✓] Linux toolchain - develop for Linux desktop [489ms]
    • Ubuntu clang version 18.1.3 (1ubuntu1)
    • cmake version 3.28.3
    • ninja version 1.11.1
    • pkg-config version 1.8.1
    • OpenGL core renderer: Mesa Intel(R) HD Graphics 4400 (HSW GT2) (X11)
    • OpenGL core version: 4.6 (Core Profile) Mesa 25.2.8-0ubuntu0.24.04.1 (X11)
    • OpenGL core shading language version: 4.60 (X11)
    • OpenGL ES renderer: Mesa Intel(R) HD Graphics 4400 (HSW GT2) (X11)
    • OpenGL ES version: OpenGL ES 3.2 Mesa 25.2.8-0ubuntu0.24.04.1 (X11)
    • OpenGL ES shading language version: OpenGL ES GLSL ES 3.20 (X11)
    • GL_EXT_framebuffer_blit: yes (X11)
    • GL_EXT_texture_format_BGRA8888: yes (X11)

[✓] Connected device (2 available) [228ms]
    • Linux (desktop) • linux  • linux-x64      • Linux Mint 22.1 6.8.0-100-generic
    • Chrome (web)    • chrome • web-javascript • Google Chrome 145.0.7632.75

[✓] Network resources [701ms]
    • All expected network resources are available.

! Doctor found issues in 2 categories.

Metadata

Metadata

Assignees

Labels

P2Important issues not at the top of the work listf: material designflutter/packages/flutter/material repository.frameworkflutter/packages/flutter repository. See also f: labels.team-frameworkOwned by Framework teamtriaged-frameworkTriaged by Framework team

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions