opt: pages

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-02-05 12:19:45 +08:00
parent 70aecd1e38
commit 65e7c0c4f4
7 changed files with 39 additions and 77 deletions

View File

@@ -55,7 +55,8 @@ class _EditProfilePageState extends State<EditProfilePage> {
_getInfo() async {
Map<String, String> data = {
'access_key': GStorage.localCache
.get(LocalCacheKey.accessKey, defaultValue: {})['value'],
.get(LocalCacheKey.accessKey, defaultValue: {})['value'] ??
'',
'appkey': Constants.appKey,
'build': '1462100',
'c_locale': 'zh_CN',
@@ -329,7 +330,8 @@ class _EditProfilePageState extends State<EditProfilePage> {
}) async {
Map<String, String> data = {
'access_key': GStorage.localCache
.get(LocalCacheKey.accessKey, defaultValue: {})['value'],
.get(LocalCacheKey.accessKey, defaultValue: {})['value'] ??
'',
'appkey': Constants.appKey,
'build': '1462100',
'c_locale': 'zh_CN',

View File

@@ -403,24 +403,18 @@ class _SponsorBlockPageState extends State<SponsorBlockPage> {
WidgetSpan(
alignment: PlaceholderAlignment.middle,
child: Container(
height:
MediaQuery.textScalerOf(context).scale(13),
width: MediaQuery.textScalerOf(context).scale(13),
alignment: Alignment.center,
child: Container(
height: 10,
width: 10,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: _blockColor[index],
),
height: 10,
width: 10,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: _blockColor[index],
),
),
style: TextStyle(fontSize: 13),
style: TextStyle(fontSize: 13, height: 1),
),
TextSpan(
text: ' ${_blockSettings[index].first.title}',
style: TextStyle(fontSize: 13),
style: TextStyle(fontSize: 13, height: 1),
),
],
),
@@ -451,23 +445,18 @@ class _SponsorBlockPageState extends State<SponsorBlockPage> {
WidgetSpan(
alignment: PlaceholderAlignment.middle,
child: Container(
height: MediaQuery.textScalerOf(context).scale(15),
height: 10,
width: 10,
alignment: Alignment.center,
child: Container(
height: 10,
width: 10,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: _blockColor[index],
),
decoration: BoxDecoration(
shape: BoxShape.circle,
color: _blockColor[index],
),
),
style: TextStyle(fontSize: 14),
style: TextStyle(fontSize: 14, height: 1),
),
TextSpan(
text: ' ${_blockSettings[index].first.title}',
style: TextStyle(fontSize: 14),
style: TextStyle(fontSize: 14, height: 1),
),
],
),

View File

@@ -425,24 +425,18 @@ class VideoDetailController extends GetxController
WidgetSpan(
alignment: PlaceholderAlignment.middle,
child: Container(
height:
MediaQuery.textScalerOf(context).scale(14),
height: 10,
width: 10,
alignment: Alignment.center,
child: Container(
height: 10,
width: 10,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: _getColor(item),
),
decoration: BoxDecoration(
shape: BoxShape.circle,
color: _getColor(item),
),
),
style: TextStyle(fontSize: 14),
style: TextStyle(fontSize: 14, height: 1),
),
TextSpan(
text: ' ${item.title}',
style: TextStyle(fontSize: 14),
style: TextStyle(fontSize: 14, height: 1),
),
],
),
@@ -528,24 +522,18 @@ class VideoDetailController extends GetxController
WidgetSpan(
alignment: PlaceholderAlignment.middle,
child: Container(
height:
MediaQuery.textScalerOf(context).scale(14),
height: 10,
width: 10,
alignment: Alignment.center,
child: Container(
height: 10,
width: 10,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: _getColor(item.segmentType),
),
decoration: BoxDecoration(
shape: BoxShape.circle,
color: _getColor(item.segmentType),
),
),
style: TextStyle(fontSize: 14),
style: TextStyle(fontSize: 14, height: 1),
),
TextSpan(
text: ' ${item.segmentType.title}',
style: TextStyle(fontSize: 14),
style: TextStyle(fontSize: 14, height: 1),
),
],
),

View File

@@ -360,6 +360,7 @@ class ReplyItem extends StatelessWidget {
type: 'line',
fs: 9,
semanticsLabel: '置顶',
textScaleFactor: 1,
),
),
const TextSpan(text: ' '),
@@ -556,6 +557,7 @@ class ReplyItem extends StatelessWidget {
size: 'small',
stack: 'normal',
fs: 9,
textScaleFactor: 1,
),
),
const TextSpan(text: ' '),

View File

@@ -375,6 +375,7 @@ class ReplyItemGrpc extends StatelessWidget {
type: 'line',
fs: 9,
semanticsLabel: '置顶',
textScaleFactor: 1,
),
),
const TextSpan(text: ' '),
@@ -590,6 +591,7 @@ class ReplyItemGrpc extends StatelessWidget {
size: 'small',
stack: 'normal',
fs: 9,
textScaleFactor: 1,
),
),
const TextSpan(text: ' '),

View File

@@ -397,33 +397,7 @@ class _SendDanmakuPanelState extends CommonPublishPageState<SendDanmakuPanel> {
builder: (context) => AlertDialog(
clipBehavior: Clip.hardEdge,
contentPadding: const EdgeInsets.symmetric(vertical: 16),
title: Text.rich(
TextSpan(
children: [
TextSpan(
text: 'Color Picker ',
style: TextStyle(fontSize: 15),
),
WidgetSpan(
alignment: PlaceholderAlignment.middle,
child: Container(
height: MediaQuery.textScalerOf(context).scale(13),
width: MediaQuery.textScalerOf(context).scale(13),
alignment: Alignment.center,
child: Container(
height: 10,
width: 10,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: _color.value,
),
),
),
style: TextStyle(fontSize: 13),
),
],
),
),
title: Text('Color Picker'),
content: SlideColorPicker(
showResetBtn: false,
color: _color.value,