Skip to content

Commit

Permalink
- fix warning code.
Browse files Browse the repository at this point in the history
  • Loading branch information
PhuHP committed Nov 16, 2024
1 parent 315683a commit 59b611b
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion lib/_shared/translate/translate_text_impl.dart
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class TranslateTextImpl extends TranslateText {
to: toLocale.languageCode,
)
.then((Translation result) {
print("Source: $original\nTranslated: $result");
return result;
});
}
Expand Down
2 changes: 0 additions & 2 deletions lib/features/chat/ui/public_chat_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion lib/features/genai_setting/data/user_message_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class UserMessageModel extends Equatable {
final Map<String, dynamic> translations;

String get name {
return this.displayName ?? 'Unknown';
return displayName ?? 'Unknown';
}

@override
Expand Down

0 comments on commit 59b611b

Please sign in to comment.