chore: Minor design fixes

This commit is contained in:
Christian Pauly 2022-06-04 20:06:57 +02:00
parent d41b581578
commit caab1b450a
3 changed files with 8 additions and 3 deletions

View File

@ -113,7 +113,9 @@ class ChatListView extends StatelessWidget {
),
)
: null,
bottomNavigationBar: const ConnectionStatusHeader(),
bottomNavigationBar: const SafeArea(
child: ConnectionStatusHeader(),
),
),
);
},

View File

@ -48,8 +48,10 @@ class NewPrivateChatView extends StatelessWidget {
borderRadius: BorderRadius.circular(12),
child: Material(
borderRadius: BorderRadius.circular(12),
elevation: 4,
elevation: 6,
color: Colors.white,
shadowColor: const Color(0x44000000),
clipBehavior: Clip.hardEdge,
child: Column(
mainAxisSize: MainAxisSize.min,
children: [

View File

@ -50,7 +50,7 @@ class _ConnectionStatusHeaderState extends State<ConnectionStatusHeader> {
curve: Curves.bounceInOut,
height: hide ? 0 : 36,
clipBehavior: Clip.hardEdge,
decoration: BoxDecoration(color: Theme.of(context).secondaryHeaderColor),
decoration: BoxDecoration(color: Theme.of(context).colorScheme.surface),
padding: const EdgeInsets.symmetric(horizontal: 12),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
@ -68,6 +68,7 @@ class _ConnectionStatusHeaderState extends State<ConnectionStatusHeader> {
_status.toLocalizedString(context),
maxLines: 1,
overflow: TextOverflow.ellipsis,
style: TextStyle(color: Theme.of(context).colorScheme.onSurface),
),
],
),