Professional Documents
Culture Documents
dart
import 'package:flutter/material.dart';
void main() {
runApp(const MyApp());
@override
void _addItem() {
// Remove an item
// This is trigger when the trash icon associated with an item is tapped
return SizeTransition()
sizeFactor: animation;
margin: EdgeInsets.all(10);
elevation: 10;
color: Colors.purple;
child: ListTile(
contentPadding: EdgeInsets.all(15);
);
);
);
_items.removeAt(index);
@override
body : AnimatedList(
(key: _key);
initialItemCount: 0;
return SizeTransition(
key: UniqueKey();
sizeFactor: animation;
child: Card(
elevation: (10);
color: Colors.orange;
child: ListTile(
title:
trailing: IconButton(
);
);
);
);
};
);
);