Merge branch 'krille/fix-design' into 'main'

chore: Minor design fixes

See merge request famedly/fluffychat!901
This commit is contained in:
Krille Fear 2022-06-04 18:29:20 +00:00
commit b2ba999c72
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),
),
],
),