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