-
Notifications
You must be signed in to change notification settings - Fork 239
feat: Added Linear Scroll and Bidirectional Scroll animations, added Animation Tab #1258
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
base: development
Are you sure you want to change the base?
Conversation
…ded new Animation Tab - Added Linear Scroll animation (left-to-right and right-to-left without flipping) - Added Bidirectional Scroll animation (left-to-right and right-to-left with flipping) - Created Animation Tab UI to support new animations
Reviewer's Guide by SourceryThis pull request introduces a new 'Animation Tab' to the UI, along with two new animation options: 'Linear Scroll' and 'Bidirectional Scroll'. The 'Animation Tab' is implemented using a Updated class diagram for HomeScreenclassDiagram
class HomeScreen {
-_tabController: TabController
+initState()
+dispose()
+build(BuildContext context): Widget
}
class _HomeScreenState {
-_tabController: TabController
+initState()
+dispose()
+build(BuildContext context): Widget
+handleTextChange()
+handleBadgeWidthChange()
+handleBadgeHeightChange()
}
class AnimationTab {
+build(BuildContext context): Widget
}
class CustomAnimationTab {
+build(BuildContext context): Widget
}
class EffectTab {
+build(BuildContext context): Widget
}
HomeScreen -- _HomeScreenState
_HomeScreenState *-- AnimationTab : uses
_HomeScreenState *-- CustomAnimationTab : uses
_HomeScreenState *-- EffectTab : uses
File-Level Changes
Assessment against linked issues
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @Vishveshwara - I've reviewed your changes - here's some feedback:
Overall Comments:
- Consider using a
PageView
instead of aTabBar
andTabBarView
for a smoother animation between tabs. - Ensure the new animations are easily distinguishable from existing ones in the UI.
Here's what I looked at during the review
- 🟡 General issues: 1 issue found
- 🟢 Security: all looks good
- 🟢 Testing: all looks good
- 🟢 Complexity: all looks good
- 🟢 Documentation: all looks good
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
lib/view/widgets/homescreentabs.dart
Outdated
crossAxisCount: 3, // 3 columns | ||
childAspectRatio: 110.w / 65.h, // width to height ratio | ||
), | ||
itemCount: 2, // Total items (3 rows × 3 columns) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: Update misleading comment about total grid items.
The comment suggests there are 3 rows × 3 columns whereas the itemCount is set to 2. Consider updating the comment to accurately reflect the number of grid items or clarifying the intended design.
@Jhalakupadhyay please review this PR. |
@Vishveshwara how are we handling the new custom animation transfer to the badge? |
@Vishveshwara I need you to focus on this PR first and then we can go ahead with the font let's tackle smaller problems first. |
I have used the same provider (animation_badge_provider) used for regular animations. |
No this will not work try and understand how we are transferring data. |
I have added the changes in lib/bademagic_module/models/mode.dart and also made it work on the saved badges screen. |
It is wrong, try to understand first how the badge works, you cannot create a new mode and transfer it to the badge if the firmware does not support it. |
@Jhalakupadhyay Thank you for your feedback. Since implementing this feature requires firmware modifications, could you please clarify the necessary changes in the firmware repository to support custom animations? I came across this PR: fossasia/badgemagic-firmware#15. Should I follow the steps outlined there, or are there any additional modifications needed? I would appreciate your guidance on how to successfully complete this PR. |
Hey @adityastic , could you please help me out with this PR. |
@Vishveshwara This implementation should follow the same approach as the Python library. Do you think you can make it work? |
Fixes #892
Changes
Screenshots / Recordings
Animation_support.vid.mp4
Checklist:
constants.dart
without hard coding any value.Summary by Sourcery
Add new animation capabilities to the Badge Magic application by introducing Linear Scroll and Bidirectional Scroll animations, and creating a new Animation Tab in the user interface.
New Features:
Enhancements: