Files
PiliPlus/lib/pages/setting/recommend_setting.dart
bggRGjQaUbCoE ca993df0c6 opt: get theme color
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
2025-04-28 21:32:46 +08:00

34 lines
1.2 KiB
Dart
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import 'package:PiliPlus/pages/setting/widgets/model.dart';
import 'package:flutter/material.dart';
class RecommendSetting extends StatelessWidget {
const RecommendSetting({super.key, this.showAppBar});
final bool? showAppBar;
@override
Widget build(BuildContext context) {
final theme = Theme.of(context);
return Scaffold(
appBar: showAppBar == false ? null : AppBar(title: const Text('推荐流设置')),
body: ListView(
children: [
...recommendSettings.map((item) => item.widget),
ListTile(
dense: true,
subtitle: Text(
'¹ 由于接口未提供关注信息无法豁免相关视频中的已关注Up。\n\n'
'* 其它(如热门视频、手动搜索、链接跳转等)均不受过滤器影响。\n'
'* 设定较严苛的条件可导致推荐项数锐减或多次请求,请酌情选择。\n'
'* 后续可能会增加更多过滤条件,敬请期待。',
style: theme.textTheme.labelSmall!
.copyWith(color: theme.colorScheme.outline.withOpacity(0.7)),
),
),
SizedBox(height: MediaQuery.paddingOf(context).bottom + 80),
],
),
);
}
}