I am very new to flutter. I have a flatbutton with an image and i want to click that and enable another flatbutton with an image. Please help. Thank you in advance.
have you tried IgnorePointer ?, you can set the second Button inside a IgnorePOinter, and when u click the first button u can change the ignorepointer properties to enable the second button.
Related
enter image description here
On clicking any of the tabs I want to expand the container which contains textfield as in picture 2.
enter image description here
Then I want to switch tabs but second click on same tab should contract the container like before.
maybe you can use ExpansionTile widget.
When I tap on a item on tab bar a circle will appear and disappear, please tell me name of this animation and how could I implement it in a flutter
click for seeing sample
The effect is called a ripple. And you can get it by wrapping a widget in an Inkwell.
See more here about it here: https://docs.flutter.dev/cookbook/gestures/ripples
Hi In Scaffold BottomNavigationBar() has inbuilt properties of circle appear and disappear
You can use a widget called Gesture Detector which also has ripple effect
i am using overlay in flutter and if the overlay pop up i want to prevent the user from clicking the buttons behind it like this
before click
after click
try to use ignorePointer like this Ignore pointer demo
or you can use Boolean like isShow = true, when alert popup make it isShow =false
I want to show my own page on dropdown button tap, then item selected on page should be set as dropdown button value.
So basically, I need DropdownButton without any popup on tap. When I use onTap still default popup will be shown, how to prevent that?
why you don't use a button instead? or you can try to create an Inkwell put a container on its child and make it look like a button and write your code inside Inkwell OnTap(){}
1- Pass null to items parameter to disable the button.
2- You'll notice icon's color will be grey with disabled button, you can change it by setting color of the icon you send to icon parameter or send color directly to iconDisabledColor parameter.
3- You'll not use value parameter, instead you'll just use hint to show both your hint and your value. and update it using your state management after you pick new value from your own page.
4- Wrap your DropdownButton with GestureDetector or InkWell to show your own page when you tap on the button.
5- If you want to customize your DropdownButton shape, size and more. You can try my new package DropdownButton2. It's simple, easy, based on Flutter's core DropdownButton and have lots of features.
I have a drawer in my
app. When I long tap it, "Open navigator menu" pops up. How can I change this? I already tried changing somethings in drawer.dart etc. but it didn't work.
it depends which action you use.
if you want different tap behaviour you can user GestureDetector
with Default drawer class, use Scaffold.of(context).openDrawer(); to open drawer with text in GestureDetector.