Skip to content
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

v1.0.0 #24

Merged
merged 12 commits into from
Aug 22, 2024
Merged

v1.0.0 #24

merged 12 commits into from
Aug 22, 2024

Conversation

basemosama
Copy link
Member

1.0.0

Note: This release contains breaking changes.

New Features:

  • Added new animation types: fade, horizontal slide, vertical slide, and scale.
  • Introduced PlayxThemeAnimation class to manage animations. This class includes:
    • Specific animation types are represented by subclasses such as [PlayxThemeClipperAnimation], [PlayxThemeFadeAnimation], [PlayxThemeScaleAnimation], [PlayxThemeHorizontalSlideAnimation], and [PlayxThemeVerticalSlideAnimation].
    • Ability to reverse the animation.
    • Set the duration of the animation.
    • Handle specific animations settings and actions.

Enhancements:

  • Migrated shared preferences to SharedPreferencesAsync for improved performance and async handling.
  • Streamlined package by removing the GetX dependency, reducing the overall footprint.
  • No need to call PlayxCore.bootCore() anymore. The package now initializes automatically.

Breaking Changes:

  • Theme Functions Update: All PlayxTheme functions now use the [PlayxThemeAnimation] parameter to specify animations. The previous animate parameter has been removed. If [animation] is null, the theme change will be instant. If [animation] is provided, the theme change will be animated based on the animation type.
  • Shared Preferences Migration: Migrated from SharedPreferences to SharedPreferencesAsync. If you're upgrading, set migratePrefsToAsyncPrefs to true in PlayxThemeConfig to ensure a smooth transition.
  • Theme Colors: Removed background, onBackground, surfaceVariantcolors as surface, onSurface, surfaceContainerHighest should be used instead based on latest material changes in flutter v3.22.0.

…theme and remove GetX dependency - CU-86c0287m8
- Specific types of animations are represented by subclasses such as PlayxThemeClipperAnimation, PlayxThemeFadeAnimation, etc.
- Move animation specific properties to it's class.
- Update PlayxTheme update methods to include animation.
- If [animation] is `null`, the theme will change instantly. If [animation] is provided,
- the theme change will be animated according to the type of animation specified.
…eVariant`colors as `surface`, `onSurface`, `surfaceContainerHighest` should be used instead based on latest material changes in flutter v3.22.0.

 - CU-86c0287m8
@basemosama basemosama merged commit fbee5b3 into main Aug 22, 2024
1 check passed
Copy link

codecov bot commented Aug 22, 2024

Codecov Report

Attention: Patch coverage is 17.76316% with 125 lines in your changes missing coverage. Please review.

Project coverage is 51.32%. Comparing base (5690340) to head (694790f).
Report is 15 commits behind head on main.

Files Patch % Lines
.../widgets/animation/playx_theme_switching_area.dart 0.00% 66 Missing ⚠️
lib/src/model/playx_theme_animation.dart 4.34% 44 Missing ⚠️
lib/src/controller/controller.dart 56.52% 10 Missing ⚠️
...ib/src/widgets/animation/playx_theme_switcher.dart 0.00% 3 Missing ⚠️
lib/src/playx_theme.dart 87.50% 1 Missing ⚠️
lib/src/widgets/playx_inherited_theme.dart 66.66% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main      #24       +/-   ##
===========================================
+ Coverage   37.20%   51.32%   +14.11%     
===========================================
  Files          13       14        +1     
  Lines         301      415      +114     
===========================================
+ Hits          112      213      +101     
- Misses        189      202       +13     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

1 participant