fix linter
This commit is contained in:
@@ -324,6 +324,8 @@ class _MessageInputState extends State<MessageInput> {
|
|||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
|
attachment.url = res.file;
|
||||||
|
|
||||||
setState(() {
|
setState(() {
|
||||||
attachment.uploaded = true;
|
attachment.uploaded = true;
|
||||||
});
|
});
|
||||||
@@ -404,9 +406,9 @@ class _MessageInputState extends State<MessageInput> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class _SendingAttachment {
|
class _SendingAttachment {
|
||||||
final String url;
|
|
||||||
final File file;
|
final File file;
|
||||||
final FileType type;
|
final FileType type;
|
||||||
|
String url;
|
||||||
bool uploaded = false;
|
bool uploaded = false;
|
||||||
|
|
||||||
_SendingAttachment({
|
_SendingAttachment({
|
||||||
|
|||||||
+15
-13
@@ -505,19 +505,21 @@ class _MessageWidgetState extends State<MessageWidget>
|
|||||||
mainAxisAlignment: MainAxisAlignment.start,
|
mainAxisAlignment: MainAxisAlignment.start,
|
||||||
children:
|
children:
|
||||||
widget.message.reactionCounts.keys.map((reactionType) {
|
widget.message.reactionCounts.keys.map((reactionType) {
|
||||||
return Text(
|
return Text(
|
||||||
reactionToEmoji[reactionType] ?? '?',
|
reactionToEmoji[reactionType] ?? '?',
|
||||||
) as Widget; //TODO refactor
|
) as Widget; //TODO refactor
|
||||||
}).toList()
|
}).toList() +
|
||||||
..add(Padding(
|
[
|
||||||
padding: const EdgeInsets.only(left: 4.0),
|
Padding(
|
||||||
child: Text(
|
padding: const EdgeInsets.only(left: 4.0),
|
||||||
widget.message.reactionCounts.values
|
child: Text(
|
||||||
.fold(0, (t, v) => v + t)
|
widget.message.reactionCounts.values
|
||||||
.toString(),
|
.fold(0, (t, v) => v + t)
|
||||||
style: TextStyle(color: Colors.white),
|
.toString(),
|
||||||
),
|
style: TextStyle(color: Colors.white),
|
||||||
)))
|
),
|
||||||
|
)
|
||||||
|
])
|
||||||
: SizedBox(),
|
: SizedBox(),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -2,8 +2,6 @@ import 'package:flutter/material.dart';
|
|||||||
import 'package:stream_chat/stream_chat.dart';
|
import 'package:stream_chat/stream_chat.dart';
|
||||||
import 'package:stream_chat_flutter/src/stream_chat_theme.dart';
|
import 'package:stream_chat_flutter/src/stream_chat_theme.dart';
|
||||||
|
|
||||||
import 'stream_channel.dart';
|
|
||||||
|
|
||||||
class ThreadHeader extends StatelessWidget implements PreferredSizeWidget {
|
class ThreadHeader extends StatelessWidget implements PreferredSizeWidget {
|
||||||
final bool showBackButton;
|
final bool showBackButton;
|
||||||
final VoidCallback onBackPressed;
|
final VoidCallback onBackPressed;
|
||||||
@@ -19,7 +17,6 @@ class ThreadHeader extends StatelessWidget implements PreferredSizeWidget {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
final channel = StreamChannel.of(context).channel;
|
|
||||||
return AppBar(
|
return AppBar(
|
||||||
automaticallyImplyLeading: false,
|
automaticallyImplyLeading: false,
|
||||||
elevation: 1,
|
elevation: 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user