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

The method '_image' isn't defined for the type '_xxxxState'. (Documentation) Try correcting the name to the name of an existing method, or defining a method named '_image'. #70

Open
Leopold2024 opened this issue Jul 23, 2021 · 0 comments

Comments

@Leopold2024
Copy link

Leopold2024 commented Jul 23, 2021

 RatingBar(
                      initialRating: 3,
                      direction: Axis.horizontal,
                      allowHalfRating: true,
                      itemCount: 5,
                      ratingWidget: RatingWidget(
                        full: _image('assets/images/heart.png'),
                        half: _image('assets/images/heart_half.png'),
                        empty: _image('assets/images/heart_border.png'),
                      ),
                      itemPadding: EdgeInsets.symmetric(horizontal: 4.0),
                      onRatingUpdate: (rating) {
                        print(rating);
                      },
                    )

The method '_image' isn't defined for the type '_xxxxState'. (Documentation) Try correcting the name to the name of an existing method, or defining a method named '_image'.

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