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

Feature Request: Add option for relative import #59

Open
SirusCodes opened this issue Aug 27, 2021 · 1 comment · May be fixed by #62
Open

Feature Request: Add option for relative import #59

SirusCodes opened this issue Aug 27, 2021 · 1 comment · May be fixed by #62

Comments

@SirusCodes
Copy link

SirusCodes commented Aug 27, 2021

It would be great if this package can change our absolute imports to relative imports.

Example 1
import 'package:my_app/lib/src/foo.dart'
to
import 'foo.dart'

Example 2

import 'package:my_app/lib/src/p1/foo.dart'
import 'package:my_app/lib/src/p2/foo.dart'

to

import 'p1/foo.dart'
import 'p2/foo.dart'

if imported in src
to

import '../p1/foo.dart'
import 'foo.dart'

if imported in p2

I would like to contribute to this feature but can anyone guide me with this?

@gupta-shrinath gupta-shrinath linked a pull request Oct 31, 2021 that will close this issue
@gleich
Copy link
Member

gleich commented Dec 7, 2021

See #63

@gleich gleich closed this as completed Dec 7, 2021
@gleich gleich reopened this Dec 7, 2021
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

Successfully merging a pull request may close this issue.

2 participants