Untitled
unknown
dart
a year ago
2.2 kB
6
Indexable
Padding( padding: const EdgeInsets.symmetric(horizontal: 22), child: InkWell( onTap: () { showDialog( context: context, barrierDismissible: true, barrierLabel: 'Cancel'.tr(), builder: (context) => Dialog( child: Container( color: Colors.amber, child: Column( children: myAccountNotifier.genderTypes .map( (DropdownModel e) => DropdownMenuItem<DropdownModel>( onTap: () => FocusScope.of(context).nextFocus(), value: e, child: Align( alignment: AlignmentDirectional.centerStart, child: Text( e.title!.tr(), style: themeNotifier .getTheme() .textTheme .bodyText2! .copyWith( color: themeNotifier.getTheme().hoverColor, ), ), ), ), ) .toList(), ), ), ), ); }, child: IgnorePointer( child: ArabTextField( hintText: '${authNotifier.appUser!.gender != null ? myAccountNotifier.genderTypes.firstWhere( (DropdownModel item) => item.value == myAccountNotifier.selectedGenderType!, ).title : 'Choose gender'.tr()}', prefixIcon: SvgPicture.asset( Assets.icMaleFemale, color: themeNotifier.getTheme().hintColor, ).padding( padding: EdgeInsets.symmetric( vertical: EdgeInsetsEnum.l.rawValue, ), ), labelText: 'Gender'.tr(), isRequired: false, ), ), ), );
Editor is loading...