Skip to content

Commit 660b407

Browse files
committed
fix: start page loading side headerbar
1 parent 69e17a6 commit 660b407

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

lib/chat/view/chat_room/chat_room_default_background.dart

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
import 'package:flutter/material.dart';
22
import 'package:mesh/mesh.dart';
3-
import 'package:yaru/yaru.dart';
43

5-
import '../../../app_config.dart';
64
import '../../../common/view/build_context_x.dart';
7-
import '../../../common/view/theme.dart';
85

96
class ChatRoomDefaultBackground extends StatelessWidget {
107
const ChatRoomDefaultBackground({super.key});
@@ -14,12 +11,6 @@ class ChatRoomDefaultBackground extends StatelessWidget {
1411
final colorScheme = context.colorScheme;
1512
final bg = colorScheme.surface;
1613
final accent = colorScheme.primary;
17-
final remix = yaru
18-
? remixColor(
19-
accent,
20-
palette: YaruVariant.accents.map((e) => e.color).toList(),
21-
)
22-
: colorScheme.primaryContainer;
2314
return Opacity(
2415
opacity: 0.3,
2516
child: OMeshGradient(
@@ -33,8 +24,8 @@ class ChatRoomDefaultBackground extends StatelessWidget {
3324
accent.withValues(alpha: 0.11),
3425
accent.withValues(alpha: 0.31),
3526
accent.withValues(alpha: 0.11),
36-
remix.withValues(alpha: 0.02),
37-
remix.withValues(alpha: 0.41),
27+
accent.withValues(alpha: 0.02),
28+
accent.withValues(alpha: 0.41),
3829
bg.withValues(alpha: 0.71),
3930
bg.withValues(alpha: 0.91),
4031
bg.withValues(alpha: 0.80),

lib/chat/view/chat_start_page.dart

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import 'package:flutter/material.dart';
22
import 'package:watch_it/watch_it.dart';
3+
import 'package:yaru/yaru.dart';
34

45
import '../../common/view/common_widgets.dart';
56
import '../authentication/chat_login_page.dart';
@@ -29,8 +30,12 @@ class _ChatStartPageState extends State<ChatStartPage> {
2930
? (!di<ChatModel>().isLogged)
3031
? const ChatLoginPage()
3132
: const ChatMasterDetailPage()
32-
: const Material(
33-
child: Center(
33+
: const Scaffold(
34+
appBar: YaruWindowTitleBar(
35+
border: BorderSide.none,
36+
backgroundColor: Colors.transparent,
37+
),
38+
body: Center(
3439
child: Progress(),
3540
),
3641
),

0 commit comments

Comments
 (0)