Skip to content

Commit

Permalink
💄 Added the state when the input box is modified to prohibit input
Browse files Browse the repository at this point in the history
  • Loading branch information
ilgnefz committed Sep 21, 2024
1 parent 77ab387 commit 231dbce
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lib/views/action_bar/rename/operation_menu/modify_input.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,10 @@ class ModifyInput extends ConsumerWidget {
bool dateRename = ref.watch(dateRenameProvider);
bool reverseMode = ref.watch(currentModeProvider) == FunctionMode.reserve;
bool inputNotEmpty = ref.watch(matchClearProvider);
bool inputLength = ref.watch(inputLengthProvider);
bool reserveTypeEmpty = ref.watch(currentReserveTypeProvider).isNotEmpty;
bool disable =
dateRename || (reverseMode && (inputNotEmpty || reserveTypeEmpty));
bool disable = dateRename ||
(reverseMode && (inputNotEmpty || reserveTypeEmpty || inputLength));
final TextEditingController controller =
ref.watch(modifyControllerProvider);

Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 2.9.0+0
version: 2.9.1+0

environment:
sdk: '>=3.0.6 <4.0.0'
Expand Down
5 changes: 5 additions & 0 deletions version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"info": [{
"version": "2.9.1",
"description": [
"添加了保留模式下匹配长度禁止输入修改内容的提示"
]
},{
"version": "2.9.0",
"description": [
"添加了根据扩展来批量选中的功能",
Expand Down

0 comments on commit 231dbce

Please sign in to comment.