body: new TabBarView(
controller: _tabController,
children: [
_buildRecordTab(),
_buildMemoList(),
new Center(
child: new Text("Settings"), // TODO : build settings screen
),
]),
Widget _buildMemoList(){
return new Column(
children: [
new Flexible(
child: new FirebaseAnimatedList(
query
: reference,
sort: (a, b) =>
b.key.compareTo(a.key
),
padding: new EdgeInsets.all(8.0
),
reverse: false,
itemBuilder:
(_, DataSnapshot snapshot, Animation<double> animation) {
return new MnemoItem(snapshot: snapshot, animation: animation);
})
),
]
);
}
setState() called after dispose(): FirebaseAnimatedListState#a417b(lifecycle state: defunct, not mounted)
This error happens if you call setState() on a State object for a widget that no longer appears in the widget tree (e.g., whose parent widget no longer includes the widget in its build). This error can occur when code calls setState() from a timer or an animation callback. The preferred solution is to cancel the timer or stop listening to the animation in the dispose() callback. Another solution is to check the "mounted" property of this object before calling setState() to ensure the object is still in the tree.
This error might indicate a memory leak if setState() is being called because another object is retaining a reference to this State object after it has been removed from the tree. To avoid memory leaks, consider breaking the reference to this object during dispose().
#0 State.setState.<anonymous closure> (package:flutter/src/widgets/<…>void _onChildAdded(int index, DataSnapshot snapshot) {
if (!_loaded) {
return; // AnimatedList is not created yet
}
if (mounted) _animatedListKey.currentState.insertItem(index, duration: widget.duration);
}
--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Ian Hickson
😸
2017-10-18 22:16:13.691781+0200 Runner[27448:431115] [VERBOSE-2:dart_error.cc(16)] Unhandled exception:
setState() called after dispose(): FirebaseAnimatedListState#f3cf5(lifecycle state: defunct, not mounted)
This error happens if you call setState() on a State object for a widget that no longer appears in the widget tree (e.g., whose parent widget no longer includes the widget in its build). This error can occur when code calls setState() from a timer or an animation callback. The preferred solution is to cancel the timer or stop listening to the animation in the dispose() callback. Another solution is to check the "mounted" property of this object before calling setState() to ensure the object is still in the tree.
This error might indicate a memory leak if setState() is being called because another object is retaining a reference to this State object after it has been removed from the tree. To avoid memory leaks, consider breaking the reference to this object during dispose().
#0 State.setState.<anonymous closure> (package:flutter/src/widgets/framework.dart:1144)
#1 State.setState (package:flutter/src/widgets/framework.dart:1161)
#2 FirebaseAnimatedListState._onChildChanged (package:firebase_database/ui/firebase_animated_list.dart:185)
#3 FirebaseSortedList._onChildChanged (package:firebase_database/ui/firebase_sorted_list.dart:99)
#4 _RootZone.runUnaryGuarded (dart:async/zone.dart:1314)
#5 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:330)
#6 _DelayedData.perform (dart:async/stream_impl.dart:578)
#7 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:694)
#8 _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:654)
#9 _microtaskLoop (dart:async/schedule_microtask.dart:41)
#10 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50)
2017-10-18 22:16:13.702582+0200 Runner[27448:431115] [VERBOSE-2:dart_error.cc(16)] Unhandled exception:
setState() called after dispose(): FirebaseAnimatedListState#c0cb6(lifecycle state: defunct, not mounted)
This error happens if you call setState() on a State object for a widget that no longer appears in the widget tree (e.g., whose parent widget no longer includes the widget in its build). This error can occur when code calls setState() from a timer or an animation callback. The preferred solution is to cancel the timer or stop listening to the animation in the dispose() callback. Another solution is to check the "mounted" property of this object before calling setState() to ensure the object is still in the tree.
This error might indicate a memory leak if setState() is being called because another object is retaining a reference to this State object after it has been removed from the tree. To avoid memory leaks, consider breaking the reference to this object during dispose().
#0 State.setState.<anonymous closure> (package:flutter/src/widgets/framework.dart:1144)
#1 State.setState (package:flutter/src/widgets/framework.dart:1161)
#2 FirebaseAnimatedListState._onChildChanged (package:firebase_database/ui/firebase_animated_list.dart:185)
#3 FirebaseSortedList._onChildChanged (package:firebase_database/ui/firebase_sorted_list.dart:99)
#4 _RootZone.runUnaryGuarded (dart:async/zone.dart:1314)
#5 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:330)
#6 _DelayedData.perform (dart:async/stream_impl.dart:578)
#7 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:694)
#8 _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:654)
#9 _microtaskLoop (dart:async/schedule_microtask.dart:41)
#10 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50)
2017-10-18 22:16:13.710405+0200 Runner[27448:431115] [VERBOSE-2:dart_error.cc(16)] Unhandled exception:
setState() called after dispose(): FirebaseAnimatedListState#f3cf5(lifecycle state: defunct, not mounted)
This error happens if you call setState() on a State object for a widget that no longer appears in the widget tree (e.g., whose parent widget no longer includes the widget in its build). This error can occur when code calls setState() from a timer or an animation callback. The preferred solution is to cancel the timer or stop listening to the animation in the dispose() callback. Another solution is to check the "mounted" property of this object before calling setState() to ensure the object is still in the tree.
This error might indicate a memory leak if setState() is being called because another object is retaining a reference to this State object after it has been removed from the tree. To avoid memory leaks, consider breaking the reference to this object during dispose().
#0 State.setState.<anonymous closure> (package:flutter/src/widgets/framework.dart:1144)
#1 State.setState (package:flutter/src/widgets/framework.dart:1161)
#2 FirebaseAnimatedListState._onValue (package:firebase_database/ui/firebase_animated_list.dart:194)
#3 FirebaseSortedList._onValue (package:firebase_database/ui/firebase_sorted_list.dart:103)
#4 _RootZone.runUnaryGuarded (dart:async/zone.dart:1314)
#5 _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:330)
#6 _DelayedData.perform (dart:async/stream_impl.dart:578)
#7 _StreamImplEvents.handleNext (dart:async/stream_impl.dart:694)
#8 _PendingEvents.schedule.<anonymous closure> (dart:async/stream_impl.dart:654)
#9 _microtaskLoop (dart:async/schedule_microtask.dart:41)
#10 _startMicrotaskLoop (dart:async/schedule_microtask.dart:50)
2017-10-18 22:16:13.718848+0200 Runner[27448:431115] [VERBOSE-2:dart_error.cc(16)] Unhandled exception:
setState() called after dispose(): FirebaseAnimatedListState#c0cb6(lifecycle state: defunct, not mounted)
--
You received this message because you are subscribed to the Google Groups "Flutter Dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to flutter-dev...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Ian Hickson
😸