chore: Adjust status msg design

pull/846/head
krille-chan 2 years ago
parent 2dacc608b4
commit d0090ad8d3
No known key found for this signature in database

@ -125,7 +125,7 @@ class PresenceAvatar extends StatelessWidget {
final statusMsgBubbleElevation = final statusMsgBubbleElevation =
Theme.of(context).appBarTheme.scrolledUnderElevation ?? 4; Theme.of(context).appBarTheme.scrolledUnderElevation ?? 4;
final statusMsgBubbleShadowColor = final statusMsgBubbleShadowColor =
Theme.of(context).appBarTheme.shadowColor; Theme.of(context).colorScheme.onBackground;
final statusMsgBubbleColor = Colors.white.withAlpha(245); final statusMsgBubbleColor = Colors.white.withAlpha(245);
return Padding( return Padding(
padding: const EdgeInsets.symmetric(horizontal: 8.0), padding: const EdgeInsets.symmetric(horizontal: 8.0),
@ -187,12 +187,7 @@ class PresenceAvatar extends StatelessWidget {
left: 0, left: 0,
top: 0, top: 0,
right: 8, right: 8,
child: Column( child: Material(
mainAxisSize: MainAxisSize.min,
crossAxisAlignment:
CrossAxisAlignment.stretch,
children: [
Material(
elevation: statusMsgBubbleElevation, elevation: statusMsgBubbleElevation,
shadowColor: statusMsgBubbleShadowColor, shadowColor: statusMsgBubbleShadowColor,
borderRadius: BorderRadius.circular( borderRadius: BorderRadius.circular(
@ -212,28 +207,35 @@ class PresenceAvatar extends StatelessWidget {
), ),
), ),
), ),
Padding(
padding: const EdgeInsets.only(
left: 26.0,
top: 4.0,
), ),
child: Center( Positioned(
child: SizedBox( left: 8,
width: 12, top: 32,
height: 12,
child: Material( child: Material(
elevation: elevation: statusMsgBubbleElevation,
statusMsgBubbleElevation, shadowColor: statusMsgBubbleShadowColor,
shadowColor: borderRadius: BorderRadius.circular(
statusMsgBubbleShadowColor, AppConfig.borderRadius / 2,
borderRadius:
BorderRadius.circular(99),
color: statusMsgBubbleColor,
), ),
child: const SizedBox(
width: 8,
height: 8,
), ),
), ),
), ),
], Positioned(
left: 14,
top: 40,
child: Material(
elevation: statusMsgBubbleElevation,
shadowColor: statusMsgBubbleShadowColor,
borderRadius: BorderRadius.circular(
AppConfig.borderRadius / 2,
),
child: const SizedBox(
width: 4,
height: 4,
),
), ),
), ),
], ],

Loading…
Cancel
Save