andoriyaprashant / OpSo

OpSo is a Flutter app that provides comprehensive information about various open-source programs
MIT License
41 stars 75 forks source link

Feat: Refactor Program Navigation to Support Dynamic Program List #31

Closed anuragJoshi05 closed 4 months ago

anuragJoshi05 commented 4 months ago

Describe the feature

Description:

Problem: The current implementation in the OpSo application hardcodes the navigation logic for each program option. This approach limits scalability and maintainability as new programs are added or existing ones are modified.

Solution: I propose refactoring the program navigation to support a dynamic program list. This would involve dynamically generating program options based on a list of programs.

Benefits:

Scalability: Easily add or modify programs without modifying the navigation logic. Maintainability: Reduce code duplication and make future updates simpler and less error-prone. Flexibility: Enable dynamic program listing, enhancing user experience and application adaptability.

Proposed Changes:

Create a Program class to represent program data, including title and image asset path. Define a list of programs and populate it with program data. Update the HomePage widget to generate program options dynamically based on the list of programs. Update the ProgramSearchDelegate to utilize the list of programs for search suggestions. Refactor the navigation logic to navigate based on the selected program from the dynamic program list.

Add ScreenShots

Proposed Dynamic Program List: WhatsApp Image 2024-05-11 at 21 44 51_4e120630 Description: Visual representation of how the dynamic program list should appear in the application.

Record

anuragJoshi05 commented 4 months ago

Kindly assign me this issue

andoriyaprashant commented 4 months ago

Kindly assign me this issue

Go ahead @anuragJoshi05