Skip to content

Instantly share code, notes, and snippets.

@omartinma
Created April 25, 2020 11:46
Widget _getDatePickerEnabled() {
return InkWell(
onTap: () {
_selectDate(context);
},
child: InputDecorator(
decoration: InputDecoration(labelText: _labelText, enabled: true),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
mainAxisSize: MainAxisSize.max,
children: <Widget>[
Text(
DateFormat.yMMMd().format(_dateSelected),
style: CustomTheme.of(context).textTheme.subhead.copyWith(),
),
Icon(Icons.arrow_drop_down,
color: Theme.of(context).brightness == Brightness.light
? Colors.grey.shade700
: Colors.white70),
],
),
),
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment