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

Allow ParentButton Icon to be Widget #35

Open
suesitran opened this issue Aug 3, 2019 · 1 comment
Open

Allow ParentButton Icon to be Widget #35

suesitran opened this issue Aug 3, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@suesitran
Copy link

I wanna create different widget to be used as ParentButton, but it's only limited to Icon. Please allow Widget in this field

@tiagojencmartins tiagojencmartins added the enhancement New feature or request label Apr 25, 2020
@ra-develop
Copy link

@suesitran I am agree. It is good idea. Why I can use widget for ChildButton, but can not use widget in ParentButton and finalButtonIcon?

@tiagojencmartins Please allow Widget in these both field: ParentButton and finalButtonIcon

      floatingActionButton: UnicornDialer(
          backgroundColor: Colors.white,
          parentButtonBackground: Colors.white,
          orientation: UnicornOrientation.VERTICAL,
          parentButton: ImageIcon(AssetImage("images/btn_new.png")), // Not working
//          Icon(Icons.more_vert), // Working
          childButtons: childButtons)

Error:
error: The argument type 'ImageIcon' can't be assigned to the parameter type 'Icon'. (argument_type_not_assignable at [fluttermodule] lib/view/HomePage.dart:191)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants