@@ -212,7 +212,7 @@ class _CreateTaskScreenState extends State<CreateTaskScreen> {
212212 ),
213213 boxShadow: [
214214 BoxShadow (
215- color: Colors .black.withOpacity ( 0.05 ),
215+ color: Colors .black.withValues (alpha : 0.05 ),
216216 blurRadius: 10 ,
217217 offset: const Offset (0 , 5 ),
218218 ),
@@ -225,23 +225,23 @@ class _CreateTaskScreenState extends State<CreateTaskScreen> {
225225 IconButton (
226226 icon: Icon (
227227 Icons .arrow_back_ios_new_rounded,
228- color: theme .colorScheme.onSurface,
228+ color: Theme . of (context) .colorScheme.onSurface,
229229 ),
230230 onPressed: () => Navigator .pop (context),
231231 ),
232232 Icon (
233233 Icons .menu_rounded,
234- color: theme .colorScheme.onSurface,
234+ color: Theme . of (context) .colorScheme.onSurface,
235235 ),
236236 Icon (
237237 Icons .assignment_outlined,
238- color: theme .colorScheme.onSurface,
238+ color: Theme . of (context) .colorScheme.onSurface,
239239 ),
240240 ],
241241 ),
242242 ),
243243
244- // --- Body ---
244+ // ─── Body ─────────────────────────────────────────
245245 Expanded (
246246 child: SingleChildScrollView (
247247 padding: const EdgeInsets .all (25.0 ),
@@ -250,22 +250,23 @@ class _CreateTaskScreenState extends State<CreateTaskScreen> {
250250 children: [
251251 Text (
252252 'Create New Task' ,
253- style: theme.textTheme.headlineMedium? .copyWith (
254- fontWeight: FontWeight .bold,
255- ),
253+ style: Theme .of (context).textTheme.headlineMedium,
256254 ),
257255 const SizedBox (height: 25 ),
258256
259- // --- Input Name ---
257+ // Task Name
260258 CustomInputField (
261259 label: 'Task Name' ,
262260 hint: 'Enter task name' ,
263261 controller: _nameController,
264262 ),
265263 const SizedBox (height: 20 ),
266264
267- // --- Category ---
268- Text ('Select Category' , style: theme.textTheme.labelLarge),
265+ // Category
266+ Text (
267+ 'Select Category' ,
268+ style: Theme .of (context).textTheme.labelLarge,
269+ ),
269270 const SizedBox (height: 10 ),
270271 SizedBox (
271272 child: categories.isEmpty
@@ -488,6 +489,15 @@ class _CreateTaskScreenState extends State<CreateTaskScreen> {
488489 controller: _descController,
489490 maxLines: 2 ,
490491 ),
492+ const SizedBox (height: 25 ),
493+
494+ // Description
495+ CustomInputField (
496+ label: 'Description' ,
497+ hint: 'Enter task description' ,
498+ controller: _descController,
499+ maxLines: 2 ,
500+ ),
491501 const SizedBox (height: 40 ),
492502
493503 // ─── Create Button ────────────────────────
@@ -535,4 +545,4 @@ class _CreateTaskScreenState extends State<CreateTaskScreen> {
535545 ),
536546 );
537547 }
538- }
548+ }
0 commit comments