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,38 +268,35 @@ 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 ? FloatingActionButton.small(
? CrossFadeState.showFirst tooltip: L10n.of(context)!.voiceMessage,
: CrossFadeState.showSecond, onPressed: controller.voiceMessageAction,
duration: FluffyThemes.animationDuration, elevation: 0,
sizeCurve: FluffyThemes.animationCurve, heroTag: null,
firstChild: FloatingActionButton.small( shape: RoundedRectangleBorder(
tooltip: L10n.of(context)!.voiceMessage, borderRadius: BorderRadius.circular(height),
onPressed: controller.voiceMessageAction, ),
elevation: 0, backgroundColor: Theme.of(context).colorScheme.primary,
heroTag: null, foregroundColor:
shape: RoundedRectangleBorder( Theme.of(context).colorScheme.onPrimary,
borderRadius: BorderRadius.circular(height), child: const Icon(Icons.mic_none_outlined),
), )
backgroundColor: Theme.of(context).colorScheme.primary, : FloatingActionButton.small(
foregroundColor: Theme.of(context).colorScheme.onPrimary, tooltip: L10n.of(context)!.send,
child: const Icon(Icons.mic_none_outlined), onPressed: controller.send,
), elevation: 0,
secondChild: FloatingActionButton.small( heroTag: null,
tooltip: L10n.of(context)!.voiceMessage, shape: RoundedRectangleBorder(
onPressed: controller.send, borderRadius: BorderRadius.circular(height),
elevation: 0, ),
heroTag: null, backgroundColor:
shape: RoundedRectangleBorder( Theme.of(context).colorScheme.onPrimaryContainer,
borderRadius: BorderRadius.circular(height), foregroundColor:
), Theme.of(context).colorScheme.onPrimary,
backgroundColor: Theme.of(context).colorScheme.secondary, child: const Icon(Icons.send_outlined),
foregroundColor: Theme.of(context).colorScheme.onSecondary, ),
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