[94] chore: remove excessive logs
This commit is contained in:
@@ -11,7 +11,6 @@ import 'firebase_options.dart';
|
|||||||
|
|
||||||
Future<void> main() async {
|
Future<void> main() async {
|
||||||
WidgetsFlutterBinding.ensureInitialized();
|
WidgetsFlutterBinding.ensureInitialized();
|
||||||
debugPrint("#firebase; PN_1");
|
|
||||||
await Firebase.initializeApp(
|
await Firebase.initializeApp(
|
||||||
options: DefaultFirebaseOptions.currentPlatform,
|
options: DefaultFirebaseOptions.currentPlatform,
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import 'package:collection/collection.dart';
|
import 'package:collection/collection.dart';
|
||||||
import 'package:example/routes/routes.dart';
|
|
||||||
import 'package:example/pages/thread_page.dart';
|
import 'package:example/pages/thread_page.dart';
|
||||||
|
import 'package:example/routes/routes.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:go_router/go_router.dart';
|
import 'package:go_router/go_router.dart';
|
||||||
import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
import 'package:stream_chat_flutter/stream_chat_flutter.dart';
|
||||||
@@ -47,14 +47,12 @@ class _ChannelPageState extends State<ChannelPage> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
print(">>>>>>>>>> CHANNEL PAGE");
|
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: StreamChatTheme.of(context).colorTheme.appBg,
|
backgroundColor: StreamChatTheme.of(context).colorTheme.appBg,
|
||||||
appBar: StreamChannelHeader(
|
appBar: StreamChannelHeader(
|
||||||
showTypingIndicator: false,
|
showTypingIndicator: false,
|
||||||
onBackPressed: () => GoRouter.of(context).pop(),
|
onBackPressed: () => GoRouter.of(context).pop(),
|
||||||
onImageTap: () async {
|
onImageTap: () async {
|
||||||
print(">>>>>>>>>> onImageTap");
|
|
||||||
final channel = StreamChannel.of(context).channel;
|
final channel = StreamChannel.of(context).channel;
|
||||||
final router = GoRouter.of(context);
|
final router = GoRouter.of(context);
|
||||||
|
|
||||||
@@ -64,7 +62,6 @@ class _ChannelPageState extends State<ChannelPage> {
|
|||||||
(element) => element.user!.id != currentUser!.id,
|
(element) => element.user!.id != currentUser!.id,
|
||||||
);
|
);
|
||||||
if (otherUser != null) {
|
if (otherUser != null) {
|
||||||
print(">>>>>>>>>> GROUP_INFO_SCREEN otherUser");
|
|
||||||
router.pushNamed(
|
router.pushNamed(
|
||||||
Routes.CHAT_INFO_SCREEN.name,
|
Routes.CHAT_INFO_SCREEN.name,
|
||||||
params: Routes.CHAT_INFO_SCREEN.params(channel),
|
params: Routes.CHAT_INFO_SCREEN.params(channel),
|
||||||
@@ -72,7 +69,6 @@ class _ChannelPageState extends State<ChannelPage> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
print(">>>>>>>>>> GROUP_INFO_SCREEN");
|
|
||||||
GoRouter.of(context).pushNamed(
|
GoRouter.of(context).pushNamed(
|
||||||
Routes.GROUP_INFO_SCREEN.name,
|
Routes.GROUP_INFO_SCREEN.name,
|
||||||
params: Routes.GROUP_INFO_SCREEN.params(channel),
|
params: Routes.GROUP_INFO_SCREEN.params(channel),
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import 'package:example/utils/localizations.dart';
|
|
||||||
import 'package:example/routes/routes.dart';
|
import 'package:example/routes/routes.dart';
|
||||||
|
import 'package:example/utils/localizations.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
import 'package:flutter_local_notifications/flutter_local_notifications.dart'
|
import 'package:flutter_local_notifications/flutter_local_notifications.dart'
|
||||||
hide Message;
|
hide Message;
|
||||||
@@ -33,8 +33,6 @@ void showLocalNotification(
|
|||||||
await flutterLocalNotificationsPlugin.initialize(
|
await flutterLocalNotificationsPlugin.initialize(
|
||||||
initializationSettings,
|
initializationSettings,
|
||||||
onSelectNotification: (channelCid) async {
|
onSelectNotification: (channelCid) async {
|
||||||
debugPrint("[onSelectNotification] #firebase; channelCid: $channelCid");
|
|
||||||
debugPrint("[onSelectNotification] #firebase; context: $context");
|
|
||||||
if (channelCid != null) {
|
if (channelCid != null) {
|
||||||
final client = StreamChat.of(context).client;
|
final client = StreamChat.of(context).client;
|
||||||
final router = GoRouter.of(context);
|
final router = GoRouter.of(context);
|
||||||
|
|||||||
Reference in New Issue
Block a user