I wrap the app in a scrollconfiguration to remove the scrollglow. This always worked but it has been quite a time since i used flutter so i created a new project but it gives this error.
ProviderScope(
child: MaterialApp(
title: 'testing',
themeMode: ThemeMode.light,
darkTheme: darkTheme(),
theme: lightTheme(),
onGenerateRoute: RouteGenerator.generateRoute,
initialRoute: '/',
builder: (context, child) {
return ScrollConfiguration(
behavior: RemoveScrollGlow(),
child: child,
);
},
)
)
The probleme is child: child. I have no idea how to fix this.
class RemoveScrollGlow extends ScrollBehavior {
@override
Widget buildOverscrollIndicator(
BuildContext context, Widget child, ScrollableDetails details) {
return child;
}
}