21 Widget
build(BuildContext context) {
23 decoration: BoxDecoration(
24 color: Theme.of(context).colorScheme.surface,
25 borderRadius: BorderRadius.circular(12.sp),
28 color: Colors.black.withOpacity(0.05),
30 offset:
const Offset(0, 2),
34 color: Colors.grey.withOpacity(0.2),
39 color: Colors.transparent,
41 borderRadius: BorderRadius.circular(12.sp),
43 _showDocumentDetailsDialog(context);
52 decoration: BoxDecoration(
54 Theme.of(context).colorScheme.primary.withOpacity(0.1),
55 borderRadius: BorderRadius.circular(6.sp),
58 HugeIcons.strokeRoundedPdf01,
59 color: Theme.of(context).colorScheme.primary,
63 SizedBox(width: 8.sp),
66 crossAxisAlignment: CrossAxisAlignment.start,
67 mainAxisAlignment: MainAxisAlignment.center,
71 style: Theme.of(context).textTheme.bodySmall?.copyWith(
72 fontWeight: FontWeight.bold,
75 overflow: TextOverflow.ellipsis,
77 SizedBox(height: 2.sp),
80 style: Theme.of(context).textTheme.bodySmall?.copyWith(
89 Icons.arrow_forward_ios_rounded,
104 builder: (BuildContext context) {
107 shape: RoundedRectangleBorder(
108 borderRadius: BorderRadius.circular(16.sp),
111 padding: EdgeInsets.all(20.sp),
113 mainAxisSize: MainAxisSize.min,
114 crossAxisAlignment: CrossAxisAlignment.start,
121 decoration: BoxDecoration(
122 color: Theme.of(context)
126 borderRadius: BorderRadius.circular(8.sp),
129 HugeIcons.strokeRoundedPdf01,
130 color: Theme.of(context).colorScheme.primary,
134 SizedBox(width: 12.sp),
139 Theme.of(context).textTheme.titleMedium?.copyWith(
140 fontWeight: FontWeight.bold,
146 SizedBox(height: 20.sp),
151 SizedBox(height: 8.sp),
156 SizedBox(height: 20.sp),
158 mainAxisAlignment: MainAxisAlignment.end,
162 Navigator.of(context).pop();
171 SizedBox(width: 8.sp),
174 Navigator.of(context).pop();
177 ScaffoldMessenger.of(context).showSnackBar(
193 ScaffoldMessenger.of(context).showSnackBar(
197 'Error opening pdf file try again'),
202 style: ElevatedButton.styleFrom(
204 foregroundColor: Theme.of(context).colorScheme.surface,
206 horizontal: 15.sp, vertical: 12.sp),
207 shape: RoundedRectangleBorder(
208 borderRadius: BorderRadius.circular(80.sp),
227 crossAxisAlignment: CrossAxisAlignment.start,
233 style: Theme.of(context).textTheme.bodyMedium?.copyWith(
238 SizedBox(width: 8.sp),
242 style: Theme.of(context).textTheme.bodyMedium,