mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-23 10:36:24 +08:00
@@ -74,9 +74,7 @@ List<SettingsModel> get extraSettings => [
|
||||
onChanged: (value) {
|
||||
dynamicPeriod = int.tryParse(value) ?? 5;
|
||||
},
|
||||
inputFormatters: [
|
||||
FilteringTextInputFormatter.allow(RegExp(r'\d+')),
|
||||
],
|
||||
inputFormatters: [FilteringTextInputFormatter.digitsOnly],
|
||||
decoration: const InputDecoration(suffixText: 'min'),
|
||||
),
|
||||
actions: [
|
||||
@@ -187,9 +185,7 @@ List<SettingsModel> get extraSettings => [
|
||||
onChanged: (value) {
|
||||
replyLengthLimit = value;
|
||||
},
|
||||
inputFormatters: [
|
||||
FilteringTextInputFormatter.allow(RegExp(r'\d+')),
|
||||
],
|
||||
inputFormatters: [FilteringTextInputFormatter.digitsOnly],
|
||||
decoration: const InputDecoration(suffixText: '行'),
|
||||
),
|
||||
actions: [
|
||||
|
||||
@@ -184,9 +184,7 @@ SettingsModel getVideoFilterSelectModel({
|
||||
autofocus: true,
|
||||
onChanged: (value) => valueStr = value,
|
||||
keyboardType: TextInputType.number,
|
||||
inputFormatters: [
|
||||
FilteringTextInputFormatter.allow(RegExp(r'\d+')),
|
||||
],
|
||||
inputFormatters: [FilteringTextInputFormatter.digitsOnly],
|
||||
decoration: InputDecoration(suffixText: suffix),
|
||||
),
|
||||
actions: [
|
||||
|
||||
@@ -515,7 +515,6 @@ List<SettingsModel> get styleSettings => [
|
||||
title: '滑动动画弹簧参数',
|
||||
leading: const Icon(Icons.chrome_reader_mode_outlined),
|
||||
onTap: (setState) {
|
||||
final numberRegExp = RegExp(r'[\d\.]+');
|
||||
List<String> springDescription = CustomSpringDescription
|
||||
.springDescription
|
||||
.map((i) => i.toString())
|
||||
@@ -538,7 +537,7 @@ List<SettingsModel> get styleSettings => [
|
||||
springDescription[index] = value;
|
||||
},
|
||||
inputFormatters: [
|
||||
FilteringTextInputFormatter.allow(numberRegExp)
|
||||
FilteringTextInputFormatter.allow(RegExp(r'[\d\.]+'))
|
||||
],
|
||||
decoration: InputDecoration(
|
||||
labelText: const [
|
||||
|
||||
Reference in New Issue
Block a user