Skip to content

feat: update loading widget with twin animation#18

Merged
TalebRafiepour merged 2 commits into
developfrom
update-loading-widget
Dec 17, 2025
Merged

feat: update loading widget with twin animation#18
TalebRafiepour merged 2 commits into
developfrom
update-loading-widget

Conversation

@elhamebrahimpour

Copy link
Copy Markdown
Collaborator

Description

Related Issue

Closes #

Type of Change

  • 🐛 Bug fix (non-breaking change which fixes an issue)
  • ✨ New feature (non-breaking change which adds functionality)
  • 💥 Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • 📝 Documentation update
  • 🎨 UI/UX improvement
  • ♿ Accessibility improvement
  • 🌐 Localization/Translation
  • ⚡ Performance improvement
  • ♻️ Code refactoring
  • ✅ Test addition/improvement

Changes Made

Screenshots/Videos

Click to view screenshots/videos

Testing

Platforms Tested

  • Android
  • iOS

Test Coverage

  • Added/updated unit tests
  • Added/updated widget tests
  • Added/updated integration tests
  • All existing tests passing
  • Manual testing completed

Testing Steps

Checklist

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have run flutter analyze and resolved all issues
  • I have run dart format . to format my code
  • I have updated the README.md if needed
  • I have added/updated localization strings if needed (both app_en.arb and app_fa.arb)

Breaking Changes

N/A

Additional Context

Commit Message Format

Main commit type: <type>(<scope>): <subject>


Reviewer Notes:

@elhamebrahimpour

Copy link
Copy Markdown
Collaborator Author

The loading widget has been updated. I have implemented two versions: one using the SpinKit package and another using Tween animations. Please let me know which one is preferred for use in the app.

Comment thread lib/core/widgets/loading.dart Outdated
@override
void initState() {
super.initState();
_c = AnimationController(vsync: this, duration: widget.speed)..repeat();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The naming should be improved instead of _c use somthing like _animationController

this.spacingFactor = 0.10,
this.minHeightFactor = 0.12,
this.speed = const Duration(milliseconds: 1200),
});

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

At this time, I think the speed should be faster

@TalebRafiepour TalebRafiepour left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good work overall. Only a small modification is needed, and the use of SpinKit is not required at this time.

@TalebRafiepour TalebRafiepour merged commit ff28216 into develop Dec 17, 2025
1 check passed
@TalebRafiepour TalebRafiepour deleted the update-loading-widget branch December 17, 2025 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants