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