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