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

Imitate fully qualified imports in live templates #106

Open
eEQK opened this issue Apr 9, 2021 · 0 comments
Open

Imitate fully qualified imports in live templates #106

eEQK opened this issue Apr 9, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@eEQK
Copy link
Contributor

eEQK commented Apr 9, 2021

When evaluating a live template in java you can do this:

private static final org.apache.logging.log4j.Logger logger = org.apache.logging.log4j.LogManager.getLogger($CLASS_NAME$.class);$END$

IDE will add an import statement upon evaluation. So it will essentially become this but with imported dependencies:

private static final Logger logger = LogManager.getLogger($CLASS_NAME$.class);$END$

Unfortunately, in dart we don't have qualified imports, but we could do something simillar:

my_package/my_package.AppNavigator.of(context)

Will become this:

import 'package:my_package/my_package.dart';

AppNavigator.of(context)
@eEQK eEQK added the enhancement New feature or request label Apr 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant