Closed Peetee06 closed 2 weeks ago
Update: this only occurs when hot reloading after making the change. After hot restart, everything works fine 👍
Closing this as a duplicate of https://github.com/flutter/flutter/issues/14452.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v
and a minimal reproduction of the issue.
Steps to reproduce
diagonalDragBehavior: DiagonalDragBehavior.weightedContinuous
ordiagonalDragBehavior: DiagonalDragBehavior.weightedEvent
inTableView.builder
Expected results
The view scrolls without throwing an assertion.
Actual results
The view scrolls as expected but throws an assertion the moment the tap starts.
Code sample
Code sample
```dart // Copyright 2013 The Flutter Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. import 'package:flutter/gestures.dart'; import 'package:flutter/material.dart'; import 'package:two_dimensional_scrollables/two_dimensional_scrollables.dart'; // Print statements are only for illustrative purposes, not recommended for // production applications. // ignore_for_file: avoid_print void main() { runApp(const TableExampleApp()); } /// A sample application that utilizes the TableView API. class TableExampleApp extends StatelessWidget { /// Creates an instance of the TableView example app. const TableExampleApp({super.key}); @override Widget build(BuildContext context) { return MaterialApp( title: 'Table Example', theme: ThemeData( useMaterial3: true, ), home: const TableExample(), ); } } /// The class containing the TableView for the sample application. class TableExample extends StatefulWidget { /// Creates a screen that demonstrates the TableView widget. const TableExample({super.key}); @override StateScreenshots or Video
Screenshots / Video demonstration
[Upload media here]Logs
Logs
```console ══╡ EXCEPTION CAUGHT BY GESTURE ╞═══════════════════════════════════════════════════════════════════ The following assertion was thrown while handling a gesture: 'package:flutter/src/widgets/scrollable.dart': Failed assertion: line 822 pos 12: '_hold == null': is not true. Either the assertion indicates an error in the framework itself, or we should provide substantially more information in this error message to help you determine and fix the underlying cause. In either case, please report this assertion by filing a bug on GitHub: https://github.com/flutter/flutter/issues/new?template=2_bug.yml When the exception was thrown, this was the stack: #2 ScrollableState._handleDragDown (package:flutter/src/widgets/scrollable.dart:822:12) #3 _VerticalOuterDimensionState._handleDragDown (package:flutter/src/widgets/scrollable.dart:2127:30) #4 DragGestureRecognizer._checkDown.Flutter Doctor output
Doctor output
```console [✓] Flutter (Channel stable, 3.19.5, on macOS 14.4.1 23E224 darwin-arm64, locale en-DE) • Flutter version 3.19.5 on channel stable at /Users/petertrost/fvm/versions/3.19.5 • Upstream repository https://github.com/flutter/flutter.git • Framework revision 300451adae (4 weeks ago), 2024-03-27 21:54:07 -0500 • Engine revision e76c956498 • Dart version 3.3.3 • DevTools version 2.31.1 [✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0) • Android SDK at /Users/petertrost/Library/Android/sdk • Platform android-34, build-tools 34.0.0 • ANDROID_HOME = /Users/petertrost/Library/Android/sdk • Java binary at: /Applications/Android Studio.app/Contents/jbr/Contents/Home/bin/java • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231) • All Android licenses accepted. [✓] Xcode - develop for iOS and macOS (Xcode 15.3) • Xcode at /Applications/Xcode.app/Contents/Developer • Build 15E204a • CocoaPods version 1.15.2 [✓] Chrome - develop for the web • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome [✓] Android Studio (version 2022.3) • Android Studio at /Applications/Android Studio.app/Contents • Flutter plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/9212-flutter • Dart plugin can be installed from: 🔨 https://plugins.jetbrains.com/plugin/6351-dart • Java version OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231) [✓] VS Code (version 1.88.1) • VS Code at /Applications/Visual Studio Code.app/Contents • Flutter extension version 3.86.0 [✓] Connected device (4 available) • iPhone 11 von Peter (mobile) • 00008030-00096D8E3EDB802E • ios • iOS 17.4.1 21E236 • iPhone 15 (mobile) • F30EE683-7178-4C38-900B-10024CE55715 • ios • com.apple.CoreSimulator.SimRuntime.iOS-17-4 (simulator) • macOS (desktop) • macos • darwin-arm64 • macOS 14.4.1 23E224 darwin-arm64 • Chrome (web) • chrome • web-javascript • Google Chrome 124.0.6367.79 [✓] Network resources • All expected network resources are available. ```