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