Vaibhav_Feature-#768 #59

Closed
vaibhav.surve wants to merge 74 commits from Vaibhav_Feature-#768 into Feature_Expense
Showing only changes of commit 5f66c4c647 - Show all commits

View File

@ -446,7 +446,7 @@ class _TileContainer extends StatelessWidget {
}
class _AttachmentsSection extends StatelessWidget {
final List<File> attachments;
final RxList<File> attachments;
final ValueChanged<File> onRemove;
final VoidCallback onAdd;
@ -458,12 +458,14 @@ class _AttachmentsSection extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Wrap(
return Obx(() => Wrap(
spacing: 8,
runSpacing: 8,
children: [
...attachments.map((file) =>
_AttachmentTile(file: file, onRemove: () => onRemove(file))),
...attachments.map((file) => _AttachmentTile(
file: file,
onRemove: () => onRemove(file),
)),
GestureDetector(
onTap: onAdd,
child: Container(
@ -478,7 +480,7 @@ class _AttachmentsSection extends StatelessWidget {
),
),
],
);
));
}
}