@@ -72,12 +72,12 @@ class _AddOrEditEventFormState extends State<AddOrEditEventForm> {
7272 children: [
7373 TextFormField (
7474 controller: _titleController,
75- decoration: AppConstants .inputDecoration. copyWith (
75+ decoration: InputDecoration (
7676 labelText: "Event Title" ,
7777 labelStyle: TextStyle (
7878 color: color.onSurfaceVariant,
7979 ),
80- ),
80+ ). applyDefaults ( Theme . of (context).inputDecorationTheme) ,
8181 style: TextStyle (
8282 color: color.onSurface,
8383 fontSize: 17.0 ,
@@ -101,12 +101,12 @@ class _AddOrEditEventFormState extends State<AddOrEditEventForm> {
101101 children: [
102102 Expanded (
103103 child: DateTimeSelectorFormField (
104- decoration: AppConstants .inputDecoration. copyWith (
104+ decoration: InputDecoration (
105105 labelText: "Start Date" ,
106106 labelStyle: TextStyle (
107107 color: color.onSurfaceVariant,
108108 ),
109- ),
109+ ). applyDefaults ( Theme . of (context).inputDecorationTheme) ,
110110 initialDateTime: _startDate,
111111 onSelect: (date) {
112112 if (date.withoutTime.withoutTime
@@ -140,12 +140,12 @@ class _AddOrEditEventFormState extends State<AddOrEditEventForm> {
140140 Expanded (
141141 child: DateTimeSelectorFormField (
142142 initialDateTime: _endDate,
143- decoration: AppConstants .inputDecoration. copyWith (
143+ decoration: InputDecoration (
144144 labelText: "End Date" ,
145145 labelStyle: TextStyle (
146146 color: color.onSurfaceVariant,
147147 ),
148- ),
148+ ). applyDefaults ( Theme . of (context).inputDecorationTheme) ,
149149 onSelect: (date) {
150150 if (date.withoutTime.withoutTime
151151 .isBefore (_startDate.withoutTime)) {
@@ -184,12 +184,12 @@ class _AddOrEditEventFormState extends State<AddOrEditEventForm> {
184184 children: [
185185 Expanded (
186186 child: DateTimeSelectorFormField (
187- decoration: AppConstants .inputDecoration. copyWith (
187+ decoration: InputDecoration (
188188 labelText: "Start Time" ,
189189 labelStyle: TextStyle (
190190 color: color.onSurfaceVariant,
191191 ),
192- ),
192+ ). applyDefaults ( Theme . of (context).inputDecorationTheme) ,
193193 initialDateTime: _startTime,
194194 minimumDateTime: CalendarConstants .epochDate,
195195 onSelect: (date) {
@@ -214,12 +214,12 @@ class _AddOrEditEventFormState extends State<AddOrEditEventForm> {
214214 SizedBox (width: 20.0 ),
215215 Expanded (
216216 child: DateTimeSelectorFormField (
217- decoration: AppConstants .inputDecoration. copyWith (
217+ decoration: InputDecoration (
218218 labelText: "End Time" ,
219219 labelStyle: TextStyle (
220220 color: color.onSurfaceVariant,
221221 ),
222- ),
222+ ). applyDefaults ( Theme . of (context).inputDecorationTheme) ,
223223 initialDateTime: _endTime,
224224 onSelect: (date) {
225225 if (_startTime != null &&
@@ -268,10 +268,10 @@ class _AddOrEditEventFormState extends State<AddOrEditEventForm> {
268268
269269 return null ;
270270 },
271- decoration: AppConstants .inputDecoration. copyWith (
271+ decoration: InputDecoration (
272272 hintText: "Event Description" ,
273273 counterStyle: TextStyle (color: color.onSurfaceVariant),
274- ),
274+ ). applyDefaults ( Theme . of (context).inputDecorationTheme) ,
275275 ),
276276 Align (
277277 alignment: Alignment .centerLeft,
@@ -478,9 +478,9 @@ class _AddOrEditEventFormState extends State<AddOrEditEventForm> {
478478 if (_selectedRecurrenceEnd == RecurrenceEnd .onDate)
479479 DateTimeSelectorFormField (
480480 initialDateTime: _recurrenceEndDate,
481- decoration: AppConstants .inputDecoration. copyWith (
481+ decoration: InputDecoration (
482482 labelText: 'Ends on' ,
483- ),
483+ ). applyDefaults ( Theme . of (context).inputDecorationTheme) ,
484484 onSelect: (date) {
485485 if (date.withoutTime.isBefore (_endDate.withoutTime)) {
486486 ScaffoldMessenger .of (context).showSnackBar (SnackBar (
0 commit comments