title: The argument type 'Widget?' can't be assigned to the parameter type 'Widget'
body: <p>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.</p>
  <pre><code>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,
            );
          },
        )
      )
  </code></pre>
  <p>The probleme is child: child. I have no idea how to fix this.</p>
  <pre><code>class RemoveScrollGlow extends ScrollBehavior {
    @override
    Widget buildOverscrollIndicator(
      BuildContext context, Widget child, ScrollableDetails details) {
      return child;
    }
  }
  </code></pre>