---
title: "Discussion on \"How to Replace .withOpacity with .withValues in Your Flutter Codebase\" | Hashnode"
description: "Discussion on \"How to Replace .withOpacity with .withValues in Your Flutter Codebase\". Automate updating .withOpacity to .withValues in Flutter using a Dart script. Save time and ensure consistency across your codebase, Automating Code Refacto"
url: "https://hashnode.com/posts/how-to-replace-withopacity-with-withvalues-in-your-flutter-codebase/67960f96dddf25cee9b8c5f0"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to Replace .withOpacity with .withValues in Your Flutter Codebase](https://meetdabhi.hashnode.dev/how-to-replace-withopacity-with-withvalues-in-your-flutter-codebase?utm_source=hashnode&utm_medium=feed)

Automate updating .withOpacity to .withValues in Flutter using a Dart script. Save time and ensure consistency across your codebase, Automating Code Refacto

Jan 26, 2025 · 1 min read · meetdabhi.hashnode.dev  
Read the article

-   [#flutter-lates](https://hashnode.com/tag/flutter-lates)
-   [#flutternewchanging](https://hashnode.com/tag/flutternewchanging)
-   [#flutter](https://hashnode.com/tag/flutter)
-   [#flutterdeveloper](https://hashnode.com/tag/flutterdeveloper)

## Written by

[Meet Dabhi](https://hashnode.com/@meetdabhi)

@meetdabhi · Surat, India

  
[View profile](https://hashnode.com/@meetdabhi)

Flutter Developer

Welcome to Flutter Hub! I'm Meet Dabhi, a Flutter developer with 3+ years of experience in creating beautiful and functional mobile applications (Android, IOS, Web, MacOS, etc.) My journey with Flutter began in 3+, and since then, I've been dedicated to mastering this powerful framework. I created Flutter Hub to share my knowledge, insights, and the latest trends in the Flutter community. Through this blog, I aim to provide valuable resources for both beginners and seasoned developers, helping them navigate the ever-evolving world of Flutter development.

## Responses 1

Markdown supported · ⌘↵ to post

[jaydipnasit oceanmtech](https://hashnode.com/@jaydip232)

[Feb 10, 2025](https://hashnode.com/posts/how-to-replace-withopacity-with-withvalues-in-your-flutter-codebase/67960f96dddf25cee9b8c5f0/comment/67a99c41dfa9f201c8d73582)

Excellent work! This change simplifies color manipulation in Flutter!
