Skip to content

Commit

Permalink
Deprecate the Group Chats for Events Feature (PalisadoesFoundation#2305)
Browse files Browse the repository at this point in the history
* Events Feature removed

* test fixes

* docs rewrite

* comment fixes

* comment fixes

* fixes
  • Loading branch information
Hasnain01-hub authored and palisadian committed Feb 19, 2024
1 parent d268a37 commit ec72ca2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 50 deletions.
15 changes: 4 additions & 11 deletions lib/views/after_auth_screens/chat/chat_list_screen.dart
Original file line number Diff line number Diff line change
@@ -1,20 +1,17 @@
// ignore_for_file: talawa_api_doc
// ignore_for_file: talawa_good_doc_comments

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
/// the list of all the users that the current user has chat with.
/// ChatPage returns a stateless widget.
///
/// That renders a list of users with whom the current user has chatted.
class ChatPage extends StatelessWidget {
const ChatPage({super.key});

@override
Widget build(BuildContext context) {
return DefaultTabController(
length: 2,
length: 1,
child: Scaffold(
appBar: AppBar(
backgroundColor: Theme.of(context).primaryColor,
Expand All @@ -32,17 +29,13 @@ class ChatPage extends StatelessWidget {
Tab(
text: "Direct",
),
Tab(
text: "Events",
),
],
),
),
// returns a tabs on the top for current user to switch between DirectChats and EventChats.
body: const TabBarView(
children: [
DirectChats(),
EventChats(),
],
),
floatingActionButton: FloatingActionButton(
Expand Down
17 changes: 0 additions & 17 deletions lib/views/after_auth_screens/chat/event_chats.dart

This file was deleted.

22 changes: 0 additions & 22 deletions test/widget_tests/after_auth_screens/chat/event_chats_test.dart

This file was deleted.

0 comments on commit ec72ca2

Please sign in to comment.