4

Left is what the old material design had which was a glow effect.

Right is what the new material design has which is a stretch effect.

Inside the Material widget, set the theme property to this:

  theme: ThemeData().copyWith(
    useMaterial3: true,
    colorScheme: ColorScheme.fromSeed(
      seedColor: Colors.red,
    ),
  ),

enter image description here

Hama Sabah
  • 342
  • 4
  • 9

1 Answers1

2

Disallowing indicators works for me (glow will also disappear).

NotificationListener<OverscrollIndicatorNotification>(
  onNotification: (OverscrollIndicatorNotification overscroll) {
    overscroll.disallowIndicator();
    return false;
  },
  child: ListView.builder(
   ...
  ),
),

Or try ScrollConfiguration (may require hot restart)

ScrollConfiguration(
  behavior: ScrollBehavior(),
  child: ListView(
    ...
  ),
),

refs:

autodavid
  • 131
  • 2
  • 5