mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-17 01:37:40 +00:00
22 lines
573 B
Dart
22 lines
573 B
Dart
|
import 'package:flutter/material.dart';
|
||
|
|
||
|
class SupportPageTheme extends ThemeExtension<SupportPageTheme> {
|
||
|
final Color iconColor;
|
||
|
|
||
|
SupportPageTheme({required this.iconColor});
|
||
|
|
||
|
@override
|
||
|
SupportPageTheme copyWith({Color? iconColor}) =>
|
||
|
SupportPageTheme(iconColor: iconColor ?? this.iconColor);
|
||
|
|
||
|
@override
|
||
|
SupportPageTheme lerp(ThemeExtension<SupportPageTheme>? other, double t) {
|
||
|
if (other is! SupportPageTheme) {
|
||
|
return this;
|
||
|
}
|
||
|
|
||
|
return SupportPageTheme(
|
||
|
iconColor: Color.lerp(iconColor, other.iconColor, t) ?? iconColor);
|
||
|
}
|
||
|
}
|