FdcGridTheme class
Optional Flutter ThemeExtension bridge for FdcGrid.
Prefer FdcApp.theme or FdcTheme for app/subtree-level FDC theming.
Without an explicit FDC theme, the built-in light/dark preset follows the
active Material ThemeData.brightness. Local FdcGrid.theme values still
override every inherited source.
- Inheritance
-
- Object
- ThemeExtension<
FdcGridTheme> - FdcGridTheme
Constructors
- FdcGridTheme({FdcGridThemeData data = FdcGridThemes.light, FdcGridStyle? style})
-
Creates a FdcGridTheme.
const
Properties
- data → FdcGridThemeData
-
Component-level grid theme data exposed through this Material theme extension.
final
- effectiveData → FdcGridThemeData
-
Returns the current effective data.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → FdcGridStyle?
-
Legacy root-grid style override kept for compatibility with the original
narrow FdcGridTheme API.
final
- type → Object
-
The extension's type.
no setterinherited
Methods
-
copyWith(
{FdcGridThemeData? data, FdcGridStyle? style}) → FdcGridTheme -
Creates a copy of this theme extension with the given fields
replaced by the non-null parameter values.
override
-
lerp(
covariant ThemeExtension< FdcGridTheme> ? other, double t) → FdcGridTheme -
Linearly interpolate with another ThemeExtension object.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
resolveData(
BuildContext context, FdcGridThemeData? localTheme) → FdcGridThemeData - Resolves grid theme data using local, FDC subtree, Material extension, and brightness-derived preset precedence, in that order.
-
resolveGridStyle(
BuildContext context, FdcGridThemeData? localTheme, FdcGridStyle localStyle) → FdcGridStyle - Resolves the root grid style by merging defaults, inherited theme data, and the widget-local style override.