resolveFrom method
- BuildContext context
override
Returns a new theme data with all its colors resolved against the given BuildContext.
Called by CupertinoTheme.of to resolve colors defined in the retrieved CupertinoThemeData.
Implementation
@override
CupertinoThemeData resolveFrom(BuildContext context) {
// Only the cupertino override theme part will be resolved, as well as the
// default text theme.
// If the color comes from the material theme it's not resolved.
final NoDefaultCupertinoThemeData cupertinoOverrideThemeWithTextTheme = _cupertinoOverrideTheme
.copyWith(textTheme: textTheme);
return MaterialBasedCupertinoThemeData._(
_materialTheme,
cupertinoOverrideThemeWithTextTheme.resolveFrom(context),
);
}