Merge pull request #29 from KometTeam/feature/login-success-animation

Feature/login анимация успешного входа, мультиаккаунтинг и десктоп режим
This commit is contained in:
klockky
2026-05-27 19:01:41 +03:00
committed by GitHub
12 changed files with 1372 additions and 84 deletions
+15 -2
View File
@@ -59,6 +59,8 @@ class ChatScreen extends StatefulWidget {
final String name;
final String imageUrl;
final String chatType;
final bool embedded;
final VoidCallback? onClose;
const ChatScreen({
super.key,
@@ -66,6 +68,8 @@ class ChatScreen extends StatefulWidget {
required this.name,
required this.imageUrl,
required this.chatType,
this.embedded = false,
this.onClose,
});
@override
@@ -713,8 +717,17 @@ class _ChatScreenState extends State<ChatScreen>
surfaceTintColor: Colors.transparent,
iconTheme: IconThemeData(color: cs.onSurface),
leading: IconButton(
icon: const Icon(Symbols.arrow_back, weight: 400),
onPressed: () => Navigator.pop(context),
icon: Icon(
widget.embedded ? Symbols.close : Symbols.arrow_back,
weight: 400,
),
onPressed: () {
if (widget.embedded) {
widget.onClose?.call();
} else {
Navigator.pop(context);
}
},
),
titleSpacing: 0,
title: Row(