mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -93,7 +93,7 @@ class _InteractiveviewerGalleryState extends State<InteractiveviewerGallery>
|
|||||||
|
|
||||||
_quality =
|
_quality =
|
||||||
GStorage.setting.get(SettingBoxKey.previewQuality, defaultValue: 80);
|
GStorage.setting.get(SettingBoxKey.previewQuality, defaultValue: 80);
|
||||||
_thumbList = List.generate(widget.sources.length, (_) => true);
|
_thumbList = List.filled(widget.sources.length, true);
|
||||||
|
|
||||||
_pageController = PageController(initialPage: widget.initIndex);
|
_pageController = PageController(initialPage: widget.initIndex);
|
||||||
|
|
||||||
|
|||||||
@@ -71,12 +71,10 @@ class _ListSheetContentState extends State<ListSheetContent>
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
itemScrollController = _isList
|
itemScrollController = _isList
|
||||||
? List.generate(
|
? List.filled(widget.season.sections.length, ItemScrollController())
|
||||||
widget.season.sections.length, (_) => ItemScrollController())
|
|
||||||
: [ItemScrollController()];
|
: [ItemScrollController()];
|
||||||
reverse = _isList
|
reverse =
|
||||||
? List.generate(widget.season.sections.length, (_) => false)
|
_isList ? List.filled(widget.season.sections.length, false) : [false];
|
||||||
: [false];
|
|
||||||
WidgetsBinding.instance.addPostFrameCallback((_) {
|
WidgetsBinding.instance.addPostFrameCallback((_) {
|
||||||
itemScrollController[_index].jumpTo(index: currentIndex);
|
itemScrollController[_index].jumpTo(index: currentIndex);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -579,7 +579,7 @@ class _ReportPanelState extends State<ReportPanel> {
|
|||||||
},
|
},
|
||||||
['头像违规', '昵称违规', '签名违规'][index],
|
['头像违规', '昵称违规', '签名违规'][index],
|
||||||
),
|
),
|
||||||
).toList(),
|
),
|
||||||
const Text('举报理由(单选,非必选)'),
|
const Text('举报理由(单选,非必选)'),
|
||||||
...List.generate(
|
...List.generate(
|
||||||
5,
|
5,
|
||||||
@@ -591,7 +591,7 @@ class _ReportPanelState extends State<ReportPanel> {
|
|||||||
},
|
},
|
||||||
['色情低俗', '不实信息', '违禁', '人身攻击', '赌博诈骗'][index],
|
['色情低俗', '不实信息', '违禁', '人身攻击', '赌博诈骗'][index],
|
||||||
),
|
),
|
||||||
).toList(),
|
),
|
||||||
const SizedBox(height: 10),
|
const SizedBox(height: 10),
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.end,
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import 'package:get/get.dart';
|
|||||||
class SearchResultController extends GetxController {
|
class SearchResultController extends GetxController {
|
||||||
String? keyword;
|
String? keyword;
|
||||||
|
|
||||||
RxList<int> count = List.generate(5, (_) => -1).toList().obs;
|
RxList<int> count = List.filled(5, -1).toList().obs;
|
||||||
|
|
||||||
@override
|
@override
|
||||||
void onInit() {
|
void onInit() {
|
||||||
|
|||||||
@@ -55,7 +55,7 @@ class GStorage {
|
|||||||
static List<Color> get blockColor {
|
static List<Color> get blockColor {
|
||||||
List list = setting.get(
|
List list = setting.get(
|
||||||
SettingBoxKey.blockColor,
|
SettingBoxKey.blockColor,
|
||||||
defaultValue: List.generate(SegmentType.values.length, (_) => ''),
|
defaultValue: List.filled(SegmentType.values.length, ''),
|
||||||
);
|
);
|
||||||
return SegmentType.values
|
return SegmentType.values
|
||||||
.map((item) => list[item.index].isNotEmpty
|
.map((item) => list[item.index].isNotEmpty
|
||||||
|
|||||||
Reference in New Issue
Block a user