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