About 50 results
Open links in new tab
  1. Flutter onTap method for Containers - Stack Overflow

    Been developing a flutter app and dynamicly building some containers from some Firebase data. I wanted to know if there is a way to get a onTap method for containers (or any widget which is not a ...

  2. Flutter GestureDetector, how to implement onTap Function?

    Mar 29, 2022 · I want to implement the OnTap in the Gesture Detector, i just cant figure out how... Originally i had the OnTap in the Inkwell, but it didnt work, since it didnt "entered" to that function …

  3. GestureDetector onTap not working on Positioned Widget

    Mar 26, 2025 · However, the issue is that the onTap function does not work when clicking on the Positioned widget, but it works when clicking on the main Container. What is causing this issue, and …

  4. How do I programmatically simulate onTap on a button in Flutter?

    Aug 26, 2020 · The purpose of onTap is to call the callback function inside the onTap. So I'm not sure why you just want to tap the button other than invoking functions that should be called when tapping …

  5. Flutter onPressed () vs onTap () - Stack Overflow

    Aug 16, 2019 · In my experience, onTap() is used for any gesture capture and onPressed() especially for buttons. Just like in real life, when you have to use a button, you'll press it. Hope this will solve …

  6. flutter - Use onTap () or onPressed () with FlutterIcons on a Bottom ...

    Aug 24, 2022 · I have a Bottom Navigation Bar using FlutterIcons and I would like to use either onTap() or onPressed() on them to switch between screens in the app. How can I achieve this? Here's my …

  7. flutter - Catch tap event on TextFormField - Stack Overflow

    new GestureDetector( onTap: onTap, behavior: HitTestBehavior.opaque, child: new TextFormField( enabled: onTap == null, *other stuff here* ), ) The onTap object is a Function object I declare outside …

  8. flutter - ListTile, icons and onTap - Stack Overflow

    Dec 6, 2020 · I am using ListTile with two icons (leading and trailing). I am wondering if I can have two different actions. One action if I tap on leading Icon, an other action if I tap on trailing Icon. Below ...

  9. Flutter custom onTap scale effect - Stack Overflow

    Aug 17, 2020 · I would like to create custom onTap (or any on other onTap callbacks provided by GestureDetector "indicator" where content (child) is scaled-down and text becomes darker, like to …

  10. How to trigger both parent and child onTap of GestureDetector

    Jan 5, 2022 · How can I make parent widget's onTap and child widget's onTap to be called together? I have a page which consist of several widgets which has their own onTap. One of the component is a …