mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-28 22:35:54 +08:00
@@ -60,7 +60,7 @@ abstract class CommonPublishPageState<T extends CommonPublishPage>
|
||||
}
|
||||
|
||||
if (widget.autofocus) {
|
||||
Future.delayed(const Duration(milliseconds: 300)).then((_) {
|
||||
Future.delayed(const Duration(milliseconds: 300)).whenComplete(() {
|
||||
if (mounted) {
|
||||
focusNode.requestFocus();
|
||||
}
|
||||
@@ -319,9 +319,7 @@ abstract class CommonPublishPageState<T extends CommonPublishPage>
|
||||
child: iconButton(
|
||||
context: context,
|
||||
icon: Icons.edit,
|
||||
onPressed: () {
|
||||
onCropImage(index);
|
||||
},
|
||||
onPressed: () => onCropImage(index),
|
||||
size: 24,
|
||||
iconSize: 14,
|
||||
bgColor: color,
|
||||
|
||||
@@ -37,12 +37,10 @@ abstract class CommonSearchPageState<S extends CommonSearchPage, R, T>
|
||||
suffixIcon: IconButton(
|
||||
tooltip: '清空',
|
||||
icon: const Icon(Icons.clear, size: 22),
|
||||
onPressed: () {
|
||||
controller
|
||||
..loadingState.value = LoadingState.loading()
|
||||
..onClear()
|
||||
..focusNode.requestFocus();
|
||||
},
|
||||
onPressed: () => controller
|
||||
..loadingState.value = LoadingState.loading()
|
||||
..onClear()
|
||||
..focusNode.requestFocus(),
|
||||
),
|
||||
),
|
||||
onSubmitted: (value) => controller.onRefresh(),
|
||||
|
||||
Reference in New Issue
Block a user