Skip to content

[super_context_menu] Scrolling initiated on SuperContextMenu widget causes snappy/jumpy end with no fling animation #583

@Orillio

Description

@Orillio

When a widget wrapped with SuperContextMenu is placed inside a scrollable (ListView, SingleChildScrollView, etc.), scrolling that starts on the wrapped widget ends abruptly when lifting the finger. with no fling/scroll animation triggered.
Scrolling that starts outside the widget works normally.

Video

ScreenRecording_05-21-2026.13-34-29_1.1.mp4

How to reproduce

  1. Run the following sample
  2. Start crolling on "Test" widget
  3. Lift finger while scrolling
  4. Scroll ends with no fling animation
void main() {
  WidgetsFlutterBinding.ensureInitialized();

  runApp(App());
}

class App extends StatelessWidget {
  const App({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        body: Stack(
          fit: StackFit.expand,
          children: [
            SingleChildScrollView(
              physics: AlwaysScrollableScrollPhysics(),
              child: SafeArea(
                child: Column(
                  children: [
                    SizedBox(height: 140),
                    ContextMenuWidget(
                      menuProvider: (request) => Menu(children: []),
                      child: Container(
                        color: Colors.white,
                        padding: EdgeInsets.all(16),
                        child: Row(
                          children: [
                            Text('Test'),
                          ],
                        ),
                      ),
                    ),
                  ],
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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