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

Can you make example project or something? #3

Open
xhidnoda opened this issue Mar 28, 2019 · 3 comments
Open

Can you make example project or something? #3

xhidnoda opened this issue Mar 28, 2019 · 3 comments

Comments

@xhidnoda
Copy link

Because i new in Flutter and here is my problem...

I import the package
import 'package:progress_button/progress_button.dart';

I don't not where i has to copy this:

val progressButton = ProgressButton(
    child: Text("Login"),
    onPressed: VoidCallback,
    buttonState: ButtonState.normal,
    backgroundColor: Theme.of(context).primaryColor,
    progressColor: Theme.of(context).primaryColor,
);

Is really the word "val" is the correct? not "var"?
And the onPressed event "VoidCallback"...the error debug says: "The argument type 'Type' can't be assigned to the parameter type '() → void'."

Can you help me with that? Thanks!

@halilozercan
Copy link
Owner

Sorry for val, it is something left from writing Kotlin.

VoidCallback should be correct. It corresponds to a function with no parameter and void return type.

@xhidnoda
Copy link
Author

Ok... can you make one short example? in the StatefulWidget? How to use?

@ksankumar
Copy link

Need example for how to implement and get loader in real time app

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

3 participants