Obsidian/Recognition/Programing/Flutter/TextField.md

26 lines
564 B
Markdown

### 높이조정
isDense: true
contentPadding: EdgeInsets.all(8)
으로 padding과 magin을 조정할 수 있다.
```dart
TextField(
decoration: InputDecoration(
border: OutlineInputBorder(),
labelText: 'Even Densed TextFiled',
isDense: true, // Added this
contentPadding: EdgeInsets.all(8), // Added this
),
)
```
### 배경색상 변경
filled: true,
fillColor: Colors.orange,
```Dart
decoration: const InputDecoration(
filled: true,
fillColor: Colors.orange,
),
```