mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-14 21:24:02 +08:00
@@ -1,7 +1,6 @@
|
||||
import 'dart:math' show pi;
|
||||
|
||||
import 'package:PiliPlus/common/skeleton/video_reply.dart';
|
||||
import 'package:PiliPlus/common/style.dart';
|
||||
import 'package:PiliPlus/common/widgets/custom_icon.dart';
|
||||
import 'package:PiliPlus/common/widgets/loading_widget/http_error.dart';
|
||||
import 'package:PiliPlus/common/widgets/sliver/sliver_pinned_header.dart';
|
||||
import 'package:PiliPlus/common/widgets/view_safe_area.dart';
|
||||
@@ -267,10 +266,7 @@ abstract class CommonDynPageState<T extends StatefulWidget> extends State<T>
|
||||
),
|
||||
),
|
||||
),
|
||||
icon: Transform.rotate(
|
||||
angle: pi / 2,
|
||||
child: const Icon(Icons.splitscreen, size: 19),
|
||||
),
|
||||
icon: const Icon(CustomIcons.splitscreen_rotate_90, size: 19),
|
||||
);
|
||||
|
||||
FloatingActionButtonLocation get floatingActionButtonLocation =>
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import 'dart:io';
|
||||
import 'dart:math' show pi, max;
|
||||
import 'dart:math' show max;
|
||||
|
||||
import 'package:PiliPlus/common/widgets/custom_icon.dart';
|
||||
import 'package:PiliPlus/common/widgets/flutter/refresh_indicator.dart';
|
||||
@@ -107,12 +107,9 @@ List<SettingsModel> get extraSettings => [
|
||||
onTap: _showDynDialog,
|
||||
),
|
||||
),
|
||||
SwitchModel(
|
||||
const SwitchModel(
|
||||
title: '显示视频分段信息',
|
||||
leading: Transform.rotate(
|
||||
angle: pi / 2,
|
||||
child: const Icon(MdiIcons.viewHeadline),
|
||||
),
|
||||
leading: Icon(CustomIcons.view_headline_rotate_90),
|
||||
setKey: SettingBoxKey.showViewPoints,
|
||||
defaultVal: true,
|
||||
),
|
||||
@@ -424,10 +421,7 @@ List<SettingsModel> get extraSettings => [
|
||||
),
|
||||
SwitchModel(
|
||||
title: '侧滑关闭二级页面',
|
||||
leading: Transform.rotate(
|
||||
angle: pi * 1.5,
|
||||
child: const Icon(Icons.touch_app),
|
||||
),
|
||||
leading: const Icon(CustomIcons.touch_app_rotate_270),
|
||||
setKey: SettingBoxKey.slideDismissReplyPage,
|
||||
defaultVal: Platform.isIOS,
|
||||
onChanged: (value) => CommonSlideMixin.slideDismissReplyPage = value,
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import 'dart:io' show Platform;
|
||||
import 'dart:math' as math;
|
||||
|
||||
import 'package:PiliPlus/common/widgets/custom_icon.dart';
|
||||
import 'package:PiliPlus/common/widgets/extra_hittest_stack.dart';
|
||||
import 'package:PiliPlus/models_new/live/live_superchat/item.dart';
|
||||
import 'package:PiliPlus/pages/live_room/superchat/superchat_card.dart';
|
||||
@@ -113,13 +114,10 @@ class _FullScreenScSizeState extends State<FullScreenScSize> {
|
||||
alpha: .8,
|
||||
),
|
||||
),
|
||||
child: Transform.rotate(
|
||||
angle: math.pi / 4,
|
||||
child: Icon(
|
||||
size: 18,
|
||||
Icons.open_in_full,
|
||||
color: _colorScheme.onSecondaryContainer,
|
||||
),
|
||||
child: Icon(
|
||||
size: 18,
|
||||
CustomIcons.open_in_full_rotate_45,
|
||||
color: _colorScheme.onSecondaryContainer,
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -3,6 +3,7 @@ import 'dart:io';
|
||||
import 'dart:math' show max;
|
||||
|
||||
import 'package:PiliPlus/common/widgets/button/toolbar_icon_button.dart';
|
||||
import 'package:PiliPlus/common/widgets/custom_icon.dart';
|
||||
import 'package:PiliPlus/common/widgets/flutter/text_field/controller.dart'
|
||||
show RichTextType;
|
||||
import 'package:PiliPlus/common/widgets/flutter/text_field/text_field.dart';
|
||||
@@ -194,46 +195,19 @@ class _ReplyPageState extends CommonRichTextPubPageState<ReplyPage> {
|
||||
atBtn,
|
||||
const SizedBox(width: 8),
|
||||
moreBtn,
|
||||
Expanded(
|
||||
child: Center(
|
||||
child: Obx(
|
||||
() {
|
||||
final syncToDynamic = _syncToDynamic.value;
|
||||
return TextButton(
|
||||
style: TextButton.styleFrom(
|
||||
tapTargetSize: MaterialTapTargetSize.shrinkWrap,
|
||||
padding: const EdgeInsets.all(13),
|
||||
visualDensity: VisualDensity.compact,
|
||||
foregroundColor: syncToDynamic
|
||||
? themeData.colorScheme.secondary
|
||||
: themeData.colorScheme.outline,
|
||||
),
|
||||
onPressed: () => _syncToDynamic.value = !syncToDynamic,
|
||||
child: Row(
|
||||
spacing: 4,
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
children: [
|
||||
Icon(
|
||||
syncToDynamic
|
||||
? Icons.check_box
|
||||
: Icons.check_box_outline_blank,
|
||||
size: 22,
|
||||
),
|
||||
const Flexible(
|
||||
child: Text(
|
||||
'转到动态',
|
||||
maxLines: 1,
|
||||
style: TextStyle(height: 1),
|
||||
strutStyle: StrutStyle(leading: 0, height: 1),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
},
|
||||
const SizedBox(width: 8),
|
||||
Obx(
|
||||
() => ToolbarIconButton(
|
||||
tooltip: '转到动态',
|
||||
onPressed: _syncToDynamic.toggle,
|
||||
icon: const Icon(
|
||||
CustomIcons.repeat_rounded_rotate_90,
|
||||
size: 22,
|
||||
),
|
||||
selected: _syncToDynamic.value,
|
||||
),
|
||||
),
|
||||
const Spacer(),
|
||||
Obx(
|
||||
() => FilledButton.tonal(
|
||||
onPressed: enablePublish.value ? onPublish : null,
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import 'dart:async' show Timer;
|
||||
import 'dart:convert' show jsonDecode, utf8;
|
||||
import 'dart:io' show Platform, File;
|
||||
import 'dart:math';
|
||||
import 'dart:typed_data' show Uint8List;
|
||||
|
||||
import 'package:PiliPlus/common/constants.dart';
|
||||
@@ -528,15 +527,12 @@ class HeaderControlState extends State<HeaderControl>
|
||||
() {
|
||||
final flipY = plPlayerController.flipY.value;
|
||||
return ActionRowLineItem(
|
||||
icon: Transform.rotate(
|
||||
angle: pi / 2,
|
||||
child: Icon(
|
||||
Icons.flip,
|
||||
size: 13,
|
||||
color: flipY
|
||||
? theme.colorScheme.onSecondaryContainer
|
||||
: theme.colorScheme.outline,
|
||||
),
|
||||
icon: Icon(
|
||||
CustomIcons.flip_rotate_90,
|
||||
size: 13,
|
||||
color: flipY
|
||||
? theme.colorScheme.onSecondaryContainer
|
||||
: theme.colorScheme.outline,
|
||||
),
|
||||
onTap: () {
|
||||
plPlayerController.flipY.value = !flipY;
|
||||
|
||||
Reference in New Issue
Block a user