iiumschedule / iium_schedule

Make/Generate IIUM timetable with ease. Integration with IIUM database. App available on Android, MacOS & Windows.
https://iiumschedule.iqfareez.com
MIT License
25 stars 9 forks source link

Schedule Generator Implementation #4

Open PlashSpeed-Aiman opened 2 years ago

PlashSpeed-Aiman commented 2 years ago

Could you explain in short how did you implement the schedule maker? What libraries did you used to draw the schedule etc? I'm trying to do my own implementation in Java/Kotlin

iqfareez commented 2 years ago

Hi, I straightaway use this package to make the timetable, https://pub.dev/packages/flutter_timetable_view. Digging the code, found that it uses CustomPainter to draw a custom layout, but not sure exactly how they calculate the size and position.

I've tried to do it before on my own, using Table, Column and Row, and others, but none of them seems to be working.

Anyway just found this Android library, not sure how you want to lay out the schedule but this one is pretty nice. https://github.com/tlaabs/TimetableView

PlashSpeed-Aiman commented 2 years ago

Thanks for the tip. I'm currently in the process of porting the app to C#/.NET and Kotlin.

iqfareez commented 2 years ago

Great!

media

PlashSpeed-Aiman commented 2 years ago

There's a couple of problems in the schedule maker. image The subject exists, but the error still shows

iqfareez commented 2 years ago

Thanks!

I can repro this on my side. I think it is caused by hardcoded data in request params. I'll look into it

iqfareez commented 2 years ago

Hi. Can you test with the latest release?

If you're using the web app, be sure to force reload to clear the pwa cache.

PlashSpeed-Aiman commented 2 years ago

Latest release is amazing and much more user-friendly than previous.

Request

User need #7 after generating schedule.

Bugs

image

Arrangement of Days on timetable is not aligned

iqfareez commented 2 years ago

Thank you and noted for the bugs report. I'll make a new issue for it.