mirror of
https://github.com/Iconica-Development/flutter_chat.git
synced 2025-05-19 02:43:50 +02:00
fix: remove unnecessary ChatOptions from routes.dart
This commit is contained in:
parent
82a7b3da46
commit
68f3b05ef4
2 changed files with 0 additions and 20 deletions
|
@ -28,7 +28,6 @@ class FlutterChatNavigatorUserstory extends _BaseChatNavigatorUserstory {
|
||||||
chatOverviewRoute(
|
chatOverviewRoute(
|
||||||
userId: userId,
|
userId: userId,
|
||||||
chatService: service,
|
chatService: service,
|
||||||
chatOptions: options,
|
|
||||||
onExit: onExit,
|
onExit: onExit,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -58,7 +57,6 @@ class FlutterChatDetailNavigatorUserstory extends _BaseChatNavigatorUserstory {
|
||||||
chatId: chatId,
|
chatId: chatId,
|
||||||
userId: userId,
|
userId: userId,
|
||||||
chatService: service,
|
chatService: service,
|
||||||
chatOptions: options,
|
|
||||||
onExit: onExit,
|
onExit: onExit,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,6 @@ import "dart:async";
|
||||||
|
|
||||||
import "package:chat_repository_interface/chat_repository_interface.dart";
|
import "package:chat_repository_interface/chat_repository_interface.dart";
|
||||||
import "package:flutter/material.dart";
|
import "package:flutter/material.dart";
|
||||||
import "package:flutter_chat/src/config/chat_options.dart";
|
|
||||||
import "package:flutter_chat/src/screens/chat_detail/chat_detail_screen.dart";
|
import "package:flutter_chat/src/screens/chat_detail/chat_detail_screen.dart";
|
||||||
import "package:flutter_chat/src/screens/chat_profile_screen.dart";
|
import "package:flutter_chat/src/screens/chat_profile_screen.dart";
|
||||||
import "package:flutter_chat/src/screens/chat_screen.dart";
|
import "package:flutter_chat/src/screens/chat_screen.dart";
|
||||||
|
@ -14,7 +13,6 @@ import "package:flutter_chat/src/screens/creation/new_group_chat_screen.dart";
|
||||||
MaterialPageRoute chatOverviewRoute({
|
MaterialPageRoute chatOverviewRoute({
|
||||||
required String userId,
|
required String userId,
|
||||||
required ChatService chatService,
|
required ChatService chatService,
|
||||||
required ChatOptions chatOptions,
|
|
||||||
required VoidCallback? onExit,
|
required VoidCallback? onExit,
|
||||||
}) =>
|
}) =>
|
||||||
MaterialPageRoute(
|
MaterialPageRoute(
|
||||||
|
@ -26,7 +24,6 @@ MaterialPageRoute chatOverviewRoute({
|
||||||
chatId: chat.id,
|
chatId: chat.id,
|
||||||
userId: userId,
|
userId: userId,
|
||||||
chatService: chatService,
|
chatService: chatService,
|
||||||
chatOptions: chatOptions,
|
|
||||||
onExit: () => Navigator.of(context).pop(),
|
onExit: () => Navigator.of(context).pop(),
|
||||||
).builder(context),
|
).builder(context),
|
||||||
),
|
),
|
||||||
|
@ -36,7 +33,6 @@ MaterialPageRoute chatOverviewRoute({
|
||||||
_newChatRoute(
|
_newChatRoute(
|
||||||
userId: userId,
|
userId: userId,
|
||||||
chatService: chatService,
|
chatService: chatService,
|
||||||
chatOptions: chatOptions,
|
|
||||||
).builder(context),
|
).builder(context),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
@ -47,7 +43,6 @@ MaterialPageRoute chatDetailRoute({
|
||||||
required String chatId,
|
required String chatId,
|
||||||
required String userId,
|
required String userId,
|
||||||
required ChatService chatService,
|
required ChatService chatService,
|
||||||
required ChatOptions chatOptions,
|
|
||||||
required VoidCallback? onExit,
|
required VoidCallback? onExit,
|
||||||
}) =>
|
}) =>
|
||||||
MaterialPageRoute(
|
MaterialPageRoute(
|
||||||
|
@ -82,7 +77,6 @@ MaterialPageRoute chatDetailRoute({
|
||||||
_chatProfileRoute(
|
_chatProfileRoute(
|
||||||
userId: userId,
|
userId: userId,
|
||||||
chatService: chatService,
|
chatService: chatService,
|
||||||
chatOptions: chatOptions,
|
|
||||||
chat: chat,
|
chat: chat,
|
||||||
onExit: () => Navigator.of(context).pop(),
|
onExit: () => Navigator.of(context).pop(),
|
||||||
).builder(context),
|
).builder(context),
|
||||||
|
@ -97,7 +91,6 @@ MaterialPageRoute chatDetailRoute({
|
||||||
_chatProfileRoute(
|
_chatProfileRoute(
|
||||||
userId: userId,
|
userId: userId,
|
||||||
chatService: chatService,
|
chatService: chatService,
|
||||||
chatOptions: chatOptions,
|
|
||||||
user: otherUser,
|
user: otherUser,
|
||||||
onExit: () => Navigator.of(context).pop(),
|
onExit: () => Navigator.of(context).pop(),
|
||||||
).builder(context),
|
).builder(context),
|
||||||
|
@ -109,7 +102,6 @@ MaterialPageRoute chatDetailRoute({
|
||||||
_chatProfileRoute(
|
_chatProfileRoute(
|
||||||
userId: userId,
|
userId: userId,
|
||||||
chatService: chatService,
|
chatService: chatService,
|
||||||
chatOptions: chatOptions,
|
|
||||||
user: user,
|
user: user,
|
||||||
onExit: () => Navigator.of(context).pop(),
|
onExit: () => Navigator.of(context).pop(),
|
||||||
).builder(context),
|
).builder(context),
|
||||||
|
@ -120,7 +112,6 @@ MaterialPageRoute chatDetailRoute({
|
||||||
MaterialPageRoute _chatProfileRoute({
|
MaterialPageRoute _chatProfileRoute({
|
||||||
required String userId,
|
required String userId,
|
||||||
required ChatService chatService,
|
required ChatService chatService,
|
||||||
required ChatOptions chatOptions,
|
|
||||||
required VoidCallback onExit,
|
required VoidCallback onExit,
|
||||||
UserModel? user,
|
UserModel? user,
|
||||||
ChatModel? chat,
|
ChatModel? chat,
|
||||||
|
@ -138,7 +129,6 @@ MaterialPageRoute _chatProfileRoute({
|
||||||
_chatProfileRoute(
|
_chatProfileRoute(
|
||||||
userId: userId,
|
userId: userId,
|
||||||
chatService: chatService,
|
chatService: chatService,
|
||||||
chatOptions: chatOptions,
|
|
||||||
user: user,
|
user: user,
|
||||||
onExit: () => Navigator.of(context).pop(),
|
onExit: () => Navigator.of(context).pop(),
|
||||||
).builder(context),
|
).builder(context),
|
||||||
|
@ -153,7 +143,6 @@ MaterialPageRoute _chatProfileRoute({
|
||||||
chatId: chat.id,
|
chatId: chat.id,
|
||||||
userId: userId,
|
userId: userId,
|
||||||
chatService: chatService,
|
chatService: chatService,
|
||||||
chatOptions: chatOptions,
|
|
||||||
onExit: () => Navigator.of(context).pop(),
|
onExit: () => Navigator.of(context).pop(),
|
||||||
).builder(context),
|
).builder(context),
|
||||||
);
|
);
|
||||||
|
@ -164,7 +153,6 @@ MaterialPageRoute _chatProfileRoute({
|
||||||
MaterialPageRoute _newChatRoute({
|
MaterialPageRoute _newChatRoute({
|
||||||
required String userId,
|
required String userId,
|
||||||
required ChatService chatService,
|
required ChatService chatService,
|
||||||
required ChatOptions chatOptions,
|
|
||||||
}) =>
|
}) =>
|
||||||
MaterialPageRoute(
|
MaterialPageRoute(
|
||||||
builder: (context) => NewChatScreen(
|
builder: (context) => NewChatScreen(
|
||||||
|
@ -174,7 +162,6 @@ MaterialPageRoute _newChatRoute({
|
||||||
_newGroupChatRoute(
|
_newGroupChatRoute(
|
||||||
userId: userId,
|
userId: userId,
|
||||||
chatService: chatService,
|
chatService: chatService,
|
||||||
chatOptions: chatOptions,
|
|
||||||
).builder(context),
|
).builder(context),
|
||||||
),
|
),
|
||||||
onPressCreateChat: (user) async {
|
onPressCreateChat: (user) async {
|
||||||
|
@ -186,7 +173,6 @@ MaterialPageRoute _newChatRoute({
|
||||||
chatId: chat.id,
|
chatId: chat.id,
|
||||||
userId: userId,
|
userId: userId,
|
||||||
chatService: chatService,
|
chatService: chatService,
|
||||||
chatOptions: chatOptions,
|
|
||||||
onExit: () => Navigator.of(context).pop(),
|
onExit: () => Navigator.of(context).pop(),
|
||||||
).builder(context),
|
).builder(context),
|
||||||
);
|
);
|
||||||
|
@ -197,7 +183,6 @@ MaterialPageRoute _newChatRoute({
|
||||||
MaterialPageRoute _newGroupChatRoute({
|
MaterialPageRoute _newGroupChatRoute({
|
||||||
required String userId,
|
required String userId,
|
||||||
required ChatService chatService,
|
required ChatService chatService,
|
||||||
required ChatOptions chatOptions,
|
|
||||||
}) =>
|
}) =>
|
||||||
MaterialPageRoute(
|
MaterialPageRoute(
|
||||||
builder: (context) => NewGroupChatScreen(
|
builder: (context) => NewGroupChatScreen(
|
||||||
|
@ -207,7 +192,6 @@ MaterialPageRoute _newGroupChatRoute({
|
||||||
_newGroupChatOverviewRoute(
|
_newGroupChatOverviewRoute(
|
||||||
userId: userId,
|
userId: userId,
|
||||||
chatService: chatService,
|
chatService: chatService,
|
||||||
chatOptions: chatOptions,
|
|
||||||
users: users,
|
users: users,
|
||||||
).builder(context),
|
).builder(context),
|
||||||
),
|
),
|
||||||
|
@ -217,7 +201,6 @@ MaterialPageRoute _newGroupChatRoute({
|
||||||
MaterialPageRoute _newGroupChatOverviewRoute({
|
MaterialPageRoute _newGroupChatOverviewRoute({
|
||||||
required String userId,
|
required String userId,
|
||||||
required ChatService chatService,
|
required ChatService chatService,
|
||||||
required ChatOptions chatOptions,
|
|
||||||
required List<UserModel> users,
|
required List<UserModel> users,
|
||||||
}) =>
|
}) =>
|
||||||
MaterialPageRoute(
|
MaterialPageRoute(
|
||||||
|
@ -247,7 +230,6 @@ MaterialPageRoute _newGroupChatOverviewRoute({
|
||||||
chatId: chat.id,
|
chatId: chat.id,
|
||||||
userId: userId,
|
userId: userId,
|
||||||
chatService: chatService,
|
chatService: chatService,
|
||||||
chatOptions: chatOptions,
|
|
||||||
onExit: () => Navigator.of(context).pop(),
|
onExit: () => Navigator.of(context).pop(),
|
||||||
).builder(context),
|
).builder(context),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue