test: lerp halfway from light to dark
This commit is contained in:
@@ -18,6 +18,13 @@ void main() {
|
|||||||
_messageInputThemeControlDark);
|
_messageInputThemeControlDark);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('Lerp halfway from light to dark', () {
|
||||||
|
expect(
|
||||||
|
const MessageInputThemeData().lerp(
|
||||||
|
_messageInputThemeControl, _messageInputThemeControlDark, 0.5),
|
||||||
|
_messageInputThemeControlMidLerp);
|
||||||
|
});
|
||||||
|
|
||||||
test('Lerp completely from dark to light', () {
|
test('Lerp completely from dark to light', () {
|
||||||
expect(
|
expect(
|
||||||
const MessageInputThemeData().lerp(
|
const MessageInputThemeData().lerp(
|
||||||
@@ -56,23 +63,29 @@ final _messageInputThemeControl = MessageInputThemeData(
|
|||||||
final _messageInputThemeControlMidLerp = MessageInputThemeData(
|
final _messageInputThemeControlMidLerp = MessageInputThemeData(
|
||||||
borderRadius: BorderRadius.circular(20),
|
borderRadius: BorderRadius.circular(20),
|
||||||
sendAnimationDuration: const Duration(milliseconds: 300),
|
sendAnimationDuration: const Duration(milliseconds: 300),
|
||||||
actionButtonColor: ColorTheme.light().accentPrimary,
|
inputBackgroundColor: const Color(0xff87898b),
|
||||||
actionButtonIdleColor: ColorTheme.light().textLowEmphasis,
|
actionButtonColor: const Color(0xff005fff),
|
||||||
expandButtonColor: ColorTheme.light().accentPrimary,
|
actionButtonIdleColor: const Color(0xff7a7a7a),
|
||||||
sendButtonColor: ColorTheme.light().accentPrimary,
|
sendButtonColor: const Color(0xff005fff),
|
||||||
sendButtonIdleColor: ColorTheme.light().disabled,
|
sendButtonIdleColor: const Color(0xff848585),
|
||||||
inputBackgroundColor: ColorTheme.light().barsBg,
|
expandButtonColor: const Color(0xff005fff),
|
||||||
inputTextStyle: TextTheme.light().body,
|
inputTextStyle: const TextStyle(
|
||||||
idleBorderGradient: LinearGradient(
|
color: Color(0xff7f7f7f),
|
||||||
|
fontSize: 14,
|
||||||
|
fontWeight: FontWeight.w500,
|
||||||
|
),
|
||||||
|
idleBorderGradient: const LinearGradient(
|
||||||
|
stops: [0.0, 1.0],
|
||||||
colors: [
|
colors: [
|
||||||
ColorTheme.light().disabled,
|
Color(0xff848585),
|
||||||
ColorTheme.light().disabled,
|
Color(0xff848585),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
activeBorderGradient: LinearGradient(
|
activeBorderGradient: const LinearGradient(
|
||||||
|
stops: [0.0, 1.0],
|
||||||
colors: [
|
colors: [
|
||||||
ColorTheme.light().disabled,
|
Color(0xff848585),
|
||||||
ColorTheme.light().disabled,
|
Color(0xff848585),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user