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

Member not found: 'GroupButton.checkbox' #12

Closed
ashutosh-mulik opened this issue Feb 12, 2022 · 3 comments · Fixed by #13
Closed

Member not found: 'GroupButton.checkbox' #12

ashutosh-mulik opened this issue Feb 12, 2022 · 3 comments · Fixed by #13

Comments

@ashutosh-mulik
Copy link

ashutosh-mulik commented Feb 12, 2022

I got this issue while running the app.

Launching lib\main.dart on SM M115F in debug mode...
Running Gradle task 'assembleDebug'...
../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/talker_flutter-0.5.3/lib/src/widgets/filter/talker_screen_filter.dart:100:38: Error: Member not found: 'GroupButton.checkbox'.
                  child: GroupButton.checkbox(
                                     ^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/talker_flutter-0.5.3/lib/src/widgets/filter/talker_screen_filter.dart:122:38: Error: Member not found: 'GroupButton.checkbox'.
                  child: GroupButton.radio(
                                     ^^^^^
@ashutosh-mulik ashutosh-mulik changed the title Member not found: 'GroupButton.radio' Member not found: 'GroupButton.checkbox' Feb 12, 2022
@ashutosh-mulik
Copy link
Author

Found Solution

Changed from this :

GroupButton.checkbox(
                    buttons: types.map((e) => e.toString()).toList(),
                    onSelected: (i, selected) {
                      _onToggleType(types[i], selected);
                    },
                    mainGroupAlignment: MainGroupAlignment.start,
                    borderRadius: BorderRadius.circular(10),
                  )

To this :

GroupButton(
                    buttons: types.map((e) => e.toString()).toList(),
                    onSelected: (i, selected) {
                      _onToggleType(types[i], selected);
                    },
                    mainGroupAlignment: MainGroupAlignment.start,
                    borderRadius: BorderRadius.circular(10),
                  )

@Frezyx
Copy link
Owner

Frezyx commented Feb 12, 2022

In the new version of the package, I tried to avoid duplicating the code and return to the original constructor.
Sorry if it inconvenienced your working code ✌🏻

@Frezyx
Copy link
Owner

Frezyx commented Feb 16, 2022

Hello @ashutosh-mulik !
I fix this issue in new 0.5.4 version of talker_flutter package

@Frezyx Frezyx linked a pull request Feb 16, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants