new_loading_indicator 2.0.0 copy "new_loading_indicator: ^2.0.0" to clipboard
new_loading_indicator: ^2.0.0 copied to clipboard

A fork of the loading_indicator package, providing a rich collection of loading animations for Flutter applications.

2.0.0 #

Breaking changes

  • Requires Dart 3.13.3 and Flutter 3.47.3 or newer.
  • When colors is null or empty, the indicator now falls back to ColorScheme.primary instead of ThemeData.primaryColor. In a Material 3 dark theme the old value resolved to grey[900] and was hard to see.
  • Indicator.ballPulseSync now assigns colour indices 0, 1, 2 to its three balls (previously 0, 2, 4), matching every other indicator.
  • The debugPrint warning emitted on each build when pause: true was combined with Indicator.circleStrokeSpin is gone. The limitation is documented on LoadingIndicator.pause instead.

Fixes

  • A pause change that happened while an indicator element was deactivated (for example during GlobalKey reparenting) was never applied to its animation controllers.
  • DecorateData.hashCode did not agree with its == for equal colour lists that were distinct objects.
  • BallRotateChase called repeat() once per ball on its single controller.

Internal

  • Removed the unused async and collection dependencies.
  • All indicator widgets are final class; controllers and animations are late final; enum arguments use dot shorthands.
  • Placeholder List.filled(n, Container()) lists replaced with collection for; Spacer and Row.spacing replace hand-built spacers.
  • Tests: 169 to 368, line coverage 97.3% to 100%. The public LoadingIndicator is now exercised for every Indicator value (build, animate, pause/resume, dispose), every Shape is checked against real canvas calls, and the controller lifecycle is covered.
  • Enabled prefer_final_locals, prefer_final_in_for_each, unnecessary_lambdas, avoid_redundant_argument_values and prefer_single_quotes.
  • CI installs the pinned Flutter release from the official tarball (checksum verified) and runs dart format and flutter analyze --fatal-infos before tests.

1.2.2 #

  • Update dependencies and Dart/Flutter SDK constraints.

1.2.1 #

Update Dart and Flutter SDK version constraints. Fix failing tests. Replace GitHub repository URL with GitLab.

1.1.0 #

Update version numbers, dependencies, and analysis options. Adjusted code formatting for consistency and improved animation handling in various indicators.

1.0.2 #

  • Bump Dart and Flutter SDK constraints.
  • Change the repository URL.

1.0.1 #

  • Created an example application to showcase the loading indicator animations.
  • Added the link to the example application running on GitLab Pages to README.md.

1.0.0 #

  • Initial release of the new_loading_indicator package.
  • Added 169 tests with 97.3% coverage ensuring reliability.
  • Added comprehensive documentation for all animations and usage scenarios.
12
likes
160
points
934
downloads

Documentation

API reference

Publisher

verified publisherbizjak.dev

Weekly Downloads

A fork of the loading_indicator package, providing a rich collection of loading animations for Flutter applications.

Repository (GitLab)
View/report issues

Topics

#loading-indicator

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on new_loading_indicator