Skip to content

Example code on pub.dev listing does not run #537

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

Open
driftwoodstudio opened this issue Mar 21, 2025 · 0 comments
Open

Example code on pub.dev listing does not run #537

driftwoodstudio opened this issue Mar 21, 2025 · 0 comments

Comments

@driftwoodstudio
Copy link

The example from pub.dev listing does not run.

Cut and paste it into a new file in a flutter project, and it has compile errors.

It seems to be an example taken from inside the project, that assumes a context that does not exist unless you are actually developing the package. In particular, "sharedConfigManager" and "HomePage" aren't defined, and the following two imports are invalid:

import 'package:window_manager_example/pages/home.dart';
import 'package:window_manager_example/utils/config.dart';

Without this working, it's difficult for anyone to see an actual known-to-work example of what code to use to verify this package is working or try any experiments.

Speaking as a person coming in cold trying to figure out how to use this package, I'm finding it very difficult to figure out what's not at all and what I'm simply doing wrong because I don't understand the proper setup. A known-to-work example would help tremendously.

I've had to resort to forking the entire package and running the example from inside that, as if I were developing the package itself, vs just using the package in my own project.

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

No branches or pull requests

1 participant