To apply the padding to the content of the TextField
. You can apply the
contentPadding property of ItemDecoration at decoration property of TextField.
Like this:
TextField(
textAlign: TextAlign.left,
decoration: InputDecoration(
hintText: 'Enter Something',
contentPadding: EdgeInsets.all(20.0),
),
)
Related Contents:
- Flutter: RenderBox was not laid out
- How to Move bottomsheet along with keyboard which has textfield(autofocused is true)?
- Flutter position stack widget in center
- How do I set the background color of my main screen in Flutter?
- How to remove scroll glow?
- What are Keys in the Stateless widgets class?
- Invalid Constant Value using variable as parameter
- How to scroll page in flutter
- Flutter BottomNavigationBar not working with more than three items
- How to load JSON assets into a Flutter App?
- When should I use a FutureBuilder?
- Formatting a Duration like HH:mm:ss
- Flutter Circle Design
- Setting environment variables in Flutter
- Date Time format in Flutter dd/MM/YYYY hh:mm
- how to place a listview inside a SingleChildScrollView but prevent them from scrolling separately?
- flutter run function every x amount of seconds
- How to detect orientation change in layout in Flutter?
- New Flutter Project wizard not showing on Android Studio 3.0.1
- unable to convert string date in Format yyyyMMddHHmmss to DateTime dart
- Does using const in the widget tree improve performance?
- How can I get the size of the Text widget in Flutter
- No Directionality widget found
- How to spread a list in dart
- How to customize a date picker
- Can I use multiple method on a future builder?
- dart:ui:1: Error: Not found: dart:ui. flutter/dart:
- Is it possible “extend” ThemeData in Flutter
- How can I read (from disk) and resize an image, in Flutter/Dart
- How to write a double back button pressed to exit app using flutter
- how to convert an image to base64 image in flutter?
- How to use InputFormatter on Flutter TextField?
- Is there a way to set Height to a Drawer Header?
- How to deploy flutter web on server?
- How to solve Not found: ‘dart:ui’ error while running integration tests on Flutter
- What is the difference between AssetImage and Image.asset – Flutter
- How do I cancel Future.delayed?
- Error: Only static members can be accessed in initializers what does this mean?
- How to use the PI constant in Dart
- Flutter background of unsafe area in SafeArea widget.
- Flutter TextField with currency format
- How do you pass arguments from command line to main in Flutter/Dart?
- using the new keyword in flutter [duplicate]
- What does “context” of “Widget build(BuildContext context)” mean in Flutter?
- Flutter Firestore Server side Timestamp
- What is the difference between streamController.add() and streamController.sink.add()?
- Flutter position fixed equivalent
- Inkwell not showing ripple when used with Container decoration
- Flutter snackbar dismiss on SnackBarAction onPressed
- Dart/ flutter: application crashes on startup