diff --git a/lib/helpers/widgets/expense/expense_form_widgets.dart b/lib/helpers/widgets/expense/expense_form_widgets.dart index 027b82f..e921683 100644 --- a/lib/helpers/widgets/expense/expense_form_widgets.dart +++ b/lib/helpers/widgets/expense/expense_form_widgets.dart @@ -154,8 +154,10 @@ class TileContainer extends StatelessWidget { const TileContainer({required this.child, Key? key}) : super(key: key); @override - Widget build(BuildContext context) => - Container(padding: const EdgeInsets.all(14), decoration: _tileDecoration, child: child); + Widget build(BuildContext context) => Container( + padding: const EdgeInsets.all(14), + decoration: _tileDecoration, + child: child); } /// ========================== @@ -187,9 +189,8 @@ class AttachmentsSection extends StatelessWidget { @override Widget build(BuildContext context) { return Obx(() { - final activeExisting = existingAttachments - .where((doc) => doc['isActive'] != false) - .toList(); + final activeExisting = + existingAttachments.where((doc) => doc['isActive'] != false).toList(); final imageFiles = attachments.where(_isImageFile).toList(); final imageExisting = activeExisting @@ -336,8 +337,8 @@ class AttachmentsSection extends StatelessWidget { Widget _buildActionTile(IconData icon, VoidCallback onTap) => GestureDetector( onTap: onTap, child: Container( - width: 80, - height: 80, + width: 50, + height: 50, decoration: _tileDecoration.copyWith( border: Border.all(color: Colors.grey.shade400), ), @@ -359,7 +360,8 @@ class _AttachmentTile extends StatelessWidget { Widget build(BuildContext context) { final fileName = file.path.split('/').last; final extension = fileName.split('.').last.toLowerCase(); - final isImage = AttachmentsSection.allowedImageExtensions.contains(extension); + final isImage = + AttachmentsSection.allowedImageExtensions.contains(extension); final (icon, color) = _fileIcon(extension);