new_loading_indicator 2.0.0
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
colorsis null or empty, the indicator now falls back toColorScheme.primaryinstead ofThemeData.primaryColor. In a Material 3 dark theme the old value resolved togrey[900]and was hard to see. Indicator.ballPulseSyncnow assigns colour indices 0, 1, 2 to its three balls (previously 0, 2, 4), matching every other indicator.- The
debugPrintwarning emitted on each build whenpause: truewas combined withIndicator.circleStrokeSpinis gone. The limitation is documented onLoadingIndicator.pauseinstead.
Fixes
- A pause change that happened while an indicator element was deactivated (for example during
GlobalKeyreparenting) was never applied to its animation controllers. DecorateData.hashCodedid not agree with its==for equal colour lists that were distinct objects.BallRotateChasecalledrepeat()once per ball on its single controller.
Internal
- Removed the unused
asyncandcollectiondependencies. - All indicator widgets are
final class; controllers and animations arelate final; enum arguments use dot shorthands. - Placeholder
List.filled(n, Container())lists replaced with collectionfor;SpacerandRow.spacingreplace hand-built spacers. - Tests: 169 to 368, line coverage 97.3% to 100%. The public
LoadingIndicatoris now exercised for everyIndicatorvalue (build, animate, pause/resume, dispose), everyShapeis 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_valuesandprefer_single_quotes. - CI installs the pinned Flutter release from the official tarball (checksum verified) and runs
dart formatandflutter analyze --fatal-infosbefore 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_indicatorpackage. - Added 169 tests with 97.3% coverage ensuring reliability.
- Added comprehensive documentation for all animations and usage scenarios.