From 59b611bc66d25d83e7218918b2b26dce4f97e906 Mon Sep 17 00:00:00 2001 From: PhuHP Date: Sat, 16 Nov 2024 20:23:39 +0700 Subject: [PATCH] - fix warning code. --- lib/_shared/translate/translate_text_impl.dart | 1 - lib/features/chat/ui/public_chat_screen.dart | 2 -- lib/features/genai_setting/data/user_message_model.dart | 2 +- 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/_shared/translate/translate_text_impl.dart b/lib/_shared/translate/translate_text_impl.dart index d90e5e3..b1447d1 100644 --- a/lib/_shared/translate/translate_text_impl.dart +++ b/lib/_shared/translate/translate_text_impl.dart @@ -20,7 +20,6 @@ class TranslateTextImpl extends TranslateText { to: toLocale.languageCode, ) .then((Translation result) { - print("Source: $original\nTranslated: $result"); return result; }); } diff --git a/lib/features/chat/ui/public_chat_screen.dart b/lib/features/chat/ui/public_chat_screen.dart index 911d6ec..c84a1d6 100644 --- a/lib/features/chat/ui/public_chat_screen.dart +++ b/lib/features/chat/ui/public_chat_screen.dart @@ -3,12 +3,10 @@ import 'package:firebase_auth/firebase_auth.dart'; import 'package:firebase_ui_firestore/firebase_ui_firestore.dart'; import 'package:flutter/material.dart'; import 'package:flutter_bloc/flutter_bloc.dart'; -import 'package:public_chat/_shared/bloc/user_manager/user_manager_cubit.dart'; import 'package:public_chat/_shared/data/chat_data.dart'; import 'package:public_chat/_shared/widgets/chat/chat_bubble_widget.dart'; import 'package:public_chat/_shared/widgets/chat/message_box_widget.dart'; import 'package:public_chat/features/chat/bloc/chat_cubit.dart'; -import 'package:public_chat/features/genai_setting/data/user_message_model.dart'; import 'package:public_chat/utils/locale_support.dart'; class PublicChatScreen extends StatelessWidget { diff --git a/lib/features/genai_setting/data/user_message_model.dart b/lib/features/genai_setting/data/user_message_model.dart index 9a8f117..139fede 100644 --- a/lib/features/genai_setting/data/user_message_model.dart +++ b/lib/features/genai_setting/data/user_message_model.dart @@ -18,7 +18,7 @@ class UserMessageModel extends Equatable { final Map translations; String get name { - return this.displayName ?? 'Unknown'; + return displayName ?? 'Unknown'; } @override