fluttercommunity / import_sorter

🎯 Automatically organize your dart imports. Maintainer: @gleich
https://pub.dev/packages/import_sorter
MIT License
170 stars 41 forks source link

Convert project imports to relative imports #62

Open gupta-shrinath opened 2 years ago

gupta-shrinath commented 2 years ago

Closes #59

Question: The example app has the following import but no corresponding dependency import 'package:flutter_gen/gen_l10n/translations.dart';

gleich commented 2 years ago

Hello @gupta-shrinath. Thank you so much for sending in this PR but I am sadly archiving import_sorter (see #63). This means that your work will not be merged into import_sorter. Thank you so much for the effort in trying to improve the project.

vkammerer commented 2 years ago

While I think this feature is useful, it is in my opinion out of the scope of import_sorter. The sole responsibility of this package should be to sort imports, not update them.

@gupta-shrinath would you instead be interested in creating a separate package for this?

I see that someone else already tried to create a solution for this:

gupta-shrinath commented 2 years ago

Thank you @gleich for the package and I understand your situation and I agree with making someone the maintainer as it is a good decision in spirit of open source. Hey @vkammerer thank you for appreciating efforts. I think this feature could be added to this package as the code is heavily dependent on existing code. Regarding making a new package for this feature I think is not worth because as you said there is already a package / tool available.