I recently upgraded Flutter to 2.0 and migrated to null safety.
My code is as follows
...
import 'package:auto_route/auto_route.dart';
import 'package:metv/presentation/routes/router.gr.dart' as app_router;
child: MaterialApp(
title: 'Notes',
themeMode: darkMode ? ThemeMode.dark : ThemeMode.light,
theme: Themes().themeLight,
darkTheme: Themes().themeDark,
debugShowCheckedModeBanner: false,
builder: ExtendedNavigator.builder<app_router.Router>(
router: app_router.Router(),
),
),
I am now getting the following error message in the
<app_router.Router> line of code.
'Router' doesn't extend 'RouterBase'. Try using a type that is or is a subclass of 'RouterBase'.
I am not sure what needs to replace the broken code. Any help would be appreciated.
Thanks