File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed
lib/feature/presentation/page/report_screenshot Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -373,19 +373,21 @@ class _ReportScreenshotPageState extends State<ReportScreenshotPage> {
373373
374374 return SizedBox (
375375 height: 42 ,
376- child: DropdownButtonFormField (
376+ child: DropdownButtonFormField < UserProfileResponse ?> (
377377 value: selectedUser,
378378 items: listUserProfile.map ((e) {
379379 return DropdownMenuItem (
380380 value: e,
381381 child: Text (e.name ?? '-' ),
382382 );
383383 }).toList (),
384- onChanged: (newValue) {
385- setState (() {
386- selectedUser = newValue;
387- });
388- },
384+ onChanged: isEnabled
385+ ? (newValue) {
386+ setState (() {
387+ selectedUser = newValue;
388+ });
389+ }
390+ : null ,
389391 isExpanded: true ,
390392 decoration: widgetHelper.setDefaultTextFieldDecoration (
391393 filled: true ,
You can’t perform that action at this time.
0 commit comments