Questions tagged [disable]
504 questions
321
votes
17 answers
How do I disable a Button in Flutter?
I'm just starting to get the hang of Flutter, but I'm having trouble figuring out how to set the enabled state of a button.
From the docs, it says to set onPressed to null to disable a button, and give it a value to enable it. This is fine if the…

chris84948
- 3,940
- 3
- 22
- 25
152
votes
6 answers
Flutter: ListView disable scrolling with touchscreen
Is it possible to let a ListView only be scrollable with the ScrollController and not with the touchscreen?

Tobias Gubo
- 3,029
- 5
- 13
- 13
122
votes
17 answers
Disable a text edit field in flutter
I need to disable TextFormField occasionally. I couldn't find a flag in the widget, or the controller to simply make it read-only or disable.
What is the best way to do it?

Arash
- 11,697
- 14
- 54
- 81
74
votes
9 answers
Disable check of camel case rule in eslint
I have a large JavaScript file with multiple eslint rule violations. I am trying to disable them and address them one at a time. The code below shows that I can disable them all with no trouble, but not the rule about camelcase and perhaps other…

JimFuqua
- 961
- 1
- 7
- 12
48
votes
2 answers
How to disable a linting rule inline in flutter
Is there a way to disable a linting rule for a line in flutter?
I have a specific use case where I want to disable linting for two lines.
I have a lot of business logic already written so I cannot change the code.
abstract class ReviewName {
…

SRAVAN
- 769
- 1
- 7
- 11
40
votes
11 answers
Turn off caching of static files in Django development server
Is there an easy way to turn off caching of static files in Django's development server?
I'm starting the server with the standard command:
python manage.py runserver
I've got settings.py configured to serve up static files from the /static…

aaronstacy
- 6,189
- 13
- 59
- 72
23
votes
1 answer
Xcode 13 - turn off auto import feature
Xcode 13 introduced automatic imports.
Anyone know if and how it can be turned off? I could not find anything in Xcode preferences nor online.

Alex Kremer
- 1,876
- 17
- 18
23
votes
4 answers
How to disable Vuetify button without changing colors
I'm using Vuetify's v-btn button component with a variety of colors set via the color prop. Once a user clicks the button, I set disabled to true so they can't click it again, but the button loses its color and gets greyed out.
Is there any way to…

Chris
- 4,277
- 7
- 40
- 55
23
votes
6 answers
How to disable a checkbox based on conditions in angular 6?
My html code,

sai
- 487
- 1
- 7
- 16
18
votes
4 answers
Disable iPhone backup in Catalina
In OSX before Catalina we could use:
defaults write com.apple.iTunes DeviceBackupsDisabled -bool true
to disable iPhone backups
Does anyone know how to disable in Catalina?

iColorama
- 223
- 3
- 11
16
votes
2 answers
How can I conditionally disable a control in Storybook based on the value of another argument?
I am trying to conditionally disable a Storybook.js control based on the value of another argument. For example, I have a modal component that can be of type 'alert', 'confirmation', 'content', or 'photo'. All of these modal types, except for…

Wil S.
- 233
- 2
- 7
12
votes
2 answers
How to disable Thunderbird AUTO UPDATE
How can i disable the AUTO UPDATE process/function automatically used/applied by the (Mozilla) Thunderbird=TB (email-client) app ? for-example in v68 series: v68.12.0 or v68.12.1, etc ?
What settings/preferences change are needed ?
please show…

atErik
- 923
- 2
- 13
- 24
11
votes
2 answers
Disable default button click animation in SwiftUi
How can i disable the default Button click animation in SwiftUI and Swift 5? I tried to add .animation(.nil) to the button, without any changes.
I know that you can do the following:
Button(action: {}) { Capsule() }
.buttonStyle(NoAnim())
struct…

lucaszischka
- 132
- 1
- 1
- 7
11
votes
3 answers
Disable strict mode on MariaDB
When i run this sql in phpmyadmin
SELECT @@SQL_MODE, @@GLOBAL.SQL_MODE;
it shows
@@SQL_MODE STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
@@GLOBAL.SQL_MODE…

Dr.Mezo
- 807
- 3
- 10
- 25
10
votes
1 answer
Can I Colab combo disable
Colab combo message
When I use colab i can see a combo message.
Can i disable combo message?
I just change Hardware acceleration None to GPU.

ohxorud
- 101
- 1
- 3