Skip to content

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

Open
@driftwoodstudio

Description

@driftwoodstudio

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions