mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2024-08-30 18:12:39 +00:00
fix: remove useless onTap
This commit is contained in:
@ -9,7 +9,6 @@ class InputTextField extends StatefulWidget {
|
||||
final void Function(String)? onDone;
|
||||
final void Function(String)? onChanged;
|
||||
final void Function() onCanceled;
|
||||
final void Function()? onTap;
|
||||
final bool autoClearWhenDone;
|
||||
final String text;
|
||||
final int? maxLength;
|
||||
@ -20,7 +19,6 @@ class InputTextField extends StatefulWidget {
|
||||
this.onDone,
|
||||
required this.onCanceled,
|
||||
this.onChanged,
|
||||
this.onTap,
|
||||
this.autoClearWhenDone = false,
|
||||
this.maxLength,
|
||||
this.focusNode,
|
||||
@ -75,11 +73,6 @@ class _InputTextFieldState extends State<InputTextField> {
|
||||
_controller.text = "";
|
||||
}
|
||||
},
|
||||
onTap: () {
|
||||
if (widget.onTap != null) {
|
||||
widget.onTap!();
|
||||
}
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -256,7 +256,6 @@ class _AddOptionButton extends StatelessWidget {
|
||||
fontSize: 12),
|
||||
hoverColor: theme.hover,
|
||||
onTap: () {
|
||||
popoverMutex?.close();
|
||||
context
|
||||
.read<SelectOptionTypeOptionBloc>()
|
||||
.add(const SelectOptionTypeOptionEvent.addingOption());
|
||||
|
Reference in New Issue
Block a user