mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-16 22:30:16 +08:00
feat: clean fav
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -95,7 +95,7 @@ class _LogsPageState extends State<LogsPage> {
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text('日志'),
|
||||
title: const Text('日志'),
|
||||
actions: [
|
||||
PopupMenuButton<String>(
|
||||
onSelected: (String type) {
|
||||
|
||||
@@ -191,7 +191,7 @@ class _PlaySpeedPageState extends State<PlaySpeedPage> {
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: AppBar(
|
||||
title: Text('倍速设置'),
|
||||
title: const Text('倍速设置'),
|
||||
actions: [
|
||||
TextButton(
|
||||
onPressed: () async {
|
||||
|
||||
@@ -23,7 +23,9 @@ class _PlaySettingState extends State<PlaySetting> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: widget.showAppBar == false ? null : AppBar(title: Text('播放器设置')),
|
||||
appBar: widget.showAppBar == false
|
||||
? null
|
||||
: AppBar(title: const Text('播放器设置')),
|
||||
body: ListView(
|
||||
children: [
|
||||
...playSettings.map((item) => item.widget),
|
||||
|
||||
@@ -9,7 +9,7 @@ class PrivacySetting extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: showAppBar == false ? null : AppBar(title: Text('隐私设置')),
|
||||
appBar: showAppBar == false ? null : AppBar(title: const Text('隐私设置')),
|
||||
body: ListView(
|
||||
children: [
|
||||
...privacySettings.map((item) => item.widget),
|
||||
|
||||
@@ -9,7 +9,7 @@ class RecommendSetting extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: showAppBar == false ? null : AppBar(title: Text('推荐流设置')),
|
||||
appBar: showAppBar == false ? null : AppBar(title: const Text('推荐流设置')),
|
||||
body: ListView(
|
||||
children: [
|
||||
...recommendSettings.map((item) => item.widget),
|
||||
|
||||
@@ -9,7 +9,7 @@ class VideoSetting extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return Scaffold(
|
||||
appBar: showAppBar == false ? null : AppBar(title: Text('音视频设置')),
|
||||
appBar: showAppBar == false ? null : AppBar(title: const Text('音视频设置')),
|
||||
body: ListView(
|
||||
children: [
|
||||
...videoSettings.map((item) => item.widget),
|
||||
|
||||
@@ -1268,10 +1268,7 @@ List<SettingsModel> get recommendSettings => [
|
||||
builder: (context) {
|
||||
String duration = '';
|
||||
return AlertDialog(
|
||||
title: Text(
|
||||
'自定义时长',
|
||||
style: TextStyle(fontSize: 18),
|
||||
),
|
||||
title: const Text('自定义时长'),
|
||||
content: TextField(
|
||||
autofocus: true,
|
||||
onChanged: (value) => duration = value,
|
||||
@@ -1415,7 +1412,7 @@ List<SettingsModel> get extraSettings => [
|
||||
context: Get.context!,
|
||||
builder: (context) {
|
||||
return AlertDialog(
|
||||
title: Text('检查周期', style: TextStyle(fontSize: 18)),
|
||||
title: const Text('检查周期'),
|
||||
content: TextFormField(
|
||||
autofocus: true,
|
||||
initialValue: dynamicPeriod.toString(),
|
||||
@@ -1543,7 +1540,7 @@ List<SettingsModel> get extraSettings => [
|
||||
context: Get.context!,
|
||||
builder: (context) {
|
||||
return AlertDialog(
|
||||
title: Text('评论折叠行数', style: TextStyle(fontSize: 18)),
|
||||
title: const Text('评论折叠行数'),
|
||||
content: TextFormField(
|
||||
autofocus: true,
|
||||
initialValue: replyLengthLimit,
|
||||
@@ -1601,7 +1598,7 @@ List<SettingsModel> get extraSettings => [
|
||||
context: Get.context!,
|
||||
builder: (context) {
|
||||
return AlertDialog(
|
||||
title: Text('弹幕行高', style: TextStyle(fontSize: 18)),
|
||||
title: const Text('弹幕行高'),
|
||||
content: TextFormField(
|
||||
autofocus: true,
|
||||
initialValue: danmakuLineHeight,
|
||||
@@ -1824,10 +1821,7 @@ List<SettingsModel> get extraSettings => [
|
||||
context: Get.context!,
|
||||
builder: (context) {
|
||||
return AlertDialog(
|
||||
title: const Text(
|
||||
'自定义参数',
|
||||
style: TextStyle(fontSize: 18),
|
||||
),
|
||||
title: const Text('自定义参数'),
|
||||
content: TextField(
|
||||
autofocus: true,
|
||||
onChanged: (value) => param = value,
|
||||
@@ -2178,10 +2172,7 @@ SettingsModel getBanwordModel({
|
||||
context: Get.context!,
|
||||
builder: (context) {
|
||||
return AlertDialog(
|
||||
title: Text(
|
||||
title,
|
||||
style: TextStyle(fontSize: 18),
|
||||
),
|
||||
title: Text(title),
|
||||
content: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
|
||||
@@ -30,10 +30,7 @@ class _MultiSelectDialogState<T> extends State<MultiSelectDialog<T>> {
|
||||
Widget build(BuildContext context) {
|
||||
return AlertDialog(
|
||||
clipBehavior: Clip.hardEdge,
|
||||
title: Text(
|
||||
widget.title,
|
||||
style: TextStyle(fontSize: 18),
|
||||
),
|
||||
title: Text(widget.title),
|
||||
contentPadding: const EdgeInsets.only(top: 12),
|
||||
content: StatefulBuilder(builder: (context, StateSetter setState) {
|
||||
return SingleChildScrollView(
|
||||
|
||||
@@ -107,10 +107,7 @@ class _SelectDialogState<T> extends State<SelectDialog<T>> {
|
||||
Widget build(BuildContext context) {
|
||||
return AlertDialog(
|
||||
clipBehavior: Clip.hardEdge,
|
||||
title: Text(
|
||||
widget.title,
|
||||
style: TextStyle(fontSize: 18),
|
||||
),
|
||||
title: Text(widget.title),
|
||||
contentPadding: const EdgeInsets.fromLTRB(0, 12, 0, 12),
|
||||
content: StatefulBuilder(builder: (context, StateSetter setState) {
|
||||
return SingleChildScrollView(
|
||||
|
||||
@@ -37,10 +37,7 @@ class _SlideDialogState<T extends num> extends State<SlideDialog<T>> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return AlertDialog(
|
||||
title: Text(
|
||||
widget.title,
|
||||
style: TextStyle(fontSize: 18),
|
||||
),
|
||||
title: Text(widget.title),
|
||||
contentPadding:
|
||||
const EdgeInsets.only(top: 20, left: 8, right: 8, bottom: 8),
|
||||
content: SizedBox(
|
||||
|
||||
@@ -49,10 +49,7 @@ class _SetSwitchItemState extends State<SetSwitchItem> {
|
||||
showDialog(
|
||||
context: context,
|
||||
builder: (context) => AlertDialog(
|
||||
title: Text(
|
||||
'确定禁用 SSL 证书验证?',
|
||||
style: TextStyle(fontSize: 18),
|
||||
),
|
||||
title: const Text('确定禁用 SSL 证书验证?'),
|
||||
content: const Text('禁用容易受到中间人攻击'),
|
||||
actions: [
|
||||
TextButton(
|
||||
|
||||
Reference in New Issue
Block a user