We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e2f173 commit 81d8828Copy full SHA for 81d8828
packages/firebase_database/example/lib/main.dart
@@ -156,7 +156,16 @@ class _MyHomePageState extends State<MyHomePage> {
156
Animation<double> animation, int index) {
157
return SizeTransition(
158
sizeFactor: animation,
159
- child: Text("$index: ${snapshot.value.toString()}"),
+ child: ListTile(
160
+ trailing: IconButton(
161
+ onPressed: () =>
162
+ _messagesRef.child(snapshot.key).remove(),
163
+ icon: Icon(Icons.delete),
164
+ ),
165
+ title: Text(
166
+ "$index: ${snapshot.value.toString()}",
167
168
169
);
170
},
171
),
0 commit comments