question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add `dense` property to `TextField` and `Dropdown` controls

See original GitHub issue

Hello, I’m trying to develop a simple desktop application with multiple TextField objects. The default dimensions are much taller that what I’m looking for, and as far as I can tell from Flutter documentation, the best way to modify this is changing the decoration property of the TextField, that takes an InputDecoration.

Could this class implemented in flet, as well as the corresponding property to use it?

I wonder if there’s any workaround to achieve this effect at the moment.

Thank you

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
miguelagvecommented, Dec 10, 2022

I’ve had the chance to give it a try and it does exactly what I wanted. Many thanks!!

1reaction
FeodorFitsnercommented, Dec 9, 2022

Yep, content_padding corresponds to that property.

So, I’m going to add isDense property then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Text field component - Vuetify
The hint property on text fields adds the provided string beneath the text field. Using persistent-hint keeps the hint visible when the text...
Read more >
React Text Field component - Material UI - MUI
The TextField wrapper component is a complete form control including a label, input, and help text. It comes with three variants: outlined (default), ......
Read more >
Text fields - Material Design
Text fields let users enter, edit, and select text. ... Text fields should stand out and indicate that users can input ... Dense...
Read more >
Replace text field with a dropdown menu in ASP.NET Core ...
You should change the Rating field to dropdown menu on the Creat page and Edit page. Below is my test code,you can refer...
Read more >
TextField class - material library - Flutter - Dart API docs
By default, a text field has a decoration that draws a divider below the text field. You can use the decoration property to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found