mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
@@ -50,14 +50,15 @@ class GStorage {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
static List<String> get tabbarSort => setting.get(SettingBoxKey.tabbarSort,
|
static List<String> get tabbarSort =>
|
||||||
defaultValue: TabType.values.map((item) => item.name).toList());
|
List<String>.from(setting.get(SettingBoxKey.tabbarSort,
|
||||||
|
defaultValue: TabType.values.map((item) => item.name).toList()));
|
||||||
|
|
||||||
static List<Pair<SegmentType, SkipType>> get blockSettings {
|
static List<Pair<SegmentType, SkipType>> get blockSettings {
|
||||||
List list = setting.get(
|
List<int> list = List<int>.from(setting.get(
|
||||||
SettingBoxKey.blockSettings,
|
SettingBoxKey.blockSettings,
|
||||||
defaultValue: List.generate(SegmentType.values.length, (_) => 1),
|
defaultValue: List.generate(SegmentType.values.length, (_) => 1),
|
||||||
);
|
));
|
||||||
return SegmentType.values
|
return SegmentType.values
|
||||||
.map((item) => Pair<SegmentType, SkipType>(
|
.map((item) => Pair<SegmentType, SkipType>(
|
||||||
first: item,
|
first: item,
|
||||||
@@ -67,10 +68,10 @@ class GStorage {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static List<Color> get blockColor {
|
static List<Color> get blockColor {
|
||||||
List list = setting.get(
|
List<String> list = List<String>.from(setting.get(
|
||||||
SettingBoxKey.blockColor,
|
SettingBoxKey.blockColor,
|
||||||
defaultValue: List.generate(SegmentType.values.length, (_) => ''),
|
defaultValue: List.generate(SegmentType.values.length, (_) => ''),
|
||||||
);
|
));
|
||||||
return SegmentType.values
|
return SegmentType.values
|
||||||
.map((item) => list[item.index].isNotEmpty
|
.map((item) => list[item.index].isNotEmpty
|
||||||
? Color(
|
? Color(
|
||||||
|
|||||||
Reference in New Issue
Block a user