textfield Questions

2

I'm having an issue with Flutter Web's TextField. Whenever The text becomes too long, and thus causes the TextField to scroll over to view it all (in single line fields), I am no longer able to cli...
Bung asked 1/1, 2021 at 1:54

9

Use case: Messaging app you edit your message: keyboard, blinking cursor and initial text appears but pointer (cursor) is not But on Flutter when you use initial text (or via textController) there...
Baziotes asked 19/5, 2020 at 10:45

12

Here is the code. I want to remove the black underline just below text, and currently the TextField is in edit mode: TextField( autofocus: true, decoration: InputDecoration.collapsed( hintText:...
Nellnella asked 26/5, 2019 at 16:43

5

I was playing around with Jetpack Compose TextField and I found one strange behaviour with Keyboard. If my TextField is around bottom of the screen and I open keyboard, the TextField is remain hidd...
Astor asked 23/9, 2021 at 14:43

8

Solved

I use Rectangle() to adding a bottom border on TextField (SwiftUI) But I want to use protocol TextFieldStyle for a bottom line on TextField Style like an RoundedBorderTextFieldStyle How can I mak...
Neurotomy asked 13/7, 2019 at 11:32

10

Solved

When i tap in textField in landScape mode i would like to expand in full screen likes whatsapp TextFormField( keyboardType: TextInputType.number, decoration: InputDecoration( prefixIcon: Paddi...
Lothair asked 3/3, 2019 at 19:41

5

I have a simple TextField and set height and some other properties but the issue is textfield height didn't change, bellow is my code struct LoginView: View { @State private var email = "" @St...
Downall asked 24/2, 2020 at 11:9

2

Solved

I have a screen where some textfields I want to show a 'fake' keyboard. The keyboard should be able have as many buttons as I like and be displayed however I want. Just as shown below. My question...

3

Solved

How should TextField be properly disabled when using Toogle in swiftUI? The following simple example causes warnings in the console if we disable a TextField that has some value entered in it, dele...
Computer asked 10/1, 2022 at 12:0

4

Solved

How can I add a suffix to TextField input that flows (moves) with the user input text?

5

Solved

I want to disable predictive text which comes in the keyboard of a textfield. It is not so difficult in native android and IOS but I have not found a solution in a Flutter. I have tried using auto...
Silvio asked 14/3, 2019 at 7:44

1

Solved

I am trying to set a custom caret in my TextField. I want the caret to always be visible even when focus is on another JavaFX node. If possible I also want to make the caret "Bold" and se...
Boger asked 8/5 at 20:16

5

Solved

How do I restrict my user from using space in textfield by automatically removing that space when the user finish typing? For example, if the user type King of Light, it will apply as KingofLight a...
Zackzackariah asked 7/10, 2020 at 7:56

5

Solved

I am Using MUI and did everything to change the Color of the Text in a MUI Text Field and/or its background Color. I followed the Documentation and tried: const CssTextField = styled(TextField)({ ...
Folio asked 2/2, 2022 at 9:3

6

Solved

I would like to turn off predictive text/autocorrect for a TextField in SwiftUI. Looks like this was possible with UITextField: Disable UITextField Predictive Text I checked the Apple documentation...
Franciscofranciska asked 26/7, 2019 at 5:8

19

Solved

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?
Rhonarhonchus asked 12/6, 2017 at 2:30

5

Solved

How can I remove Textfield focus when I press return or click outside Textfield? Note that this is SwiftUI on macOS. If I do this: import SwiftUI struct ContentView: View { @State var field1: St...
Sung asked 22/11, 2019 at 4:29

28

Solved

I'm unable to find a way to create an input field in Flutter that would open up a numeric keyboard and should take numeric input only. Is this possible with Flutter material widgets? Some GitHub di...
Suzannsuzanna asked 30/3, 2018 at 16:19

4

Solved

I have a multiline TextField with a prefixIcon, so now the Icon is in the center vertically and hint text is at top left. I want both of them to be aligned, either at the top or in the center verti...
Ellie asked 5/8, 2020 at 18:29

2

I am using a Linkable to highlight web links, phone numbers, and email addresses from what the user types into a textfield. The first problem is that the linkable does not take textfield in, it onl...
Duhamel asked 26/6, 2021 at 8:56

8

Solved

In a UI of mine, I have a PasswordField like so (urm the one at the bottom!): I want a user to be able to check the checkbox you see in the picture and have all "secret" password characters disp...
Jefe asked 9/6, 2013 at 20:47

2

I am currently unable to capture user input in to a textfield when the KeyboardType of the keyboard is set to KeyboardType.Number. If the keyboard is set to KeyboardType.Text, the Textfield updates...

3

I have a very basic view that only shows a TextField: View struct ContentView: View { @StateObject var viewModel = ViewModel() var body: some View { TextField("Enter a string...", t...

2

Solved

Hello the placeholder text, and the text the user inputs, starts in the middle of my textfield. I have the textfield as 30% of the screen height, so I can't simply make the textfield smaller. How ...
Corinecorinna asked 1/4, 2017 at 2:44

17

Solved

I've been trying to create a multiline TextField in SwiftUI, but I can't figure out how. This is the code I currently have: struct EditorTextView : View { @Binding var text: String var body: so...
Rubin asked 6/6, 2019 at 6:30

© 2022 - 2024 — McMap. All rights reserved.