How to remove scroll glow

0 votes

By default, flutter adds a glowing effect on ListView/GridView/... to overscrolls on android phones

I would like to remove this effect entirely or on one specific scrollable. I know that I can change ScrollPhysics to change between Bounce/Clamp. But this doesn't actually remove the glow effect.

What can I do ?

enter image description here

Mar 28, 2023 in Flutter by Ashwini
• 5,430 points
2,523 views

1 answer to this question.

0 votes

To remove the overscroll glow effect from a ListView/GridView or other scrollable widgets in Flutter, you can use a GlowingOverscrollIndicator widget. This widget is designed to provide a customizable glow effect that appears when the user overscrolls a scrollable widget.

To remove the glow effect, simply wrap your scrollable widget in a GlowingOverscrollIndicator widget and set the showLeading and showTrailing properties to false. Here's an example:

GlowingOverscrollIndicator(
  showLeading: false,
  showTrailing: false,
  child: ListView(
    // your list items here
  ),
),

This will remove the glow effect from the scrollable widget. If you want to remove the effect on a specific scrollable widget, you can wrap that widget in the GlowingOverscrollIndicator instead.

Note that the GlowingOverscrollIndicator is only available for Android. On iOS, the overscroll effect is not displayed by default.

answered Mar 28, 2023 by vinayak

Related Questions In Flutter

0 votes
1 answer

How to change flutter project name and id?

Yes, it is possible to change the ...READ MORE

answered Mar 20, 2023 in Flutter by pooja
2,571 views
0 votes
1 answer

How to change Android minSdkVersion in Flutter Project?

Yes, you can change the minSdkVersion in ...READ MORE

answered Mar 21, 2023 in Flutter by Tej
7,223 views
0 votes
1 answer

How to Determine Screen Height and Width?

To optimize your Flutter application for different ...READ MORE

answered Mar 21, 2023 in Flutter by tan
480 views
0 votes
1 answer

How to implement drop down list in flutter?

You're close! The error you're getting is ...READ MORE

answered Mar 26, 2023 in Flutter by vishalini
2,474 views
0 votes
1 answer

Dart_LoadScriptFromKernel: The binary program does not contain 'main'.

Hi@akhtar, You need to add the main() function ...READ MORE

answered Jul 21, 2020 in Others by MD
• 95,440 points
3,189 views
0 votes
1 answer

How to install Dart in Windows system?

Hi@akhtar, Dart is the programming language used to code Flutter apps. ...READ MORE

answered Jul 21, 2020 in Others by MD
• 95,440 points
761 views
0 votes
1 answer

flutter run: No connected devices

Hi@akhtar, To prepare to run and test your ...READ MORE

answered Jul 21, 2020 in Others by MD
• 95,440 points
3,823 views
0 votes
1 answer

How to create a function in Dart language?

Hi@akhtar, There are many function types available in ...READ MORE

answered Jul 22, 2020 in Others by MD
• 95,440 points
500 views
0 votes
1 answer

How to make a TextField with HintText but no Underline?

You can achieve this by using the ...READ MORE

answered Mar 21, 2023 in Flutter by Anushi
1,340 views
0 votes
1 answer

How to log data to the Flutter console?

To log data to the Flutter console ...READ MORE

answered Mar 27, 2023 in Flutter by anonymous
5,769 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP