Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generating a route with generic type isn't supported #2050

Open
WissamALSbenaty opened this issue Sep 5, 2024 · 0 comments
Open

Generating a route with generic type isn't supported #2050

WissamALSbenaty opened this issue Sep 5, 2024 · 0 comments

Comments

@WissamALSbenaty
Copy link

I am trying to do the following example

@RoutePage()
class EditingPage<T extends EditingController > extends StatefulWidget {

  const EditingPage({super.key});

  @override
  State< EditingPage > createState() => EditingPageState();
}

class EditingPage State<T extends EditingController> extends State< EditingPage > {
 late getIt<T>controller =getIt<T>()

when i generate i get an error

class EditingRoute<T> extends PageRouteInfo<void> {const EditingRoute<T>({List<PageRouteInfo>? children}) : super(EditingRoute<T>.name, initialChildren: children, );

is it possible to achieve in current version or its not implement ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant