From 97f57196245e8eb4119a7d9c775e890bfd48abf1 Mon Sep 17 00:00:00 2001 From: Hasnain Sayyed Date: Thu, 4 Jan 2024 10:48:45 +0530 Subject: [PATCH] feat:event-chat code removed --- .../chat/chat_list_screen.dart | 5 ----- .../after_auth_screens/chat/event_chats.dart | 17 -------------- .../chat/event_chats_test.dart | 22 ------------------- 3 files changed, 44 deletions(-) delete mode 100644 lib/views/after_auth_screens/chat/event_chats.dart delete mode 100644 test/widget_tests/after_auth_screens/chat/event_chats_test.dart diff --git a/lib/views/after_auth_screens/chat/chat_list_screen.dart b/lib/views/after_auth_screens/chat/chat_list_screen.dart index d92139e7be..70c344dbd3 100644 --- a/lib/views/after_auth_screens/chat/chat_list_screen.dart +++ b/lib/views/after_auth_screens/chat/chat_list_screen.dart @@ -3,7 +3,6 @@ import 'package:flutter/material.dart'; import 'package:talawa/views/after_auth_screens/chat/direct_chats.dart'; -import 'package:talawa/views/after_auth_screens/chat/event_chats.dart'; import 'package:talawa/views/after_auth_screens/chat/select_contact.dart'; /// ChatPage returns a stateless widget for current user Chat Page which renders @@ -32,9 +31,6 @@ class ChatPage extends StatelessWidget { Tab( text: "Direct", ), - Tab( - text: "Events", - ), ], ), ), @@ -42,7 +38,6 @@ class ChatPage extends StatelessWidget { body: const TabBarView( children: [ DirectChats(), - EventChats(), ], ), floatingActionButton: FloatingActionButton( diff --git a/lib/views/after_auth_screens/chat/event_chats.dart b/lib/views/after_auth_screens/chat/event_chats.dart deleted file mode 100644 index 734be63824..0000000000 --- a/lib/views/after_auth_screens/chat/event_chats.dart +++ /dev/null @@ -1,17 +0,0 @@ -// ignore_for_file: talawa_api_doc -// ignore_for_file: talawa_good_doc_comments - -import 'package:flutter/material.dart'; - -/// EventChats return a statelessWidget for rendering all the events -/// chats of the current user in the Chat List Screen -class EventChats extends StatelessWidget { - const EventChats({super.key}); - - @override - Widget build(BuildContext context) { - return Container( - child: null, - ); - } -} diff --git a/test/widget_tests/after_auth_screens/chat/event_chats_test.dart b/test/widget_tests/after_auth_screens/chat/event_chats_test.dart deleted file mode 100644 index 0296156d55..0000000000 --- a/test/widget_tests/after_auth_screens/chat/event_chats_test.dart +++ /dev/null @@ -1,22 +0,0 @@ -// ignore_for_file: talawa_api_doc -// ignore_for_file: talawa_good_doc_comments - -import 'package:flutter/material.dart'; -import 'package:flutter_test/flutter_test.dart'; -import 'package:talawa/views/after_auth_screens/chat/event_chats.dart'; - -Widget createEventChats() { - return const EventChats(); -} - -void main() { - group('Tests for event chats', () { - testWidgets('Check whether EventChats shows up', (tester) async { - await tester.pumpWidget(createEventChats()); - await tester.pump(); - - expect(find.byType(EventChats), findsOneWidget); - expect(find.byType(Container), findsOneWidget); - }); - }); -}