NiceThemeData class
Central theme configuration for NiceToDev widgets.
Wrap your app with NiceTheme to apply consistent styling:
NiceTheme(
data: NiceThemeData.light(),
child: MyApp(),
)
Constructors
- NiceThemeData({required Brightness brightness, required NiceColorScheme colors, required NiceTypography typography, double borderRadius = 8.0, double inputHeight = 40.0, double spacing = 8.0})
-
const
- NiceThemeData.dark()
-
Default dark theme.
factory
- NiceThemeData.light()
-
Default light theme.
factory
Properties
- borderRadius → double
-
final
- brightness → Brightness
-
final
- colors → NiceColorScheme
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputHeight → double
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- spacing → double
-
final
- typography → NiceTypography
-
final
Methods
-
copyWith(
{Brightness? brightness, NiceColorScheme? colors, NiceTypography? typography, double? borderRadius, double? inputHeight, double? spacing}) → NiceThemeData -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
toThemeData(
) → ThemeData - Convert to Material ThemeData for interoperability.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited