LinusU / LinusU/flutter_web_auth

Lint Error implementation_imports on generated_plugin_registrant.dart

Open
#116 0 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Dart
Stars
213
Forks
261
PR merge metrics
No merged PRs in 30d

Description

I'm getting a linting issue on the auto generated file `generated_plugin_registrant.dart` for `import 'package:flutter_web_auth/src/flutter_web_auth_web.dart';`:

Don't import implementation files from another package.dart [implementation_imports](https://dart-lang.github.io/linter/lints/implementation_imports.html)

To solve lints, I'm temporarily ignoring the `implementation_imports` in `analysis_options.yaml`.
The fix for this is exporting FlutterWebAuthPlugin from `package:flutter_web_auth/flutter_web_auth.dart` instead of needing to import implementation files.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with generated_plugin_registrant.dart and package:flutter_web_auth/flutter_web_auth.dart, then inspect how FlutterWebAuthPlugin is exposed. Export FlutterWebAuthPlugin from the package entry point so the generated import no longer triggers implementation_imports, and verify the lint passes without the temporary analysis_options.yaml exception.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart
Domain
mobile-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.