79183461

Date: 2024-11-13 04:55:31
Score: 0.5
Natty:
Report link

I think there is a scrolling conflict between the CustomScrollView and the WebView. To resolve this, you can disable scrolling in the CustomScrollView by using NeverScrollableScrollPhysics.

@override
Widget build(BuildContext context) {
  return CustomScrollView(
    physics: NeverScrollableScrollPhysics(), // Disables scrolling in CustomScrollView
    slivers: <Widget>[
      SliverAppBar(
        title: const Text("Heading"),
        floating: true,
      ),
      SliverFillRemaining(
        child: WebView(initialUrl: "http://stackoverflow.com"),
      ),
    ],
  );
}
Reasons:
  • Blacklisted phrase (1): stackoverflow
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: K-AnGaMa