Advertisement
ngekoding

Flutter - TextFormField

Aug 20th, 2018
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Dart 1.23 KB | None | 0 0
  1. TextFormField(
  2.   controller: _noKodeController,
  3.   decoration: InputDecoration(
  4.     labelText: 'Nomor Kode',
  5.     border:
  6.         OutlineInputBorder(borderSide: BorderSide()),
  7.     contentPadding: EdgeInsets.all(10.0),
  8.   ),
  9. ),
  10. SizedBox(
  11.   height: 10.0,
  12. ),
  13. Row(
  14.   children: <Widget>[
  15.     Expanded(
  16.       child: InkWell(
  17.         onTap: () {
  18.           _datePicker(context);
  19.         },
  20.         child: TextFormField(
  21.           enabled: false,
  22.           controller: _tanggalController,
  23.           decoration: InputDecoration(
  24.             labelText: 'Tanggal',
  25.             border: OutlineInputBorder(
  26.                 borderSide: BorderSide()),
  27.             contentPadding: EdgeInsets.all(10.0),
  28.           ),
  29.         ),
  30.       ),
  31.     ),
  32.     SizedBox(
  33.       width: 10.0,
  34.     ),
  35.     Expanded(
  36.       child: InkWell(
  37.         onTap: () {
  38.           _timePicker(context);
  39.         },
  40.         child: TextFormField(
  41.           enabled: false,
  42.           controller: _timeController,
  43.           decoration: InputDecoration(
  44.             labelText: 'Jam',
  45.             border: OutlineInputBorder(
  46.                 borderSide: BorderSide()),
  47.             contentPadding: EdgeInsets.all(10.0),
  48.           ),
  49.         ),
  50.       ),
  51.     ),
  52.   ],
  53. ),
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement