feat: update dependencies, ui and linting
This commit is contained in:
@@ -2,12 +2,13 @@ import 'package:flutter/cupertino.dart';
|
||||
import 'package:imessage/channel_preview.dart';
|
||||
import 'package:imessage/message_page.dart';
|
||||
import 'package:animations/animations.dart';
|
||||
import 'package:stream_chat_flutter/stream_chat_flutter.dart'
|
||||
import 'package:stream_chat_flutter_core/stream_chat_flutter_core.dart'
|
||||
show Channel, StreamChannel;
|
||||
|
||||
class ChannelListView extends StatelessWidget {
|
||||
const ChannelListView({Key? key, required this.channels}) : super(key: key);
|
||||
final List<Channel> channels;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
channels.removeWhere((channel) => channel.lastMessageAt == null);
|
||||
@@ -27,7 +28,7 @@ class ChannelListView extends StatelessWidget {
|
||||
PageRouteBuilder(
|
||||
pageBuilder: (_, __, ___) => StreamChannel(
|
||||
channel: channels[index],
|
||||
child: MessagePage(),
|
||||
child: const MessagePage(),
|
||||
),
|
||||
transitionsBuilder: (
|
||||
_,
|
||||
|
||||
Reference in New Issue
Block a user