"Updated icon in AiChatPage, changed method signature in HistoryAiChatState, removed web/icons/icon.png and updated web/index.html to reference icon.jpg instead"

This commit is contained in:
OkaykOrhmn 2024-10-05 15:36:31 +03:30
parent 7c74587785
commit 4a14560802
4 changed files with 6 additions and 6 deletions

View File

@ -281,7 +281,7 @@ class _AiChatPageState extends State<AiChatPage> {
), ),
))); )));
}, },
child: const Icon(Icons.shopping_bag_outlined)), child: const Icon(DidvanIcons.note_regular)),
) )
], ],
centerTitle: true, centerTitle: true,

View File

@ -47,18 +47,18 @@ class HistoryAiChatState extends CoreProvier {
} }
Future<void> getSearchChats( Future<void> getSearchChats(
{required final String q, final bool? archived}) async { {required final String q, final bool archived = false}) async {
final service = RequestService( final service = RequestService(
archived != null && archived archived
? RequestHelper.aiSearchArchived(q) ? RequestHelper.aiSearchArchived(q)
: RequestHelper.aiSearchChats(q), : RequestHelper.aiSearchChats(q),
); );
await service.httpGet(); await service.httpGet();
if (service.isSuccess) { if (service.isSuccess) {
chats.clear(); archivedChats.clear();
final ch = service.result['chats']; final ch = service.result['chats'];
for (var i = 0; i < ch.length; i++) { for (var i = 0; i < ch.length; i++) {
chats.add(ChatsModel.fromJson(ch[i])); archivedChats.add(ChatsModel.fromJson(ch[i]));
} }
appState = AppState.idle; appState = AppState.idle;
update(); update();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.7 KiB

View File

@ -24,7 +24,7 @@
<meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" /> <meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="apple-mobile-web-app-title" content="didvan" /> <meta name="apple-mobile-web-app-title" content="didvan" />
<link rel="apple-touch-icon" href="icons/icon.png" /> <link rel="apple-touch-icon" href="icons/icon.jpg" />
<!-- Favicon --> <!-- Favicon -->
<link rel="icon" type="image/png" href="favicon.png" /> <link rel="icon" type="image/png" href="favicon.png" />