Skip to content

Commit f46499b

Browse files
authored
Merge pull request #17 from chenenyu/dev
issue 16
2 parents 642143b + 9acc837 commit f46499b

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## [0.4.2] - 2021/12/03.
2+
3+
* issue #16.
4+
15
## [0.4.1] - 2021/11/04.
26

37
* Fix a null cast error.

lib/src/lifecycle_aware.dart

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ import 'package:flutter/widgets.dart';
44
mixin LifecycleAware {
55
LifecycleEvent? _currentLifecycleState;
66

7+
LifecycleEvent? get currentLifecycleState => _currentLifecycleState;
8+
79
@mustCallSuper
810
void handleLifecycleEvents(List<LifecycleEvent> events) {
911
if (_currentLifecycleState == events.last) {
@@ -39,7 +41,7 @@ mixin LifecycleAware {
3941

4042
void onLifecycleEvent(LifecycleEvent event);
4143

42-
/// Used for a indexed child, such as a item of [ListView]/[GridView].
44+
/// Used for an indexed child, such as an item of [ListView]/[GridView].
4345
int? get itemIndex => null;
4446
}
4547

pubspec.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: lifecycle
22
description: Lifecycle support for Flutter widgets.
3-
version: 0.4.1
3+
version: 0.4.2
44
homepage: https://github.com/chenenyu/lifecycle
55
publish_to: https://pub.dev
66

0 commit comments

Comments
 (0)