Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecate the Group Chats for Events Feature #2305

Merged
merged 12 commits into from
Feb 13, 2024
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.

Loading