mirror of
https://github.com/cake-tech/cake_wallet.git
synced 2024-11-01 18:07:44 +00:00
d972363417
* CW-466 Add Buy Options Page * CW-466 Add Buy Options * CW-466 Add Default Buy Provider to Other Settings * CW-466 Onramper is working from Buy Options * CW-466 Onramper is working from Buy Options * CW-466 Translation improvements * CW-466 Add Onramper & Robinhood Logos * CW-466 Implement Robinhood Flow * CW-466 Fix Robinhood Flow * CW-466 Add RH-Secrets * CW-466 Have RH Translation in English only * Add missing URI details * CW-466 Implement default Buy Provider * CW-466 Fix Padding Buy Provider Options * CW-466 Fix Bitcoin and Litecoin Signatures * CW-466 Fix Error Message * CW-466 Resolve requested changes * Add exception handler to robinhood API calls * CW-466 Fix Theming --------- Co-authored-by: Justin Ehrenhofer <justin.ehrenhofer@gmail.com> Co-authored-by: OmarHatem <omarh.ismail1@gmail.com>
30 lines
1 KiB
Dart
30 lines
1 KiB
Dart
import 'package:flutter/material.dart';
|
|
|
|
class OptionTileTheme extends ThemeExtension<OptionTileTheme> {
|
|
final Color titleColor;
|
|
final Color descriptionColor;
|
|
final bool useDarkImage;
|
|
|
|
OptionTileTheme(
|
|
{required this.titleColor, required this.descriptionColor, this.useDarkImage = false});
|
|
|
|
@override
|
|
OptionTileTheme copyWith({Color? titleColor, Color? descriptionColor, bool? useDarkImage}) =>
|
|
OptionTileTheme(
|
|
titleColor: titleColor ?? this.titleColor,
|
|
descriptionColor: descriptionColor ?? this.descriptionColor,
|
|
useDarkImage: useDarkImage ?? this.useDarkImage);
|
|
|
|
@override
|
|
OptionTileTheme lerp(ThemeExtension<OptionTileTheme>? other, double t) {
|
|
if (other is! OptionTileTheme) {
|
|
return this;
|
|
}
|
|
|
|
return OptionTileTheme(
|
|
titleColor: Color.lerp(titleColor, other.titleColor, t) ?? titleColor,
|
|
descriptionColor:
|
|
Color.lerp(descriptionColor, other.descriptionColor, t) ?? descriptionColor,
|
|
useDarkImage: other.useDarkImage);
|
|
}
|
|
}
|