chore: Follow up design

pull/956/head
Krille 2 years ago
parent e9a9075139
commit f3141f955d
No known key found for this signature in database
GPG Key ID: E067ECD60F1A0652

@ -268,14 +268,9 @@ class ChatInputRow extends StatelessWidget {
height: height, height: height,
width: height, width: height,
alignment: Alignment.center, alignment: Alignment.center,
child: AnimatedCrossFade( child: PlatformInfos.platformCanRecord &&
crossFadeState: PlatformInfos.platformCanRecord &&
controller.sendController.text.isEmpty controller.sendController.text.isEmpty
? CrossFadeState.showFirst ? FloatingActionButton.small(
: CrossFadeState.showSecond,
duration: FluffyThemes.animationDuration,
sizeCurve: FluffyThemes.animationCurve,
firstChild: FloatingActionButton.small(
tooltip: L10n.of(context)!.voiceMessage, tooltip: L10n.of(context)!.voiceMessage,
onPressed: controller.voiceMessageAction, onPressed: controller.voiceMessageAction,
elevation: 0, elevation: 0,
@ -284,23 +279,25 @@ class ChatInputRow extends StatelessWidget {
borderRadius: BorderRadius.circular(height), borderRadius: BorderRadius.circular(height),
), ),
backgroundColor: Theme.of(context).colorScheme.primary, backgroundColor: Theme.of(context).colorScheme.primary,
foregroundColor: Theme.of(context).colorScheme.onPrimary, foregroundColor:
Theme.of(context).colorScheme.onPrimary,
child: const Icon(Icons.mic_none_outlined), child: const Icon(Icons.mic_none_outlined),
), )
secondChild: FloatingActionButton.small( : FloatingActionButton.small(
tooltip: L10n.of(context)!.voiceMessage, tooltip: L10n.of(context)!.send,
onPressed: controller.send, onPressed: controller.send,
elevation: 0, elevation: 0,
heroTag: null, heroTag: null,
shape: RoundedRectangleBorder( shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(height), borderRadius: BorderRadius.circular(height),
), ),
backgroundColor: Theme.of(context).colorScheme.secondary, backgroundColor:
foregroundColor: Theme.of(context).colorScheme.onSecondary, Theme.of(context).colorScheme.onPrimaryContainer,
foregroundColor:
Theme.of(context).colorScheme.onPrimary,
child: const Icon(Icons.send_outlined), child: const Icon(Icons.send_outlined),
), ),
), ),
),
], ],
); );
} }

@ -32,7 +32,6 @@ class StateMessage extends StatelessWidget {
textAlign: TextAlign.center, textAlign: TextAlign.center,
style: TextStyle( style: TextStyle(
fontSize: 12 * AppConfig.fontSizeFactor, fontSize: 12 * AppConfig.fontSizeFactor,
color: Theme.of(context).colorScheme.secondary,
decoration: decoration:
event.redacted ? TextDecoration.lineThrough : null, event.redacted ? TextDecoration.lineThrough : null,
), ),

Loading…
Cancel
Save