feat: Add full-screen receipt viewer, display trip participants in calendar, and restrict trip management options to creator.

This commit is contained in:
Van Leemput Dayron
2025-12-04 14:25:27 +01:00
parent e174c1274d
commit 9f2bfcaa55
6 changed files with 296 additions and 42 deletions

View File

@@ -322,7 +322,40 @@ class ExpenseDetailDialog extends StatelessWidget {
color: Colors.transparent,
child: InkWell(
onTap: () {
// TODO: Show full screen image
showDialog(
context: context,
builder: (context) => Dialog(
backgroundColor: Colors.transparent,
insetPadding: EdgeInsets.zero,
child: Stack(
alignment: Alignment.center,
children: [
InteractiveViewer(
minScale: 0.5,
maxScale: 4.0,
child: Image.network(
expense.receiptUrl!,
fit: BoxFit.contain,
),
),
Positioned(
top: 40,
right: 20,
child: IconButton(
icon: const Icon(
Icons.close,
color: Colors.white,
size: 30,
),
onPressed: () => Navigator.of(
context,
).pop(),
),
),
],
),
),
);
},
),
),