48 Widget
build(BuildContext context) {
56 child: SingleChildScrollView(
58 mainAxisAlignment: MainAxisAlignment.start,
59 crossAxisAlignment: CrossAxisAlignment.stretch,
60 mainAxisSize: MainAxisSize.min,
63 controller: TextEditingController(),
66 if (value == null || value.isEmpty) {
67 return AppLocalizations.of(context)
68 .translate(
'Please enter the subject');
73 SizedBox(height: 15.sp),
75 controller: TextEditingController(),
79 if (value == null || value.isEmpty) {
80 return AppLocalizations.of(context)
81 .translate(
'Please describe the issue');
86 SizedBox(height: 15.sp),
89 style: Theme.of(context).textTheme.bodySmall?.copyWith(
90 color: Theme.of(context).hintColor,
93 SizedBox(height: 10.sp),
96 child: ListView.separated(
97 scrollDirection: Axis.horizontal,
99 separatorBuilder: (context, index) => SizedBox(width: 10.sp),
100 itemBuilder: (context, index) {
102 return GestureDetector(
107 decoration: BoxDecoration(
109 color: Theme.of(context).hintColor,
112 borderRadius: BorderRadius.circular(10),
115 HugeIcons.strokeRoundedCamera01,
125 borderRadius: BorderRadius.circular(10),
136 child: GestureDetector(
140 Theme.of(context).colorScheme.error,
143 HugeIcons.strokeRoundedCancel01,
145 color: Theme.of(context).colorScheme.onPrimary,
155 SizedBox(height: 20.sp),
158 if (
_formKey.currentState!.validate()) {
164 'Please upload at least one screenshot of the issue'),
173 'Your report has been successfully submitted. Our team will review it and get back to you shortly'),