Skip to content

Commit b71cf44

Browse files
author
Kamil Klyta
committed
Add warp indicator to the readme file
1 parent 8e0b20f commit b71cf44

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
## 1.0.0
33
- Stable nullsafety release.
44
- **BREAKING**: Removed `prevState` from `IndicatorController` class.
5-
Because flutter only marks widget that it is ready for rebuilt, it is possible that controller state will change more than once during single frame what causes one or more steps to be skipped. To still use `prevState` and `didChangeState` method, you can use `IndicatorStateHelper`. Take a look at `check_mark_indicator.dart` or `warp_indicator.dart` for example usage.
5+
Because flutter only marks the widget that it is ready for rebuild, it is possible that the controller state will change more than once during a single frame what causes one or more steps to be skipped. To still use `prevState` and `didChangeState` method, you can use `IndicatorStateHelper`. Take a look at `check_mark_indicator.dart` or `warp_indicator.dart` for example usage.
66
- Added `IndicatorStateHelper` class.
77
- Added `IndicatorController` unit tests.
88
- Added warp indicator example.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ Almost all of these examples are available in the example application.
6868
| :--------------------------------------------------------------------------: | :----------------------------------------------------------------------------------: |
6969
| ![plane_indicator](readme/plane_indicator.gif) | ![ice_cream_indicator](readme/ice_cream_indicator.gif) |
7070

71-
| Simple indicator made with `PositionedIndicatorContainer` [[SOURCE CODE](example/lib/indicators/simple_indicator.dart)] | Envelope indicator |
71+
| Warp indicator [[SOURCE CODE](example/lib/indicators/warp_indicator.dart)] | Envelope indicator |
7272
| :---------------------------------------------------------------------------------------------------------------------: | :----------------------------------------------: |
73-
| ![simple_indicator](readme/simple_with_opacity.gif) | ![letter_indicator](readme/letter_indicator.gif) |
73+
| ![simple_indicator](readme/warp_indicator.gif) | ![letter_indicator](readme/letter_indicator.gif) |
7474

7575
| Indicator with complete state [[SOURCE CODE](example/lib/indicators/check_mark_indicator.dart)] | Your indicator |
7676
| :---------------------------------------------------------------------------------------------: | :-------------------------------------------------------------------------: |

example/lib/indicators/warp_indicator.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,8 @@ class _WarpIndicatorState extends State<WarpIndicator>
113113
Widget build(BuildContext context) {
114114
return CustomRefreshIndicator(
115115
offsetToArmed: _indicatorSize,
116+
leadingGlowVisible: false,
117+
trailingGlowVisible: false,
116118
onRefresh: () => Future.delayed(const Duration(seconds: 2)),
117119
child: widget.child,
118120
builder: (

readme/warp_indicator.gif

2.87 MB
Loading

0 commit comments

Comments
 (0)