fix tests
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
import 'dart:ui';
|
||||||
|
|
||||||
import 'package:flutter/foundation.dart';
|
import 'package:flutter/foundation.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:stream_chat_flutter/src/extension.dart';
|
import 'package:stream_chat_flutter/src/extension.dart';
|
||||||
@@ -188,7 +190,7 @@ class MessageInputThemeData with Diagnosticable {
|
|||||||
linkHighlightColor:
|
linkHighlightColor:
|
||||||
Color.lerp(a.linkHighlightColor, b.linkHighlightColor, t),
|
Color.lerp(a.linkHighlightColor, b.linkHighlightColor, t),
|
||||||
enableSafeArea: a.enableSafeArea,
|
enableSafeArea: a.enableSafeArea,
|
||||||
elevation: Tween(begin: a.elevation, end: b.elevation).transform(t),
|
elevation: lerpDouble(a.elevation, b.elevation, t),
|
||||||
shadow: BoxShadow.lerp(a.shadow, b.shadow, t),
|
shadow: BoxShadow.lerp(a.shadow, b.shadow, t),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
@@ -63,19 +63,23 @@ void main() {
|
|||||||
Event(type: EventType.typingStart),
|
Event(type: EventType.typingStart),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
const typingKey = Key('typing');
|
||||||
|
|
||||||
await tester.pumpWidget(MaterialApp(
|
await tester.pumpWidget(MaterialApp(
|
||||||
home: StreamChat(
|
home: StreamChat(
|
||||||
client: client,
|
client: client,
|
||||||
child: StreamChannel(
|
child: StreamChannel(
|
||||||
channel: channel,
|
channel: channel,
|
||||||
child: const Scaffold(
|
child: const Scaffold(
|
||||||
body: TypingIndicator(),
|
body: TypingIndicator(
|
||||||
|
key: typingKey,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
));
|
));
|
||||||
|
|
||||||
expect(find.byKey(const Key('typings')), findsOneWidget);
|
expect(find.byKey(typingKey), findsOneWidget);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user