chore: Follow up design
This commit is contained in:
parent
e9a9075139
commit
f3141f955d
2 changed files with 29 additions and 33 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue