bump flutter (#859)

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
dom
2025-05-16 23:05:02 +08:00
committed by GitHub
parent cf0bf1e587
commit 7ae92970ef
96 changed files with 604 additions and 521 deletions

View File

@@ -13,7 +13,7 @@ Widget addWidget(
ThemeData theme, DynamicItemModel item, BuildContext context, type,
{floor = 1}) {
late final Color bgColor = floor == 1
? theme.dividerColor.withOpacity(0.08)
? theme.dividerColor.withValues(alpha: 0.08)
: theme.colorScheme.surface;
try {
switch (type) {
@@ -131,13 +131,13 @@ Widget addWidget(
? null
: isReserved
? theme.colorScheme.onSurface
.withOpacity(0.38)
.withValues(alpha: 0.38)
: null,
backgroundColor: canJump
? null
: isReserved
? theme.colorScheme.onSurface
.withOpacity(0.12)
.withValues(alpha: 0.12)
: null,
visualDensity: VisualDensity.compact,
padding: const EdgeInsets.symmetric(
@@ -322,7 +322,7 @@ Widget addWidget(
decoration: BoxDecoration(
color: floor == 1
? theme.colorScheme.surface
: theme.dividerColor.withOpacity(0.08),
: theme.dividerColor.withValues(alpha: 0.08),
borderRadius:
const BorderRadius.all(Radius.circular(8)),
),

View File

@@ -86,7 +86,7 @@ class DynamicPanel extends StatelessWidget {
border: Border(
bottom: BorderSide(
width: 8,
color: theme.dividerColor.withOpacity(0.05),
color: theme.dividerColor.withValues(alpha: 0.05),
),
),
),

View File

@@ -209,7 +209,7 @@ Widget forWard(
},
child: Container(
padding: const EdgeInsets.symmetric(horizontal: 15, vertical: 8),
color: theme.dividerColor.withOpacity(0.08),
color: theme.dividerColor.withValues(alpha: 0.08),
child: forWard(theme, isSave, item.orig!, context, source, callback,
floor: floor + 1),
),
@@ -329,7 +329,7 @@ Widget forWard(
width: double.infinity,
padding:
const EdgeInsets.only(left: 12, top: 10, right: 12, bottom: 10),
color: theme.dividerColor.withOpacity(0.08),
color: theme.dividerColor.withValues(alpha: 0.08),
child: Row(
children: [
NetworkImgLayer(
@@ -378,7 +378,7 @@ Widget forWard(
width: double.infinity,
padding:
const EdgeInsets.only(left: 12, top: 10, right: 12, bottom: 10),
color: theme.dividerColor.withOpacity(0.08),
color: theme.dividerColor.withValues(alpha: 0.08),
child: Row(
children: [
NetworkImgLayer(

View File

@@ -192,7 +192,7 @@ class _UpPanelState extends State<UpPanel> {
(data.type == 'up' && (data.hasUpdate ?? false)),
backgroundColor: data.type == 'live'
? theme.colorScheme.secondaryContainer
.withOpacity(0.75)
.withValues(alpha: 0.75)
: theme.colorScheme.primary,
),
),