Skip to main content

use_theme

Function use_theme 

Source
pub fn use_theme() -> ThemeData
Expand description

Returns a clone of the currently active ThemeData.

Components should call this during their build() method to access design tokens without any manual subscription setup.