---
title: "Comment by Ulises Maldonado on \"Dynamic theme color with Material 3 (You) in Flutter\" | Hashnode"
description: "Awesome writeup. I&#39;m learning Flutter for a class project, and I used this to get my login page to use the themes. However, I am unsure if I will need to im"
url: "https://hashnode.com/posts/dynamic-theme-color-material-3-you-flutter/62c346a4c0401b3dcbcfe662/comment/63e352a492c11fd8b26f151e"
---

[Discussion](https://hashnode.com/posts/dynamic-theme-color-material-3-you-flutter/62c346a4c0401b3dcbcfe662)

Comment [Dynamic theme color with Material 3 (You) in Flutter](https://hashnode.com/posts/dynamic-theme-color-material-3-you-flutter/62c346a4c0401b3dcbcfe662)

[Ulises Maldonado](https://hashnode.com/@lbux)

[Feb 8, 2023](https://hashnode.com/posts/dynamic-theme-color-material-3-you-flutter/62c346a4c0401b3dcbcfe662/comment/63e352a492c11fd8b26f151e)

Awesome writeup. I'm learning Flutter for a class project, and I used this to get my login page to use the themes. However, I am unsure if I will need to implement this on every page or if it will automatically use the theme set in the main file?

Currently I have three files: one is my main (that does the login page), a home page, and a settings page. I added the code to my login and home page but not to my settings page. My settings page is somehow utilizing the theme set in my home page file, and I'm unsure as to why lol

[Christos](https://hashnode.com/@yallurium)

[Feb 8, 2023](https://hashnode.com/posts/dynamic-theme-color-material-3-you-flutter/62c346a4c0401b3dcbcfe662/comment/63e352a492c11fd8b26f151e#reply-63e3542a4ef0c3d5fcd41c5b)

Because the theme data are passed as parameters in `MaterialApp`, the theme is consistent across your whole app, even when switching pages.

Hope that answers your question!

[Ulises Maldonado](https://hashnode.com/@lbux)

[Feb 8, 2023](https://hashnode.com/posts/dynamic-theme-color-material-3-you-flutter/62c346a4c0401b3dcbcfe662/comment/63e352a492c11fd8b26f151e#reply-63e3555992c11fd8b26f1599)

[Christos](https://hashnode.com/@yallurium) Woah! Thank you for the quick response! Yes, this makes sense. I'll make the appropriate changes.
