Revert "mod: color alpha"

This reverts commit a7ffc3b05f.
This commit is contained in:
bggRGjQaUbCoE
2024-12-22 10:42:00 +08:00
parent fe2b4f6735
commit a01d54cd80
64 changed files with 168 additions and 210 deletions

View File

@@ -39,7 +39,7 @@ class IntroDetail extends StatelessWidget {
color: Theme.of(context)
.colorScheme
.onSecondaryContainer
.withValues(alpha: 0.5),
.withOpacity(0.5),
borderRadius: const BorderRadius.all(Radius.circular(3))),
),
),

View File

@@ -18,7 +18,7 @@ Widget addWidget(item, context, type, {floor = 1}) {
'ADDITIONAL_TYPE_COMMON': item.modules.moduleDynamic.additional.common,
};
Color bgColor = floor == 1
? Theme.of(context).dividerColor.withValues(alpha: 0.08)
? Theme.of(context).dividerColor.withOpacity(0.08)
: Theme.of(context).colorScheme.surface;
switch (type) {
case 'ADDITIONAL_TYPE_UGC':

View File

@@ -30,14 +30,14 @@ class DynamicPanel extends StatelessWidget {
// border: Border(
// bottom: BorderSide(
// width: 8,
// color: Theme.of(context).dividerColor.withValues(alpha: 0.05),
// color: Theme.of(context).dividerColor.withOpacity(0.05),
// ),
// ),
// ),
child: Material(
elevation: 0,
clipBehavior: Clip.hardEdge,
color: Theme.of(context).cardColor.withValues(alpha: 0.5),
color: Theme.of(context).cardColor.withOpacity(0.5),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(5),
),

View File

@@ -29,14 +29,14 @@ class DynamicPanelGrpc extends StatelessWidget {
// border: Border(
// bottom: BorderSide(
// width: 8,
// color: Theme.of(context).dividerColor.withValues(alpha: 0.05),
// color: Theme.of(context).dividerColor.withOpacity(0.05),
// ),
// ),
// ),
child: Material(
elevation: 0,
clipBehavior: Clip.hardEdge,
color: Theme.of(context).cardColor.withValues(alpha: 0.5),
color: Theme.of(context).cardColor.withOpacity(0.5),
shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(5),
),

View File

@@ -131,7 +131,7 @@ Widget forWard(item, context, ctr, source, {floor = 1}) {
// return Container(
// padding:
// const EdgeInsets.only(left: 10, top: 12, right: 10, bottom: 10),
// color: Theme.of(context).dividerColor.withValues(alpha: 0.08),
// color: Theme.of(context).dividerColor.withOpacity(0.08),
// child: articlePanel(item, context, floor: floor));
// 转发
case 'DYNAMIC_TYPE_FORWARD':
@@ -140,7 +140,7 @@ Widget forWard(item, context, ctr, source, {floor = 1}) {
child: Container(
padding:
const EdgeInsets.only(left: 15, top: 10, right: 15, bottom: 8),
color: Theme.of(context).dividerColor.withValues(alpha: 0.08),
color: Theme.of(context).dividerColor.withOpacity(0.08),
child: forWard(item.orig, context, ctr, source, floor: floor + 1),
),
);

View File

@@ -188,7 +188,7 @@ class _UpPanelState extends State<UpPanel> {
? Theme.of(context)
.colorScheme
.secondaryContainer
.withValues(alpha: 0.7)
.withOpacity(0.7)
: Theme.of(context).colorScheme.primary,
child: data.face != ''
? NetworkImgLayer(

View File

@@ -91,7 +91,7 @@ class _EmotePanelState extends State<EmotePanel>
),
Divider(
height: 1,
color: Theme.of(context).dividerColor.withValues(alpha: 0.1),
color: Theme.of(context).dividerColor.withOpacity(0.1),
),
TabBar(
controller: _emotePanelController.tabController,

View File

@@ -365,7 +365,7 @@ class _FavDetailPageState extends State<FavDetailPage> {
StyleString.aspectRatio,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
color: Colors.black.withValues(alpha: 0.6),
color: Colors.black.withOpacity(0.6),
),
child: SizedBox(
width: 34,
@@ -388,7 +388,7 @@ class _FavDetailPageState extends State<FavDetailPage> {
return Theme.of(context)
.colorScheme
.surface
.withValues(alpha: 0.8);
.withOpacity(0.8);
},
),
),

View File

@@ -233,7 +233,7 @@ class HistoryItem extends StatelessWidget {
alignment: Alignment.center,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(12),
color: Colors.black.withValues(alpha: 0.6),
color: Colors.black.withOpacity(0.6),
),
child: SizedBox(
width: 34,
@@ -253,7 +253,7 @@ class HistoryItem extends StatelessWidget {
return Theme.of(context)
.colorScheme
.surface
.withValues(alpha: 0.8);
.withOpacity(0.8);
},
),
),

View File

@@ -179,7 +179,7 @@ class SearchBarAndUser extends StatelessWidget {
splashColor: Theme.of(context)
.colorScheme
.primaryContainer
.withValues(alpha: 0.3),
.withOpacity(0.3),
borderRadius: const BorderRadius.all(
Radius.circular(50),
),
@@ -228,7 +228,7 @@ class UserAndSearchVertical extends StatelessWidget {
splashColor: Theme.of(context)
.colorScheme
.primaryContainer
.withValues(alpha: 0.3),
.withOpacity(0.3),
borderRadius: const BorderRadius.all(
Radius.circular(50),
),
@@ -361,14 +361,14 @@ class CustomChip extends StatelessWidget {
return InputChip(
side: selected
? BorderSide(
color: colorScheme.secondary.withValues(alpha: 0.2),
color: colorScheme.secondary.withOpacity(0.2),
width: 2,
)
: BorderSide.none,
// backgroundColor: colorTheme.primaryContainer.withValues(alpha: 0.1),
// selectedColor: colorTheme.secondaryContainer.withValues(alpha: 0.8),
// backgroundColor: colorTheme.primaryContainer.withOpacity(0.1),
// selectedColor: colorTheme.secondaryContainer.withOpacity(0.8),
color: WidgetStateProperty.resolveWith<Color>((Set<WidgetState> states) {
return colorTheme.secondaryContainer.withValues(alpha: 0.6);
return colorTheme.secondaryContainer.withOpacity(0.6);
}),
padding: const EdgeInsets.fromLTRB(6, 1, 6, 1),
label: Text(label, style: chipTextStyle),
@@ -400,9 +400,9 @@ class SearchBar extends StatelessWidget {
borderRadius: BorderRadius.circular(25),
),
child: Material(
color: colorScheme.onSecondaryContainer.withValues(alpha: 0.05),
color: colorScheme.onSecondaryContainer.withOpacity(0.05),
child: InkWell(
splashColor: colorScheme.primaryContainer.withValues(alpha: 0.3),
splashColor: colorScheme.primaryContainer.withOpacity(0.3),
onTap: () => Get.toNamed(
'/search',
parameters: {'hintText': ctr!.defaultSearch.value},

View File

@@ -296,7 +296,7 @@ class _HtmlRenderPageState extends State<HtmlRenderPage>
thickness: 8,
color: Theme.of(context)
.dividerColor
.withValues(alpha: 0.05),
.withOpacity(0.05),
),
),
),
@@ -318,9 +318,8 @@ class _HtmlRenderPageState extends State<HtmlRenderPage>
if (orientation == Orientation.landscape) ...[
VerticalDivider(
thickness: 8,
color: Theme.of(context)
.dividerColor
.withValues(alpha: 0.05)),
color:
Theme.of(context).dividerColor.withOpacity(0.05)),
Expanded(
flex: _ratio[1].toInt(),
child: CustomScrollView(

View File

@@ -178,7 +178,7 @@ class _LaterPageState extends State<LaterPage> {
StyleString.aspectRatio,
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(10),
color: Colors.black.withValues(alpha: 0.6),
color: Colors.black.withOpacity(0.6),
),
child: SizedBox(
width: 34,
@@ -198,7 +198,7 @@ class _LaterPageState extends State<LaterPage> {
return Theme.of(context)
.colorScheme
.surface
.withValues(alpha: 0.8);
.withOpacity(0.8);
},
),
),

View File

@@ -405,7 +405,7 @@ class _LiveRoomPageState extends State<LiveRoomPage>
border: InputBorder.none,
hintText: '发送弹幕',
hintStyle: TextStyle(
color: Colors.white.withValues(alpha: 0.6),
color: Colors.white.withOpacity(0.6),
),
),
),

View File

@@ -126,7 +126,7 @@ class _LoginPageState extends State<LoginPage> {
color: Theme.of(context)
.colorScheme
.onSurface
.withValues(alpha: 0.4),
.withOpacity(0.4),
),
),
),
@@ -138,7 +138,7 @@ class _LoginPageState extends State<LoginPage> {
color: Theme.of(context)
.colorScheme
.onSurface
.withValues(alpha: 0.4)))),
.withOpacity(0.4)))),
],
);
}
@@ -278,7 +278,7 @@ class _LoginPageState extends State<LoginPage> {
color: Theme.of(context)
.colorScheme
.onSurface
.withValues(alpha: 0.4)))),
.withOpacity(0.4)))),
],
);
}
@@ -294,10 +294,8 @@ class _LoginPageState extends State<LoginPage> {
child: Container(
decoration: UnderlineTabIndicator(
borderSide: BorderSide(
color: Theme.of(context)
.colorScheme
.outline
.withValues(alpha: 0.4)),
color:
Theme.of(context).colorScheme.outline.withOpacity(0.4)),
),
child: Row(
children: [
@@ -339,7 +337,7 @@ class _LoginPageState extends State<LoginPage> {
color: Theme.of(context)
.colorScheme
.outline
.withValues(alpha: 0.5),
.withOpacity(0.5),
),
),
const SizedBox(width: 6),
@@ -367,10 +365,8 @@ class _LoginPageState extends State<LoginPage> {
child: Container(
decoration: UnderlineTabIndicator(
borderSide: BorderSide(
color: Theme.of(context)
.colorScheme
.outline
.withValues(alpha: 0.4)),
color:
Theme.of(context).colorScheme.outline.withOpacity(0.4)),
),
child: Row(
children: [
@@ -418,7 +414,7 @@ class _LoginPageState extends State<LoginPage> {
color: Theme.of(context)
.colorScheme
.onSurface
.withValues(alpha: 0.4)))),
.withOpacity(0.4)))),
],
);
}

View File

@@ -227,10 +227,8 @@ class _MainAppState extends State<MainApp>
width: 1,
indent: MediaQuery.of(context).padding.top,
endIndent: MediaQuery.of(context).padding.bottom,
color: Theme.of(context)
.colorScheme
.outline
.withValues(alpha: 0.06),
color:
Theme.of(context).colorScheme.outline.withOpacity(0.06),
),
Expanded(
child: PageView(

View File

@@ -131,7 +131,7 @@ class _MediaPageState extends State<MediaPage>
children: [
Divider(
height: 20,
color: Theme.of(context).dividerColor.withValues(alpha: 0.1),
color: Theme.of(context).dividerColor.withOpacity(0.1),
),
ListTile(
onTap: () async {
@@ -214,7 +214,7 @@ class _MediaPageState extends State<MediaPage>
return Theme.of(context)
.colorScheme
.primaryContainer
.withValues(alpha: 0.5);
.withOpacity(0.5);
}),
),
onPressed: () async {
@@ -302,13 +302,13 @@ class FavFolderItem extends StatelessWidget {
color: Theme.of(context)
.colorScheme
.onInverseSurface
.withValues(alpha: 0.4),
.withOpacity(0.4),
boxShadow: [
BoxShadow(
color: Theme.of(context)
.colorScheme
.onInverseSurface
.withValues(alpha: 0.4),
.withOpacity(0.4),
offset: const Offset(4, -12), // 阴影与容器的距离
blurRadius: 0.0, // 高斯的标准偏差与盒子的形状卷积。
spreadRadius: 0.0, // 在应用模糊之前,框应该膨胀的量。

View File

@@ -90,12 +90,12 @@ class _EditProfilePageState extends State<EditProfilePage> {
Widget get _divider => Divider(
height: 1,
color: Theme.of(context).dividerColor.withValues(alpha: 0.1),
color: Theme.of(context).dividerColor.withOpacity(0.1),
);
Widget get _divider1 => Divider(
thickness: 16,
color: Theme.of(context).dividerColor.withValues(alpha: 0.1),
color: Theme.of(context).dividerColor.withOpacity(0.1),
);
Widget _buildBody(LoadingState loadingState) {

View File

@@ -208,7 +208,7 @@ class UserInfoCard extends StatelessWidget {
color: Theme.of(context)
.colorScheme
.onSurface
.withValues(alpha: 0.7),
.withOpacity(0.7),
),
)
],
@@ -328,7 +328,7 @@ class UserInfoCard extends StatelessWidget {
color: Theme.of(context)
.colorScheme
.outline
.withValues(alpha: 0.5),
.withOpacity(0.5),
),
padding: EdgeInsets.zero,
tapTargetSize: MaterialTapTargetSize.shrinkWrap,

View File

@@ -131,7 +131,7 @@ class _AtMePageState extends State<AtMePage> {
indent: 72,
endIndent: 20,
height: 6,
color: Colors.grey.withValues(alpha: 0.1),
color: Colors.grey.withOpacity(0.1),
);
},
);

View File

@@ -198,7 +198,7 @@ class LikeMeList extends StatelessWidget {
indent: 72,
endIndent: 20,
height: 6,
color: Colors.grey.withValues(alpha: 0.1),
color: Colors.grey.withOpacity(0.1),
);
},
);

View File

@@ -144,7 +144,7 @@ class _ReplyMePageState extends State<ReplyMePage> {
indent: 72,
endIndent: 20,
height: 6,
color: Colors.grey.withValues(alpha: 0.1),
color: Colors.grey.withOpacity(0.1),
);
},
);

View File

@@ -127,7 +127,7 @@ class _SysMsgPageState extends State<SysMsgPage> {
color: Theme.of(context)
.colorScheme
.onSurface
.withValues(alpha: 0.85),
.withOpacity(0.85),
),
),
const SizedBox(height: 5),
@@ -156,7 +156,7 @@ class _SysMsgPageState extends State<SysMsgPage> {
indent: 72,
endIndent: 20,
height: 6,
color: Colors.grey.withValues(alpha: 0.1),
color: Colors.grey.withOpacity(0.1),
);
},
);

View File

@@ -23,7 +23,7 @@ class _SearchPageState extends State<SearchPage> with RouteAware {
appBar: AppBar(
shape: Border(
bottom: BorderSide(
color: Theme.of(context).dividerColor.withValues(alpha: 0.08),
color: Theme.of(context).dividerColor.withOpacity(0.08),
width: 1,
),
),

View File

@@ -163,7 +163,7 @@ class CustomFilterChip extends StatelessWidget {
),
selectedColor: Colors.transparent,
// backgroundColor:
// Theme.of(context).colorScheme.surfaceVariant.withValues(alpha: 0.5),
// Theme.of(context).colorScheme.surfaceVariant.withOpacity(0.5),
backgroundColor: Colors.transparent,
side: BorderSide.none,
onSelected: (bool selected) => callFn?.call(selected),
@@ -312,17 +312,11 @@ class VideoPanelController extends GetxController {
bgColor: currentPubTimeFilterval == -1 &&
(isFirst ? customPubBegin : customPubEnd)
? Theme.of(context).colorScheme.secondaryContainer
: Theme.of(context)
.colorScheme
.outline
.withValues(alpha: 0.1),
: Theme.of(context).colorScheme.outline.withOpacity(0.1),
textColor: currentPubTimeFilterval == -1 &&
(isFirst ? customPubBegin : customPubEnd)
? Theme.of(context).colorScheme.onSecondaryContainer
: Theme.of(context)
.colorScheme
.outline
.withValues(alpha: 0.8),
: Theme.of(context).colorScheme.outline.withOpacity(0.8),
);
}

View File

@@ -51,7 +51,7 @@ class _SearchResultPageState extends State<SearchResultPage>
appBar: AppBar(
shape: Border(
bottom: BorderSide(
color: Theme.of(context).dividerColor.withValues(alpha: 0.08),
color: Theme.of(context).dividerColor.withOpacity(0.08),
width: 1,
),
),

View File

@@ -171,13 +171,13 @@ class _ColorSelectPageState extends State<ColorSelectPage> {
width: 46,
height: 46,
decoration: BoxDecoration(
color: e['color'].withValues(alpha: 0.8),
color: e['color'].withOpacity(0.8),
borderRadius: BorderRadius.circular(50),
border: Border.all(
width: 2,
color: ctr.currentColor.value == index
? Colors.black
: e['color'].withValues(alpha: 0.8),
: e['color'].withOpacity(0.8),
),
),
child: AnimatedOpacity(

View File

@@ -72,7 +72,7 @@ class _FontSizeSelectPageState extends State<FontSizeSelectPage> {
color: Theme.of(context)
.colorScheme
.primary
.withValues(alpha: 0.3))),
.withOpacity(0.3))),
color: Theme.of(context).colorScheme.surface,
),
child: Row(

View File

@@ -220,8 +220,8 @@ class _RecommendSettingState extends State<RecommendSetting> {
...defDurations,
if (defDurations.contains(minDurationForRcmd).not)
minDurationForRcmd,
-1
]..sort(),
-1
].map((e) {
if (e == -1) {
return {'title': '自定义', 'value': e};
@@ -271,7 +271,7 @@ class _RecommendSettingState extends State<RecommendSetting> {
Get.back();
updateDuration(int.tryParse(duration) ?? 0);
},
child: const Text('确定'),
child: Text('确定'),
),
],
);
@@ -337,10 +337,8 @@ class _RecommendSettingState extends State<RecommendSetting> {
'* 设定较严苛的条件可导致推荐项数锐减或多次请求,请酌情选择。\n'
'* 后续可能会增加更多过滤条件,敬请期待。',
style: Theme.of(context).textTheme.labelSmall!.copyWith(
color: Theme.of(context)
.colorScheme
.outline
.withValues(alpha: 0.7)),
color:
Theme.of(context).colorScheme.outline.withOpacity(0.7)),
),
)
],

View File

@@ -362,14 +362,14 @@ class _SponsorBlockPageState extends State<SponsorBlockPage> {
Widget get _divider => SliverToBoxAdapter(
child: Divider(
height: 1,
color: Theme.of(context).colorScheme.outline.withValues(alpha: 0.1),
color: Theme.of(context).colorScheme.outline.withOpacity(0.1),
),
);
Widget get _dividerL => SliverToBoxAdapter(
child: Divider(
thickness: 16,
color: Theme.of(context).colorScheme.outline.withValues(alpha: 0.1),
color: Theme.of(context).colorScheme.outline.withOpacity(0.1),
),
);
@@ -529,8 +529,7 @@ class _SponsorBlockPageState extends State<SponsorBlockPage> {
),
separatorBuilder: (context, index) => Divider(
height: 1,
color:
Theme.of(context).colorScheme.outline.withValues(alpha: 0.1),
color: Theme.of(context).colorScheme.outline.withOpacity(0.1),
),
),
_dividerL,

View File

@@ -102,8 +102,7 @@ class _SubDetailPageState extends State<SubDetailPage> {
decoration: BoxDecoration(
border: Border(
bottom: BorderSide(
color:
Theme.of(context).dividerColor.withValues(alpha: 0.2),
color: Theme.of(context).dividerColor.withOpacity(0.2),
),
),
),

View File

@@ -522,7 +522,7 @@ class VideoDetailController extends GetxController
color: Theme.of(context)
.colorScheme
.onSurface
.withValues(alpha: 0.7),
.withOpacity(0.7),
),
),
)

View File

@@ -25,11 +25,8 @@ class ActionRowItem extends StatelessWidget {
Widget build(BuildContext context) {
return Material(
color: selectStatus
? Theme.of(context)
.colorScheme
.primaryContainer
.withValues(alpha: 0.6)
: Theme.of(context).highlightColor.withValues(alpha: 0.2),
? Theme.of(context).colorScheme.primaryContainer.withOpacity(0.6)
: Theme.of(context).highlightColor.withOpacity(0.2),
borderRadius: const BorderRadius.all(Radius.circular(30)),
clipBehavior: Clip.hardEdge,
child: InkWell(

View File

@@ -167,7 +167,7 @@ class _FavPanelState extends State<FavPanel> {
),
Divider(
height: 1,
color: Theme.of(context).disabledColor.withValues(alpha: 0.08),
color: Theme.of(context).disabledColor.withOpacity(0.08),
),
Padding(
padding: EdgeInsets.only(

View File

@@ -170,7 +170,7 @@ class _GroupPanelState extends State<GroupPanel> {
),
Divider(
height: 1,
color: Theme.of(context).disabledColor.withValues(alpha: 0.08),
color: Theme.of(context).disabledColor.withOpacity(0.08),
),
Padding(
padding: EdgeInsets.only(

View File

@@ -54,7 +54,7 @@ class MenuRow extends StatelessWidget {
{bool selectStatus = false}) {
return Material(
color: selectStatus
? Theme.of(context).highlightColor.withValues(alpha: 0.2)
? Theme.of(context).highlightColor.withOpacity(0.2)
: Colors.transparent,
borderRadius: const BorderRadius.all(Radius.circular(30)),
clipBehavior: Clip.hardEdge,
@@ -70,7 +70,7 @@ class MenuRow extends StatelessWidget {
border: Border.all(
color: selectStatus
? Colors.transparent
: Theme.of(context).highlightColor.withValues(alpha: 0.2),
: Theme.of(context).highlightColor.withOpacity(0.2),
),
),
child: Row(

View File

@@ -90,7 +90,7 @@ class ReplyItem extends StatelessWidget {
color: Theme.of(context)
.colorScheme
.onInverseSurface
.withValues(alpha: 0.5),
.withOpacity(0.5),
)
],
),
@@ -352,10 +352,7 @@ class ReplyItem extends StatelessWidget {
Icon(
Icons.reply,
size: 18,
color: Theme.of(context)
.colorScheme
.outline
.withValues(alpha: 0.8),
color: Theme.of(context).colorScheme.outline.withOpacity(0.8),
),
const SizedBox(width: 3),
Text(
@@ -463,7 +460,7 @@ class ReplyItem extends StatelessWidget {
color: Theme.of(context)
.colorScheme
.onSurface
.withValues(alpha: 0.85),
.withOpacity(0.85),
height: 1.6),
overflow: TextOverflow.ellipsis,
maxLines: 2,
@@ -542,7 +539,7 @@ class ReplyItem extends StatelessWidget {
color: Theme.of(context)
.colorScheme
.onSurface
.withValues(alpha: 0.85),
.withOpacity(0.85),
)),
TextSpan(
text: replyControl!.entryText!,

View File

@@ -101,7 +101,7 @@ class ReplyItemGrpc extends StatelessWidget {
color: Theme.of(context)
.colorScheme
.onInverseSurface
.withValues(alpha: 0.5),
.withOpacity(0.5),
)
],
),
@@ -349,10 +349,7 @@ class ReplyItemGrpc extends StatelessWidget {
Icon(
Icons.reply,
size: 18,
color: Theme.of(context)
.colorScheme
.outline
.withValues(alpha: 0.8),
color: Theme.of(context).colorScheme.outline.withOpacity(0.8),
),
const SizedBox(width: 3),
Text(
@@ -479,7 +476,7 @@ class ReplyItemGrpc extends StatelessWidget {
color: Theme.of(context)
.colorScheme
.onSurface
.withValues(alpha: 0.85),
.withOpacity(0.85),
height: 1.6),
overflow: TextOverflow.ellipsis,
maxLines: 2,
@@ -561,7 +558,7 @@ class ReplyItemGrpc extends StatelessWidget {
color: Theme.of(context)
.colorScheme
.onSurface
.withValues(alpha: 0.85),
.withOpacity(0.85),
),
),
TextSpan(

View File

@@ -306,7 +306,7 @@ class _ReplyPageState extends State<ReplyPage>
),
Divider(
height: 1,
color: Theme.of(context).dividerColor.withValues(alpha: 0.1),
color: Theme.of(context).dividerColor.withOpacity(0.1),
),
Container(
height: 52,

View File

@@ -195,7 +195,7 @@ class _VideoReplyNewDialogState extends State<VideoReplyNewDialog>
),
Divider(
height: 1,
color: Theme.of(context).dividerColor.withValues(alpha: 0.1),
color: Theme.of(context).dividerColor.withOpacity(0.1),
),
Container(
height: 52,

View File

@@ -136,7 +136,7 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel> {
),
Divider(
height: 1,
color: Theme.of(context).dividerColor.withValues(alpha: 0.1),
color: Theme.of(context).dividerColor.withOpacity(0.1),
),
Expanded(
child: refreshIndicator(
@@ -192,7 +192,7 @@ class _VideoReplyReplyPanelState extends State<VideoReplyReplyPanel> {
height: 20,
color: Theme.of(context)
.dividerColor
.withValues(alpha: 0.1),
.withOpacity(0.1),
thickness: 6,
);
} else if (index == 2) {

View File

@@ -726,7 +726,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
// child: Divider(
// indent: 12,
// endIndent: 12,
// color: Theme.of(context).dividerColor.withValues(alpha: 0.06),
// color: Theme.of(context).dividerColor.withOpacity(0.06),
// ),
// ),
// const RelatedVideoPanel(),
@@ -1112,7 +1112,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
border: Border(
bottom: BorderSide(
width: 1,
color: Theme.of(context).dividerColor.withValues(alpha: 0.1),
color: Theme.of(context).dividerColor.withOpacity(0.1),
),
),
),
@@ -1271,7 +1271,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
height: 1,
indent: 12,
endIndent: 12,
color: Theme.of(context).dividerColor.withValues(alpha: 0.06),
color: Theme.of(context).dividerColor.withOpacity(0.06),
),
),
),
@@ -1445,9 +1445,7 @@ class _VideoDetailPageState extends State<VideoDetailPage>
if (rawIndex % 2 == 1) {
return Divider(
height: 1,
color: Theme.of(context)
.dividerColor
.withValues(alpha: 0.1),
color: Theme.of(context).dividerColor.withOpacity(0.1),
);
}
int index = rawIndex ~/ 2;

View File

@@ -55,9 +55,7 @@ class AiDetail extends StatelessWidget {
if (modelResult!.outline!.isNotEmpty)
Divider(
height: 20,
color: Theme.of(context)
.dividerColor
.withValues(alpha: 0.1),
color: Theme.of(context).dividerColor.withOpacity(0.1),
thickness: 6,
)
],

View File

@@ -145,7 +145,7 @@ class _HeaderControlState extends State<HeaderControl> {
color: Theme.of(context)
.colorScheme
.onSecondaryContainer
.withValues(alpha: 0.5),
.withOpacity(0.5),
borderRadius:
const BorderRadius.all(Radius.circular(3))),
),

View File

@@ -307,7 +307,7 @@ class _WhisperPageState extends State<WhisperPage> {
indent: 72,
endIndent: 20,
height: 6,
color: Colors.grey.withValues(alpha: 0.1),
color: Colors.grey.withOpacity(0.1),
);
},
),

View File

@@ -144,8 +144,7 @@ class ChatItem extends StatelessWidget {
style: TextStyle(
letterSpacing: 0.6,
height: 5,
color:
Theme.of(context).colorScheme.outline.withValues(alpha: 0.8),
color: Theme.of(context).colorScheme.outline.withOpacity(0.8),
),
);
case MsgType.text:
@@ -196,7 +195,7 @@ class ChatItem extends StatelessWidget {
style: TextStyle(
letterSpacing: 0.6,
height: 1.5,
color: textColor(context).withValues(alpha: 0.6),
color: textColor(context).withOpacity(0.6),
fontSize: 12,
),
),
@@ -247,7 +246,7 @@ class ChatItem extends StatelessWidget {
style: TextStyle(
letterSpacing: 0.6,
height: 1.5,
color: textColor(context).withValues(alpha: 0.6),
color: textColor(context).withOpacity(0.6),
fontSize: 12,
),
),
@@ -262,7 +261,7 @@ class ChatItem extends StatelessWidget {
color: Theme.of(context)
.colorScheme
.secondaryContainer
.withValues(alpha: 0.4),
.withOpacity(0.4),
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(16),
topRight: Radius.circular(16),
@@ -344,8 +343,7 @@ class ChatItem extends StatelessWidget {
style: TextStyle(
letterSpacing: 0.6,
height: 1.5,
color: textColor(context)
.withValues(alpha: 0.6),
color: textColor(context).withOpacity(0.6),
fontSize: 12,
),
),
@@ -354,8 +352,7 @@ class ChatItem extends StatelessWidget {
style: TextStyle(
letterSpacing: 0.6,
height: 1.5,
color: textColor(context)
.withValues(alpha: 0.6),
color: textColor(context).withOpacity(0.6),
fontSize: 12,
),
),
@@ -431,11 +428,11 @@ class ChatItem extends StatelessWidget {
? Theme.of(context)
.colorScheme
.onPrimary
.withValues(alpha: 0.8)
.withOpacity(0.8)
: Theme.of(context)
.colorScheme
.onSecondaryContainer
.withValues(alpha: 0.8)),
.withOpacity(0.8)),
),
item.msgStatus == 1
? Text(
@@ -474,7 +471,7 @@ class SystemNotice extends StatelessWidget {
color: Theme.of(context)
.colorScheme
.secondaryContainer
.withValues(alpha: 0.4),
.withOpacity(0.4),
borderRadius: const BorderRadius.only(
topLeft: Radius.circular(16),
topRight: Radius.circular(16),
@@ -500,10 +497,7 @@ class SystemNotice extends StatelessWidget {
.copyWith(color: Theme.of(context).colorScheme.outline),
),
Divider(
color: Theme.of(context)
.colorScheme
.primary
.withValues(alpha: 0.05),
color: Theme.of(context).colorScheme.primary.withOpacity(0.05),
),
SelectableText(
content['text'],