Skip to content

Commit

Permalink
Fix withOpacity deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
dhafinrayhan committed Feb 17, 2025
1 parent 2503818 commit 838ecfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/features/posts/screens/posts.dart
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class _PostTag extends StatelessWidget {
padding: const EdgeInsets.symmetric(horizontal: 6, vertical: 2),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(4),
color: context.colorScheme.secondaryContainer.withOpacity(0.7),
color: context.colorScheme.secondaryContainer.withAlpha(180),
),
child: Text(
tag,
Expand Down

0 comments on commit 838ecfb

Please sign in to comment.