NIAEFEUP / uni

Mobile app designed to help students of the University of Porto to manage their academic life.
GNU General Public License v3.0
51 stars 17 forks source link

Hide pages and/or cards depending on faculty #1114

Closed bdmendes closed 8 months ago

bdmendes commented 9 months ago

Since the new navbar/nav schema, the old page hide mechanism is now useless. Study factory/conditional rendering for faculty-specific data.

limwa commented 9 months ago

An API I thought for this was

FacultyFilter(
  faculties: ["feup", "fmup"],
  build: (context, authorizedFaculties) => FacultyMap(...)
)

There are a few aspects that I think make this proposal good:

The FacultyFilter would get the user's faculties from a provider.