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

problem with auto_route package #13

Open
djordje-maslic opened this issue Oct 9, 2020 · 1 comment
Open

problem with auto_route package #13

djordje-maslic opened this issue Oct 9, 2020 · 1 comment

Comments

@djordje-maslic
Copy link

When you upgraded flutter to version 1.22.0. It will be conflict between Router class in library 'package:flutter/src/widgets/router.dart' and the generated file 'router.gr.dart'.

If you are not using the Router class from 'package:flutter/src/widgets/router.dart' in the same file you can hide it while importing material package.

import 'package:flutter/material.dart' hide Router;

@becbelk
Copy link

becbelk commented Jul 23, 2021

you should rename the file and the class with different name ex:AppRouter app_router, because there is a conflicting between the standard class Route of flutter

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

2 participants