About 228,000 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 …

  2. Flutter- GestureDetector not working with containers in stack

    Oct 24, 2018 · I have two containers in a stack and both containers have GestureDetector.The OnTap for the first container is working fine but it's not working with another container. The …

  3. Change color on tap in a Flutter application - Stack Overflow

    Oct 7, 2020 · List<bool> isSelect = [false, false, false, false, false, false]; Toggle the boolean value when Inkwell widget ontap (). Set the colour of card on if condition based on the boolean value …

  4. onTap() function in Flutter Navigation Drawer? - Stack Overflow

    Aug 26, 2022 · I want to create basic drawer navigation and implement the onTap function on item click DrawerHeader( decoration: BoxDecoration( color: Colors.blue, ), ...

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

    Aug 16, 2019 · The Source of differents between onTap and onPressed is GestureDetector used in buttons. onTap should give you response in the first moment touching the screen.

  6. dart - Flutter: Change color of container on tap - Stack Overflow

    Aug 11, 2020 · I want to change color and size tapping on container but it does't change anything and setState(() doesn't help too return Scaffold( body: Ink( child: InkWell( child: Con...

  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 …

  8. Gesture detection in Flutter TextSpan - Stack Overflow

    Apr 10, 2019 · Is there a way to detect which word in the TextSpan was touched by the user? This paragraph is here to get round the stack overflow robot that is insisting that I write more stuff :)

  9. dart - Flutter DataTable - Tap on row - Stack Overflow

    DataCell(Text(itemrow.itemname), onTap: () { // Your code here }) This works for me. If you want the onTap to work for the entire DataRow instead of only a DataCell, you could just add the …

  10. dart - Flutter - Detect TexField on tap - Stack Overflow

    Dec 12, 2018 · 12 TextField has onTap property like GestureDetector which makes it very easy. If you only want the onTap functionality set readOnly to true.