Skip to content

Latest commit

 

History

History
62 lines (47 loc) · 3.17 KB

README_CN.md

File metadata and controls

62 lines (47 loc) · 3.17 KB

LoadingIndicator

pub package pub package GitHub top language

一个开箱即用的loading加载库,包含34个不同类型动画,灵感来源于loaders.cssNVActivityIndicatorView

Demo

现在你可以点击这个地址来进行预览.3D效果在web上会失效.

动画类型

Type Type Type Type
1. ballPulse 2. ballGridPulse 3. ballClipRotate 4. squareSpin
5. ballClipRotatePulse 6. ballClipRotateMultiple 7. ballPulseRise 8. ballRotate
9. cubeTransition 10. ballZigZag 11. ballZigZagDeflect 12. ballTrianglePath
13. ballTrianglePathColored 14.ballTrianglePathColoredFilled 15. ballScale 16. lineScale
17. lineScaleParty 18. ballScaleMultiple 19. ballPulseSync 20. ballBeat
21. lineScalePulseOut 22. lineScalePulseOutRapid 23. ballScaleRipple 24. ballScaleRippleMultiple
25. ballSpinFadeLoader 26. lineSpinFadeLoader 27. triangleSkewSpin 28. pacman
29. ballGridBeat 30. semiCircleSpin 31. ballRotateChase 32. orbit
33. audioEqualizer 34. circleStrokeSpin

安装

pub安装最新版本。

使用

简单且强大的API。

LoadingIndicator(
    colors: const [Colors.white],       /// 必须, 颜色集合
    indicatorType: Indicator.ballPulse, /// 可选, loading的类型
    strokeWidth: 2,                     /// 可选, 线条宽度,只对含有线条的组件有效
    backgroundColor: Colors.black,      /// 可选, 组件背景色
    pathBackgroundColor: Colors.black   /// 可选, 线条背景色
)

License

Copyright 2019 Tino Guo.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.