File tree 4 files changed +12
-15
lines changed
4 files changed +12
-15
lines changed Original file line number Diff line number Diff line change
1
+ ## [ 0.0.3] - 2020/09/24.
2
+
3
+ * Fix bugs in nested page view.
4
+
1
5
## [ 0.0.2] - 2020/09/23.
2
6
3
7
* Support nested page view.
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ class _MyPageViewState extends State<MyPageView> {
171
171
title: Text('MyPageView'),
172
172
),
173
173
// Wrap PageView
174
- body: PageViewLifecycleWrapper (
174
+ body: ParentPageLifecycleWrapper (
175
175
controller: _pageController,
176
176
onLifecycleEvent: (event) { // optional.
177
177
print('MyPageView#${event.toString()}');
@@ -180,15 +180,15 @@ class _MyPageViewState extends State<MyPageView> {
180
180
controller: _pageController,
181
181
children: [
182
182
// Wrap child of PageView
183
- PageLifecycleWrapper (
183
+ ChildPageLifecycleWrapper (
184
184
index: 0,
185
185
wantKeepAlive: true,
186
186
onLifecycleEvent: (event) {
187
187
print('Page@0#${event.toString()}');
188
188
},
189
189
child: Container(),
190
190
),
191
- PageLifecycleWrapper (
191
+ ChildPageLifecycleWrapper (
192
192
index: 1,
193
193
wantKeepAlive: true,
194
194
onLifecycleEvent: (event) {
Original file line number Diff line number Diff line change @@ -50,17 +50,10 @@ class _NestedPageViewState extends State<NestedPageView> with SingleTickerProvid
50
50
child: TabBarView (
51
51
controller: _tabController,
52
52
children: < Widget > [
53
- ChildPageLifecycleWrapper (
54
- index: 0 ,
55
- wantKeepAlive: true ,
56
- onLifecycleEvent: (event) {
57
- log.add ('OuterPage@0#${event .toString ()}' );
58
- },
59
- child: Center (
60
- child: Text (
61
- 'This is the first tab' ,
62
- style: const TextStyle (fontSize: 20 ),
63
- ),
53
+ Center (
54
+ child: Text (
55
+ 'This is the first tab' ,
56
+ style: const TextStyle (fontSize: 20 ),
64
57
),
65
58
),
66
59
ChildPageLifecycleWrapper (
Original file line number Diff line number Diff line change 1
1
name : lifecycle
2
2
description : Lifecycle support for Flutter widgets.
3
- version : 0.0.2
3
+ version : 0.0.3
4
4
homepage : https://github.com/chenenyu/lifecycle
5
5
publish_to : https://pub.dev
6
6
You can’t perform that action at this time.
0 commit comments