0

I am quite new to Flutter and have a problem that I can't figure out how to remove/disable the Scrollglow in my written Code. Any solution I have seen so far did not work for me and i don't know why. Does anyone know how I can do it?

class MyApp extends StatefulWidget {
  const MyApp({super.key});

  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        centerTitle: true,
        title: const Text("Fertigungsrechner"),
        backgroundColor: const Color.fromRGBO(20, 20, 20, 10.0),
      ),
      backgroundColor: const Color.fromRGBO(00, 00, 00, 50),
      body: Container(
        padding: const EdgeInsets.all(0.0), //Abstand Kacheln von Seitenrand
        child: GridView.count(
          crossAxisCount: 2,
          children: <Widget>[
            MyMenu(
              path: "/rpm",
              title: "RPM",
              icon: Icons.abc_rounded,
              warna: Colors.white,
            ),
          ],
        ),
      ),
    );
  }
}
Ken White
  • 123,280
  • 14
  • 225
  • 444
  • 1
    Possible duplicate https://stackoverflow.com/q/51119795/16569443 – Rahul Jan 02 '23 at 01:22
  • 1
    Does this answer your question? [How to remove scroll glow?](https://stackoverflow.com/questions/51119795/how-to-remove-scroll-glow) – Alexander Jan 03 '23 at 08:00

1 Answers1

0

Inside your GridView, add this property

physics: BouncingScrollPhysics()

The scroll glow will disappear.

rrttrr
  • 1,393
  • 1
  • 6
  • 10