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

onPressed does not run for buttons #38

Open
pisa97 opened this issue Aug 30, 2019 · 6 comments
Open

onPressed does not run for buttons #38

pisa97 opened this issue Aug 30, 2019 · 6 comments
Labels
bug Something isn't working

Comments

@pisa97
Copy link

pisa97 commented Aug 30, 2019

Hi,
I have a problem with the on pressed. It doesn't run and I don't know why. Here is my code. I put it inside a container to solve another common issue with this package. Someone had the same problem? Thank you in advance.

Do you think it depends on where and how I put the widget insider my UI?

return new Scaffold( backgroundColor: getColorBackground(), body: new Builder( builder: (context) => new SliverContainer( floatingActionButton: Container( // bottom: 20, height: 60, // width: MediaQuery.of(context).size.width, child: new UnicornDialer( parentHeroTag: "duhcugedf", animationDuration: 250, backgroundColor: Colors.transparent, parentButtonBackground: Colors.teal, orientation: UnicornOrientation.HORIZONTAL, parentButton: Icon( Icons.settings, size: 30, color: getColorBackground(), ), childButtons: _getProfileMenu(context), ), ), expandedHeight: 200.0, slivers: <Widget>[ new SliverAppBar( backgroundColor: Colors.orangeAccent, iconTheme: IconThemeData(color: Colors.white), expandedHeight: 200.0, pinned: true, flexibleSpace: new FlexibleSpaceBar( title: Container( padding: EdgeInsets.only(bottom: 10), child: Text( "Lista della spesa", textAlign: TextAlign.left, overflow: TextOverflow.ellipsis, style: TextStyle( fontWeight: FontWeight.w500, fontFamily: "Helvetica", fontSize: 22, color: Colors.white), ), ), background: new Image.asset( "images/grocery.png", ), ), ), new SliverPadding( padding: EdgeInsets.only(bottom: 40), ), new SliverList( delegate: new SliverChildListDelegate(lista), ), new SliverPadding( padding: EdgeInsets.only(bottom: 40), ), ], ), ), );

@ghost
Copy link

ghost commented Sep 11, 2019

Same here.
onPressed isn't fired.

@ghost
Copy link

ghost commented Sep 25, 2019

Same here.
Any updates on this?

@robyroad
Copy link

Same here.

@almazio
Copy link

almazio commented Oct 14, 2019

Тоже самое.
my buttons do not work in a horizontal position, in a vertical position everything works well

@trancanhluc
Copy link

Hello, I have the same issue: but I customed the lib with OverlayEntry follow a post and unicorn dial worked. https://medium.com/coding-with-flutter/flutter-adding-animated-overlays-to-your-app-e0bb049eff39

@renatosouzacano
Copy link

Check my fix here:

#13 (comment)

@tiagojencmartins tiagojencmartins added the bug Something isn't working label Apr 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

6 participants