5,178 questions
0
votes
1
answer
87
views
Visibility of TextField label compared to Picker or Toggle in SwiftUI
If I place a Picker or a Toggle in a SwiftUI Form, the associated label is always visible:
But for a TextField, the label is only shown while the field is empty:
And as soon as I start to fill in ...
-1
votes
2
answers
154
views
Updating a JTextField from the inside of a Java for loop
The purpose of my program is to do time-consuming file operations that are executed inside a for loop.
That's why I would like the program to show the current operation through a text field.
I don't ...
-1
votes
3
answers
91
views
SwiftUI TextField with number format ignores environment locale
I'm facing the issue that SwiftUI's TextField with a number format seems to ignore the locale set by the environment modifier.
struct MyView: View {
@State
var number: Decimal = 1.1
var ...
0
votes
0
answers
97
views
NavigationStack causes microhang when loading sheet
I have a simple sheet:
.sheet(isPresented: $newContactSheetTrigger) {
NewContactSheet()
.presentationDetents([.large])
}
with the following code:
import SwiftUI
import SwiftData
import ...
2
votes
1
answer
122
views
How to create a custom TextField that expands vertically with its content?
I’m trying to build a custom text field that automatically resizes its height based on the content (so if I type multiple lines, the field grows vertically).
Here is my current code:
import SwiftUI
...
0
votes
1
answer
59
views
Focus traversal on TextField not working as expected in Flutter
Below code generates UI as follows, here which ever container is selected it gets highlighted with border and its descendants are traversable on tapping tab, other container's children does not get ...
0
votes
2
answers
122
views
How do I increase the height of a textfield that is using the RoundedBorderTextFieldStyle?
When I was making a SwiftUI app for macos, I wanted to have a textfield that used both the RoundedBorderTextFieldStyle and be slightly larger than regular.
I specifically wanted the visual effect that ...
0
votes
0
answers
56
views
SwiftUI Bug on tvOS 18 – TextField Broken in Modals
Just noticed a bug in tvOS 18+:
If you present a modal (.sheet) that contains a TextField, click into the text field to select your text from keyboard, then press the Back button, the TextField ...
0
votes
2
answers
221
views
Flutter WEB - why textfields sometime don't work on Safari and Firefox?
I have apps that had no issue on Firefox and Safari with Flutter versions 3.22 and before, but in most recent Flutter versions textfields are not working on these 2 browsers, or only working when ...
0
votes
1
answer
65
views
TextField in a Form
I would like to show a TextField inside a Form in an inspector.
Here is my code, and I am using a Section since there will be many more controls.
struct TestView: View {
@State private var ...
0
votes
0
answers
63
views
How can I autoscroll or go to the last position of a multiline TextField in Flet?
I'm trying to get a TextField in Flet to which text is added to update and display the last entry. So far, I've only managed to do this if I make the entry appear on the first line, but if I make it ...
1
vote
1
answer
34
views
Uppercase and other validations in TextField in LibGDX
In a TextField object in LibGDX I need to validate input characters to transform lowercase to uppercase, and avoid numbers and special chars. How can this be done? Thank you very much.
1
vote
0
answers
33
views
Flutter Linux app on Raspberry Pi: TextField loses focus after inactivity
I have a Flutter app compiled for Linux, running on a Raspberry Pi. The device has a USB-connected keyboard (used as a barcode scanner) that inputs directly into a TextField. The app runs in ...
0
votes
2
answers
95
views
TextField with .fixedSize() is jumping when edited
I need a text field that is resizing to hug its contents on macOS. Problem is, that text of TextField is jumping around when edited in a setup with alignment .leading (either VStack or .frame).
I also ...
0
votes
0
answers
29
views
Trigger event when email/password is overlaid
I have an app that, on session timeout, allows the user to open a popup with a form to sign back in again. For the purposes of this question, the app requires MFA. The test below is with Google Chrome ...
0
votes
1
answer
55
views
How to create a reusable controlled TextField using MUI and React Hook Form?
I'm working on a form in React using Material UI (MUI) and react-hook-form, and I want to create a reusable TextField component that:
Works with react-hook-form using the Controller.
Supports ...
0
votes
1
answer
46
views
How to get MUI TextField to automatically Unicode-normalize input text?
I work with linguistics software, and it's important for me to be able to normalize (usually with NFC or NFD) all text inputs from a user session. Is there a simple way to force all Material UI <...
-1
votes
1
answer
36
views
MUI Resizable Textfield Overflow CSS Issue
here you find an example of a resizable MUI Textfield.
The problem is when i reach the Textfield bottom the Textfield border is moving upwards instead of displaying a scrollbar withhin the textfield. ...
0
votes
0
answers
78
views
Flutter, TextField, no keyboard
I'm writing a Flutter app and I have a problem with the TextField widget.
On tap in the TextField a strange toolbar appears instead of the keyboard.
In addition something is injected into the widget ...
1
vote
1
answer
42
views
On Page Load, the saved credentials are auto filled and they are overlaping with the placeholder of mui textfield component
On Page Load, the saved credentials are auto filled and they are overlaping with the placeholder of mui textfield component
How to solve this
I used useEffect for triggering click event on page render ...
0
votes
1
answer
59
views
Flutter TextField Text appears outside of borders. Bottom Border or TextField aligns with the center of the Row
I've been struggling with this for months. I have a TextField that appears as the first child of a Row in my Android app. The TextField's text appears outside of the borders. Additionally, the bottom ...
0
votes
1
answer
58
views
TextField's onValueChange doesn't modify view model state
TextField always get empty when I try to write in it.
My ViewModel:
class MyVM: ViewModel() {
var name by mutableStateOf("")
fun onNameChange(newString: String) {
name = ...
0
votes
2
answers
67
views
Keyboard hide the TextField bubble [closed]
I'm using TextField in the bottom of the screen, the TextField is in a Stack widget, as you can see in the screenshot below, the device keyboard hide the TextField bubble:
In WhatsApp for example you ...
1
vote
2
answers
90
views
How to show widget or text right after value?
I need to display currency right after value:
Currently it's achieved by overriding buildTextSpan, but it causes range error when selection includes the trailing text:
suffixText of InputDecoration ...
0
votes
1
answer
35
views
Flutter TexField set via TextController is inconsistent
Two detail sheets use the same function to create a TextField widget with a DateTimePicker from an icon button. In one sheet, it displays the selected datetime into the TextField; the other does not. ...