Search
 
SCRIPT & CODE EXAMPLE
 

DART

textfield style flutter

TextField(
   cursorHeight: 20,
   autofocus: false,
   controller: TextEditingController(text: "Initial Text here"),
   decoration: InputDecoration(
      labelText: 'Enter your username',
      hintText: "Enter your Name",
      prefixIcon: Icon(Icons.star),
      suffixIcon: Icon(Icons.keyboard_arrow_down),
      contentPadding: const EdgeInsets.symmetric(vertical: 10,horizontal: 10),
      border: OutlineInputBorder(
          borderRadius: BorderRadius.circular(30),
          borderSide: BorderSide(color: Colors.grey, width: 2),
      ),
      enabledBorder: OutlineInputBorder(
        borderRadius: BorderRadius.circular(30),
        borderSide: BorderSide(color: Colors.grey, width: 1.5),
     ),
     focusedBorder: OutlineInputBorder(
        gapPadding: 0.0,
        borderRadius: BorderRadius.circular(30),
        borderSide: BorderSide(color: Colors.red, width: 1.5),
     ),
   ),
)
Comment

flutter textfield style

TextField(
  decoration: InputDecoration(
    border: OutlineInputBorder(),
    hintText: 'Enter a search term'
  ),
);
Comment

textfield style flutter

TextField(
  cursorHeight: 25,
  autofocus: false,
  decoration: InputDecoration(
  	contentPadding: const EdgeInsets.symmetric(vertical: 10,horizontal: 10),
  	border: OutlineInputBorder(),
  	labelText: 'Enter your username',
  	hintText: "Enter your Name"
  ),
)
Comment

PREVIOUS NEXT
Code Example
Dart :: dart shuffle list 
Dart :: flutter cliprrect 
Dart :: how to add padding flutter 
Dart :: date now dart 
Dart :: drawer corner radius flutter 
Dart :: flutter listtile minverticalpadding 
Dart :: flutter button with icon 
Dart :: flutter getx snackbar 
Dart :: cannot add to a fixed-length list 
Dart :: underline text flutter color 
Dart :: Attribute application@icon value=(@mipmap/launcher_icon) from AndroidManifest.xml:17:9-45 
Dart :: flutter screen size 
Dart :: flutter display widget based on device orientation 
Dart :: flutter column mainaxissize 
Dart :: flutter listtile 
Dart :: convert object to int flutter 
Dart :: dart loop through object 
Dart :: pass function as parameter in flutter 
Dart :: Shadow box around a button Flutter 
Dart :: dart uri 
Dart :: random in flutter int 
Dart :: dart string to hex 
Dart :: change app bar height flutter 
Dart :: get initials from name flutter on text 
Dart :: flutter textbutton 
Dart :: perform async task when build is done flutter 
Dart :: uinstall php server on ubuntu 
Dart :: get HH:MM time in flutter 
Dart :: flutter scrollable columne 
Dart :: dart ASCII to string 
ADD CONTENT
Topic
Content
Source link
Name
2+2 =