My mistake was in pubspec.yaml, i put the plugin configuration in:
dev_dependencies:
instead of:
dependencies: