We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currently on version 2.3.9:
Expected: The splash effect should stay inside the button border
Here is the code for the above widget, please note that I am using flutter_hooks:
class ChapterDropdown extends HookConsumerWidget { final GlobalKey<FormState>? formKey; const ChapterDropdown({super.key, this.formKey}); @override Widget build(BuildContext context, WidgetRef ref) { final selected = useState<Chapter?>(null); return Form( key: formKey, child: DropdownButtonFormField2( isExpanded: true, value: selected.value, onChanged: (value) => { selected.value = value, formKey?.currentState!.reset(), }, hint: Text( 'Chọn chương', style: context.textTheme.bodyLarge!.copyWith( color: context.materialScheme.onSurfaceVariant, ), ), validator: (value) { if (value == null) { return 'Vui lòng chọn chương để xoá'; } return null; }, items: Chapter.values .map( (item) => DropdownMenuItem( value: item, child: Text( item.chapterName, style: const TextStyle( fontSize: 14, ), ), ), ) .toList(), ), ); } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently on version 2.3.9:
Expected: The splash effect should stay inside the button border
Here is the code for the above widget, please note that I am using flutter_hooks:
The text was updated successfully, but these errors were encountered: