Questions tagged [ontap]
44 questions
0
votes
0 answers
OnTap not working in children wrap on flutter
The OnTap I created in children wrap doesn't work, only the first children can be pasted Gesturedoctor OnTap and it works, but the next children when installed Gesture doctor doesn't work,
here's my code:
child: Wrap(
children: [
…

Timothy
- 25
- 1
- 3
0
votes
3 answers
onTap() function in Flutter Navigation Drawer?
I want to create basic drawer navigation and implement the onTap function on item click
DrawerHeader(
decoration: BoxDecoration(
color: Colors.blue,
),
child: Text('this is drawer header'),
…

Rahul Kumar
- 11
- 1
0
votes
2 answers
Use onTap() or onPressed() with FlutterIcons on a Bottom Navigation Bar
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 code snippet:
bottomNavigationBar: CurvedNavigationBar(
…

Wesley Kambale
- 15
- 1
- 6
0
votes
2 answers
How can I get PopupMenuItem clicked position on main page in Flutter
I create a function showPopupMenu because I need this multiple times in this project. When I will click an item on showPopupMenu that time I need the clicked position on the main page. How can I do this?
Here is my main page code:
return…

SUBHAJIT ROY
- 11
- 1
0
votes
1 answer
Ignore onTap action on Transparent part of the svg image flutter
Issue is that their are multiple svg images in stack. I need them to trigger only when the user tapped on filled part of the svg. So that, when it ignores on transparent part of the image, it can able to trigger behind svg image.
Stack(
…

Rahul Kavati
- 3,800
- 3
- 7
- 15
0
votes
1 answer
AWS Create ONTAP volume from existing Storage Virtual Machines(SVM)
I want to create an AWS ONTAP Volume only Based on the existing Storage Virtual Machines(SVM) .
I have SVM ID and Name are available with me in order to use then in the new stack which i am creating to spin the new Volume(s).
My SVM ID is :…

micron cloud
- 83
- 5
0
votes
1 answer
How to change image dynamically in a list trailing onTap
I was trying to change tutorial code. by adding a dynamic image in trailing and ontap to change the image. however the variable is changing but the image is not updating. Here is the relevant code:
void _pushSaved(){
…

Dreaded semicolon
- 2,274
- 1
- 28
- 43
0
votes
2 answers
Flutter - Function is called OnTap: but not with Ontap () {...}
I'm pretty inexperienced with Flutter, I created a widget with this piece of code inside:
With code written like this: (the ToolModify function is not called)
final VoidCallback ToolModify;
onTap: () {
// rest of the code
widget.ToolModify;
},…

CastoldiG
- 178
- 3
- 17
0
votes
3 answers
How to trigger both parent and child onTap of GestureDetector
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 TextField and when it is tapped, keyboard is opened. I want to…

Figen Güngör
- 12,169
- 14
- 66
- 108
-1
votes
1 answer
Flutter: How to pass tapped text between pages?
I have created two pages
displays data from firestore
in one page it shows list of collections as text which is tapabble
(it is a subcollection)
need to display relevent subcollections in second page
please help
I have hard coded subcollection and…
-1
votes
1 answer
Inkwell(ontap) Widget is not working properly?
I am unable to add ontap functionality .
I tried very much to add Inkwell but same result card is not pressing and also I tried to print within custom widget but same result..
Also I tried Wraping inkwell with Material
and wrping container with…

Muhammad Zohaib
- 13
- 4
-1
votes
1 answer
How to change the value automatically onTap event in Flutter
I have one Pageview widget and GestureDetector, i want to change the backgound of the Gridview inside the Pageview when the onTab event is triggered in the GestureDetector.
I have achieved 80% of what is required, below i have attached what i have…

Elam
- 413
- 6
- 19
-1
votes
1 answer
Error on method onTap() while calling function
TextField(
textAlign: TextAlign.center,
obscureText: _obscureText,
onChanged: (value) {
//Do something with the user input.
…
user16993231
-1
votes
2 answers
I want to go to another page when I click on the image in Flutter
I'm a newbie in Flutter and I'm trying to design a page to let the user choose the user type.
And I'm trying to use onTap method so that when I click on the picture I go to the selected user type page but when I used the onTap method the user type…

Sara
- 1
- 2