mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-07-16 06:10:13 +08:00
bump flutter (#859)
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -73,7 +73,7 @@ class _AiDetailState extends CommonCollapseSlidePageState<AiDetail> {
|
||||
SliverToBoxAdapter(
|
||||
child: Divider(
|
||||
height: 20,
|
||||
color: theme.dividerColor.withOpacity(0.1),
|
||||
color: theme.dividerColor.withValues(alpha: 0.1),
|
||||
thickness: 6,
|
||||
),
|
||||
),
|
||||
|
||||
@@ -638,7 +638,7 @@ class VideoDetailController extends GetxController
|
||||
color: Theme.of(context)
|
||||
.colorScheme
|
||||
.onSurface
|
||||
.withOpacity(0.7),
|
||||
.withValues(alpha: 0.7),
|
||||
),
|
||||
),
|
||||
)
|
||||
@@ -856,7 +856,7 @@ class VideoDetailController extends GetxController
|
||||
bgColor: Theme.of(Get.context!)
|
||||
.colorScheme
|
||||
.secondaryContainer
|
||||
.withOpacity(0.8),
|
||||
.withValues(alpha: 0.8),
|
||||
textColor:
|
||||
Theme.of(Get.context!).colorScheme.onSecondaryContainer,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 8, vertical: 4),
|
||||
@@ -1472,7 +1472,7 @@ class VideoDetailController extends GetxController
|
||||
return Segment(
|
||||
start,
|
||||
start,
|
||||
Colors.black.withOpacity(0.5),
|
||||
Colors.black.withValues(alpha: 0.5),
|
||||
item?['content'],
|
||||
item?['imgUrl'],
|
||||
item?['from'],
|
||||
|
||||
@@ -38,8 +38,8 @@ class _IntroDetailState extends CommonCollapseSlidePageState<IntroDetail> {
|
||||
width: 32,
|
||||
height: 3,
|
||||
decoration: BoxDecoration(
|
||||
color:
|
||||
theme.colorScheme.onSecondaryContainer.withOpacity(0.5),
|
||||
color: theme.colorScheme.onSecondaryContainer
|
||||
.withValues(alpha: 0.5),
|
||||
borderRadius: const BorderRadius.all(Radius.circular(3))),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -26,8 +26,8 @@ class ActionRowItem extends StatelessWidget {
|
||||
final theme = Theme.of(context);
|
||||
return Material(
|
||||
color: selectStatus
|
||||
? theme.colorScheme.primaryContainer.withOpacity(0.6)
|
||||
: theme.highlightColor.withOpacity(0.2),
|
||||
? theme.colorScheme.primaryContainer.withValues(alpha: 0.6)
|
||||
: theme.highlightColor.withValues(alpha: 0.2),
|
||||
borderRadius: const BorderRadius.all(Radius.circular(30)),
|
||||
clipBehavior: Clip.hardEdge,
|
||||
child: InkWell(
|
||||
|
||||
@@ -55,7 +55,7 @@ class MenuRow extends StatelessWidget {
|
||||
{bool selectStatus = false}) {
|
||||
return Material(
|
||||
color: selectStatus
|
||||
? theme.highlightColor.withOpacity(0.2)
|
||||
? theme.highlightColor.withValues(alpha: 0.2)
|
||||
: Colors.transparent,
|
||||
borderRadius: const BorderRadius.all(Radius.circular(30)),
|
||||
clipBehavior: Clip.hardEdge,
|
||||
@@ -71,7 +71,7 @@ class MenuRow extends StatelessWidget {
|
||||
border: Border.all(
|
||||
color: selectStatus
|
||||
? Colors.transparent
|
||||
: theme.highlightColor.withOpacity(0.2),
|
||||
: theme.highlightColor.withValues(alpha: 0.2),
|
||||
),
|
||||
),
|
||||
child: Row(
|
||||
|
||||
@@ -112,7 +112,7 @@ class _MediaListPanelState
|
||||
),
|
||||
Divider(
|
||||
height: 1,
|
||||
color: theme.colorScheme.outline.withOpacity(0.1),
|
||||
color: theme.colorScheme.outline.withValues(alpha: 0.1),
|
||||
),
|
||||
Expanded(
|
||||
child: enableSlide ? slideList(theme) : buildList(theme),
|
||||
|
||||
@@ -70,7 +70,7 @@ class _NoteListPageState extends CommonSlidePageState<NoteListPage> {
|
||||
preferredSize: const Size.fromHeight(1),
|
||||
child: Divider(
|
||||
height: 1,
|
||||
color: theme.colorScheme.outline.withOpacity(0.1),
|
||||
color: theme.colorScheme.outline.withValues(alpha: 0.1),
|
||||
),
|
||||
),
|
||||
actions: [
|
||||
@@ -101,7 +101,7 @@ class _NoteListPageState extends CommonSlidePageState<NoteListPage> {
|
||||
border: Border(
|
||||
top: BorderSide(
|
||||
width: 0.5,
|
||||
color: theme.colorScheme.outline.withOpacity(0.1),
|
||||
color: theme.colorScheme.outline.withValues(alpha: 0.1),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -165,7 +165,7 @@ class _NoteListPageState extends CommonSlidePageState<NoteListPage> {
|
||||
itemCount: response!.length,
|
||||
separatorBuilder: (context, index) => Divider(
|
||||
height: 1,
|
||||
color: theme.colorScheme.outline.withOpacity(0.1),
|
||||
color: theme.colorScheme.outline.withValues(alpha: 0.1),
|
||||
),
|
||||
),
|
||||
SliverToBoxAdapter(
|
||||
|
||||
@@ -84,16 +84,16 @@ class _PayCoinsPageState extends State<PayCoinsPage>
|
||||
|
||||
Color _getColorFilter(int index) {
|
||||
if (index == 1 && widget.hasCoin) {
|
||||
return Colors.black.withOpacity(0.4);
|
||||
return Colors.black.withValues(alpha: 0.4);
|
||||
}
|
||||
if (_coins == null) {
|
||||
return Colors.transparent;
|
||||
}
|
||||
if (index == 0 && _coins == 0) {
|
||||
return Colors.black.withOpacity(0.4);
|
||||
return Colors.black.withValues(alpha: 0.4);
|
||||
}
|
||||
if (index == 1 && _coins! < 2) {
|
||||
return Colors.black.withOpacity(0.4);
|
||||
return Colors.black.withValues(alpha: 0.4);
|
||||
}
|
||||
return Colors.transparent;
|
||||
}
|
||||
|
||||
@@ -161,7 +161,7 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
indent: 55,
|
||||
endIndent: 15,
|
||||
height: 0.3,
|
||||
color: theme.colorScheme.outline.withOpacity(0.08),
|
||||
color: theme.colorScheme.outline.withValues(alpha: 0.08),
|
||||
)
|
||||
],
|
||||
);
|
||||
@@ -357,7 +357,7 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
Icon(
|
||||
Icons.reply,
|
||||
size: 18,
|
||||
color: theme.colorScheme.outline.withOpacity(0.8),
|
||||
color: theme.colorScheme.outline.withValues(alpha: 0.8),
|
||||
),
|
||||
const SizedBox(width: 3),
|
||||
Text(
|
||||
@@ -479,8 +479,8 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
child: Text.rich(
|
||||
style: TextStyle(
|
||||
fontSize: theme.textTheme.bodyMedium!.fontSize,
|
||||
color:
|
||||
theme.colorScheme.onSurface.withOpacity(0.85),
|
||||
color: theme.colorScheme.onSurface
|
||||
.withValues(alpha: 0.85),
|
||||
height: 1.6),
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: 2,
|
||||
@@ -553,8 +553,8 @@ class ReplyItemGrpc extends StatelessWidget {
|
||||
TextSpan(
|
||||
text: 'UP主等人 ',
|
||||
style: TextStyle(
|
||||
color:
|
||||
theme.colorScheme.onSurface.withOpacity(0.85),
|
||||
color: theme.colorScheme.onSurface
|
||||
.withValues(alpha: 0.85),
|
||||
),
|
||||
),
|
||||
TextSpan(
|
||||
|
||||
@@ -154,7 +154,7 @@ class _ReplyPageState extends CommonPublishPageState<ReplyPage> {
|
||||
),
|
||||
Divider(
|
||||
height: 1,
|
||||
color: themeData.dividerColor.withOpacity(0.1),
|
||||
color: themeData.dividerColor.withValues(alpha: 0.1),
|
||||
),
|
||||
Container(
|
||||
height: 52,
|
||||
|
||||
@@ -127,7 +127,7 @@ class _VideoReplyReplyPanelState
|
||||
border: Border(
|
||||
bottom: BorderSide(
|
||||
width: 1,
|
||||
color: theme.dividerColor.withOpacity(0.1),
|
||||
color: theme.dividerColor.withValues(alpha: 0.1),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -146,7 +146,7 @@ class _VideoReplyReplyPanelState
|
||||
)
|
||||
: Divider(
|
||||
height: 1,
|
||||
color: theme.dividerColor.withOpacity(0.1),
|
||||
color: theme.dividerColor.withValues(alpha: 0.1),
|
||||
),
|
||||
Expanded(
|
||||
child: enableSlide ? slideList(theme) : buildList(theme),
|
||||
@@ -203,7 +203,7 @@ class _VideoReplyReplyPanelState
|
||||
} else if (index == 1) {
|
||||
return Divider(
|
||||
height: 20,
|
||||
color: theme.dividerColor.withOpacity(0.1),
|
||||
color: theme.dividerColor.withValues(alpha: 0.1),
|
||||
thickness: 6,
|
||||
);
|
||||
} else if (index == 2) {
|
||||
|
||||
@@ -183,7 +183,7 @@ class _SendDanmakuPanelState extends CommonPublishPageState<SendDanmakuPanel> {
|
||||
decoration: BoxDecoration(
|
||||
border: Border(
|
||||
top: BorderSide(
|
||||
color: themeData.colorScheme.outline.withOpacity(0.1),
|
||||
color: themeData.colorScheme.outline.withValues(alpha: 0.1),
|
||||
),
|
||||
),
|
||||
),
|
||||
|
||||
@@ -556,8 +556,9 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
if (shouldShow)
|
||||
AppBar(
|
||||
backgroundColor: themeData.colorScheme.surface
|
||||
.withOpacity(
|
||||
videoDetailController.scrollRatio.value),
|
||||
.withValues(
|
||||
alpha: videoDetailController
|
||||
.scrollRatio.value),
|
||||
toolbarHeight: 0,
|
||||
systemOverlayStyle: Platform.isAndroid
|
||||
? SystemUiOverlayStyle(
|
||||
@@ -1543,7 +1544,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
border: Border(
|
||||
bottom: BorderSide(
|
||||
width: 1,
|
||||
color: themeData.dividerColor.withOpacity(0.1),
|
||||
color: themeData.dividerColor.withValues(alpha: 0.1),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -1748,7 +1749,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
),
|
||||
backgroundColor: themeData
|
||||
.colorScheme.secondaryContainer
|
||||
.withOpacity(0.8),
|
||||
.withValues(alpha: 0.8),
|
||||
padding: const EdgeInsets.symmetric(
|
||||
horizontal: 15,
|
||||
vertical: 10,
|
||||
@@ -1818,7 +1819,8 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
height: 1,
|
||||
indent: 12,
|
||||
endIndent: 12,
|
||||
color: themeData.colorScheme.outline.withOpacity(0.08),
|
||||
color: themeData.colorScheme.outline
|
||||
.withValues(alpha: 0.08),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -1873,7 +1875,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||
decoration: BoxDecoration(
|
||||
color: themeData.colorScheme.secondaryContainer
|
||||
.withOpacity(0.95),
|
||||
.withValues(alpha: 0.95),
|
||||
borderRadius: const BorderRadius.all(Radius.circular(14)),
|
||||
),
|
||||
child: Row(
|
||||
@@ -1953,7 +1955,7 @@ class _VideoDetailPageVState extends State<VideoDetailPageV>
|
||||
const SizedBox(height: 8),
|
||||
Divider(
|
||||
height: 1,
|
||||
color: themeData.colorScheme.outline.withOpacity(0.1),
|
||||
color: themeData.colorScheme.outline.withValues(alpha: 0.1),
|
||||
),
|
||||
],
|
||||
Padding(
|
||||
|
||||
@@ -78,7 +78,7 @@ class _ViewPointsPageState
|
||||
preferredSize: const Size.fromHeight(1),
|
||||
child: Divider(
|
||||
height: 1,
|
||||
color: theme.dividerColor.withOpacity(0.1),
|
||||
color: theme.dividerColor.withValues(alpha: 0.1),
|
||||
),
|
||||
),
|
||||
),
|
||||
@@ -160,7 +160,7 @@ class _ViewPointsPageState
|
||||
},
|
||||
separatorBuilder: (context, index) => Divider(
|
||||
height: 1,
|
||||
color: theme.dividerColor.withOpacity(0.1),
|
||||
color: theme.dividerColor.withValues(alpha: 0.1),
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user