style: Improve code formatting; enhance readability by adjusting line breaks and widget dimensions

This commit is contained in:
Vaibhav Surve 2025-09-18 16:32:49 +05:30
parent 47666c7897
commit a1cd212e74

View File

@ -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);