diff --git a/task_manager_app/android/.kotlin/sessions/kotlin-compiler-17562978154053912740.salive b/task_manager_app/android/.kotlin/sessions/kotlin-compiler-17562978154053912740.salive deleted file mode 100644 index e69de29..0000000 diff --git a/task_manager_app/lib/home_page.dart b/task_manager_app/lib/home_page.dart index ddbfd2a..56d5935 100644 --- a/task_manager_app/lib/home_page.dart +++ b/task_manager_app/lib/home_page.dart @@ -9,6 +9,14 @@ class HomePage extends StatelessWidget { appBar: AppBar( title: const Text('Task Manager'), backgroundColor: Theme.of(context).colorScheme.inversePrimary, + actions: [ + IconButton( + onPressed: () {}, + icon: const Icon( + Icons.add, + color: Colors.black, + )) + ], ), body: Center( child: Column( @@ -31,6 +39,12 @@ class HomePage extends StatelessWidget { color: Theme.of(context).colorScheme.onSurfaceVariant, ), ), + const SizedBox(height: 8), + ElevatedButton( + onPressed: () { + Navigator.of(context).pushNamed("/lecture-list"); + }, + child: const Text('View Lectures')) ], ), ), diff --git a/task_manager_app/lib/lecture_list_page.dart b/task_manager_app/lib/lecture_list_page.dart new file mode 100644 index 0000000..4f62e8a --- /dev/null +++ b/task_manager_app/lib/lecture_list_page.dart @@ -0,0 +1,54 @@ +import 'package:flutter/material.dart'; + +class LectureListPage extends StatelessWidget { + LectureListPage({super.key}); + + final List lectures = [ + "Niroth", + "Frank", + "Dinuka", + "Sapumal", + "Dewmal" + ]; + + final List techStack = [ + "Java", + "Spring boot", + "Data Structures", + "Flutter", + "AI/ML" + ]; + + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: const Text("Lecture Lists"), + ), + body: ListView.builder( + itemCount: lectures.length, + itemBuilder: (context, index) { + return ListTile( + leading: const Icon(Icons.person, color: Colors.blue, size: 32), + title: Text( + lectures[index], + style: const TextStyle( + fontSize: 18, + fontWeight: FontWeight.bold, + color: Colors.black87, + ), + ), + subtitle: Text( + techStack[index], + style: TextStyle( + fontSize: 14, + color: Colors.grey[600], + ), + ), + trailing: const Icon(Icons.arrow_forward_ios, + size: 16, color: Colors.grey), + ); + }, + )); + } +} diff --git a/task_manager_app/lib/main.dart b/task_manager_app/lib/main.dart index f04d52a..cbb1cd6 100644 --- a/task_manager_app/lib/main.dart +++ b/task_manager_app/lib/main.dart @@ -1,4 +1,5 @@ import 'package:flutter/material.dart'; +import 'package:task_manager_app/lecture_list_page.dart'; import 'home_page.dart'; void main() { @@ -17,6 +18,10 @@ class TaskManagerApp extends StatelessWidget { useMaterial3: true, ), home: const HomePage(), + routes: { + '/lecture-list': (context) => LectureListPage() + }, + debugShowCheckedModeBanner: false, ); } } diff --git a/task_manager_app/pubspec.lock b/task_manager_app/pubspec.lock index 96ed6f9..09b08a8 100644 --- a/task_manager_app/pubspec.lock +++ b/task_manager_app/pubspec.lock @@ -21,10 +21,10 @@ packages: dependency: transitive description: name: characters - sha256: faf38497bda5ead2a8c7615f4f7939df04333478bf32e4173fcb06d428b5716b + sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 url: "https://pub.dev" source: hosted - version: "1.4.1" + version: "1.4.0" clock: dependency: transitive description: @@ -79,26 +79,26 @@ packages: dependency: transitive description: name: leak_tracker - sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de" + sha256: "6bb818ecbdffe216e81182c2f0714a2e62b593f4a4f13098713ff1685dfb6ab0" url: "https://pub.dev" source: hosted - version: "11.0.2" + version: "10.0.9" leak_tracker_flutter_testing: dependency: transitive description: name: leak_tracker_flutter_testing - sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1" + sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573 url: "https://pub.dev" source: hosted - version: "3.0.10" + version: "3.0.9" leak_tracker_testing: dependency: transitive description: name: leak_tracker_testing - sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1" + sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" url: "https://pub.dev" source: hosted - version: "3.0.2" + version: "3.0.1" lints: dependency: transitive description: @@ -111,26 +111,26 @@ packages: dependency: transitive description: name: matcher - sha256: "12956d0ad8390bbcc63ca2e1469c0619946ccb52809807067a7020d57e647aa6" + sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 url: "https://pub.dev" source: hosted - version: "0.12.18" + version: "0.12.17" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: "9c337007e82b1889149c82ed242ed1cb24a66044e30979c44912381e9be4c48b" + sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec url: "https://pub.dev" source: hosted - version: "0.13.0" + version: "0.11.1" meta: dependency: transitive description: name: meta - sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394" + sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c url: "https://pub.dev" source: hosted - version: "1.17.0" + version: "1.16.0" path: dependency: transitive description: @@ -148,10 +148,10 @@ packages: dependency: transitive description: name: source_span - sha256: "56a02f1f4cd1a2d96303c0144c93bd6d909eea6bee6bf5a0e0b685edbd4c47ab" + sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c" url: "https://pub.dev" source: hosted - version: "1.10.2" + version: "1.10.1" stack_trace: dependency: transitive description: @@ -188,26 +188,26 @@ packages: dependency: transitive description: name: test_api - sha256: "93167629bfc610f71560ab9312acdda4959de4df6fac7492c89ff0d3886f6636" + sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd url: "https://pub.dev" source: hosted - version: "0.7.9" + version: "0.7.4" vector_math: dependency: transitive description: name: vector_math - sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b + sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.1.4" vm_service: dependency: transitive description: name: vm_service - sha256: "45caa6c5917fa127b5dbcfbd1fa60b14e583afdc08bfc96dda38886ca252eb60" + sha256: ddfa8d30d89985b96407efce8acbdd124701f96741f2d981ca860662f1c0dc02 url: "https://pub.dev" source: hosted - version: "15.0.2" + version: "15.0.0" sdks: - dart: ">=3.9.0-0 <4.0.0" + dart: ">=3.7.0-0 <4.0.0" flutter: ">=3.18.0-18.0.pre.54"