mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-12-25 13:09:32 +00:00
23 lines
648 B
Dart
23 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);
|
|
}
|
|
}
|