mirror of
https://github.com/Iconica-Development/flutter_chat.git
synced 2025-05-18 18:33:49 +02:00
fix: fix linter issue
This commit is contained in:
parent
3de70d7710
commit
70c795e89a
2 changed files with 7 additions and 6 deletions
|
@ -68,7 +68,7 @@ class LocalChatDetailService with ChangeNotifier implements ChatDetailService {
|
|||
.chats
|
||||
.firstWhere((element) => element.id == chatId);
|
||||
var message = ChatImageMessageModel(
|
||||
sender: ChatUserModel(
|
||||
sender: const ChatUserModel(
|
||||
id: '3',
|
||||
firstName: 'ico',
|
||||
lastName: 'nica',
|
||||
|
@ -101,7 +101,7 @@ class LocalChatDetailService with ChangeNotifier implements ChatDetailService {
|
|||
.chats
|
||||
.firstWhere((element) => element.id == chatId);
|
||||
var message = ChatTextMessageModel(
|
||||
sender: ChatUserModel(
|
||||
sender: const ChatUserModel(
|
||||
id: '3',
|
||||
firstName: 'ico',
|
||||
lastName: 'nica',
|
||||
|
|
|
@ -4,19 +4,19 @@ import 'package:flutter_chat_interface/flutter_chat_interface.dart';
|
|||
class LocalChatUserService implements ChatUserService {
|
||||
/// List of predefined chat users.
|
||||
List<ChatUserModel> users = [
|
||||
ChatUserModel(
|
||||
const ChatUserModel(
|
||||
id: '1',
|
||||
firstName: 'John',
|
||||
lastName: 'Doe',
|
||||
imageUrl: 'https://picsum.photos/200/300',
|
||||
),
|
||||
ChatUserModel(
|
||||
const ChatUserModel(
|
||||
id: '2',
|
||||
firstName: 'Jane',
|
||||
lastName: 'Doe',
|
||||
imageUrl: 'https://picsum.photos/200/300',
|
||||
),
|
||||
ChatUserModel(
|
||||
const ChatUserModel(
|
||||
id: '3',
|
||||
firstName: 'ico',
|
||||
lastName: 'nica',
|
||||
|
@ -29,7 +29,8 @@ class LocalChatUserService implements ChatUserService {
|
|||
Future.value(users.where((element) => element.id != '3').toList());
|
||||
|
||||
@override
|
||||
Future<ChatUserModel?> getCurrentUser() => Future.value(ChatUserModel());
|
||||
Future<ChatUserModel?> getCurrentUser() =>
|
||||
Future.value(const ChatUserModel());
|
||||
|
||||
@override
|
||||
Future<ChatUserModel?> getUser(String id) {
|
||||
|
|
Loading…
Reference in a new issue