-
Notifications
You must be signed in to change notification settings - Fork 309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean Code #67
Comments
@edTheGuy00 This is absolutely great decision to go for refactoring. Everyone will appreciate your work. 👊 |
@edTheGuy00 I've merged your
|
@hyochan Yes that's right. I'm still doing some work on it I can close this issue later on. |
This is really minor so I figured I'd put it here: -> the other weekday props are written with a capital D , e.g. : I realise this may be nitpicking, but it'd be nice if it would be streamlined :) |
@KnockaertSven sure I'll take a look at this |
@hyochan @KnockaertSven I think it should be lowercase d |
@edTheGuy00 Agree. |
This issue is stale because it has been open 90 days with no activity. Leave a comment or this will be closed in 7 days. |
This is not an issue but more of a proposition. I've used this library on two of my projects, great library. However, every time I look at the source code it's honestly a bit confusing.
Main Issue
There is more than 1,000 lines of code in one file, code is a bit messy, has too many nested ternary operators, makes it difficult to read and maintain.
Proposition
I propose to refactor and move out some code from the
flutter_calendar_carousel.dart
file into more reusable and maintainable widgets. For example,We could move all this code into a separate widget class and just use
The same can be done to various widgets used.
The project structure should look something like this.
Benefits
The text was updated successfully, but these errors were encountered: