|
|
|
|
@ -336,36 +336,36 @@ class ChatInputRow extends StatelessWidget {
|
|
|
|
|
height: height,
|
|
|
|
|
width: height,
|
|
|
|
|
alignment: Alignment.center,
|
|
|
|
|
child: PlatformInfos.platformCanRecord &&
|
|
|
|
|
controller.sendController.text.isEmpty
|
|
|
|
|
? FloatingActionButton.small(
|
|
|
|
|
tooltip: L10n.of(context)!.voiceMessage,
|
|
|
|
|
onPressed: controller.voiceMessageAction,
|
|
|
|
|
elevation: 0,
|
|
|
|
|
heroTag: null,
|
|
|
|
|
shape: RoundedRectangleBorder(
|
|
|
|
|
borderRadius: BorderRadius.circular(height),
|
|
|
|
|
),
|
|
|
|
|
backgroundColor: theme.colorScheme.primary,
|
|
|
|
|
foregroundColor: theme.colorScheme.onPrimary,
|
|
|
|
|
child: const Icon(Icons.mic_none_outlined),
|
|
|
|
|
)
|
|
|
|
|
:
|
|
|
|
|
child:
|
|
|
|
|
// #Pangea
|
|
|
|
|
// PlatformInfos.platformCanRecord &&
|
|
|
|
|
// controller.sendController.text.isEmpty
|
|
|
|
|
// ? FloatingActionButton.small(
|
|
|
|
|
// tooltip: L10n.of(context)!.voiceMessage,
|
|
|
|
|
// onPressed: controller.voiceMessageAction,
|
|
|
|
|
// elevation: 0,
|
|
|
|
|
// heroTag: null,
|
|
|
|
|
// shape: RoundedRectangleBorder(
|
|
|
|
|
// borderRadius: BorderRadius.circular(height),
|
|
|
|
|
// ),
|
|
|
|
|
// backgroundColor: theme.colorScheme.primary,
|
|
|
|
|
// foregroundColor: theme.colorScheme.onPrimary,
|
|
|
|
|
// child: const Icon(Icons.mic_none_outlined),
|
|
|
|
|
// )
|
|
|
|
|
// : FloatingActionButton.small(
|
|
|
|
|
// tooltip: L10n.of(context)!.send,
|
|
|
|
|
// onPressed: controller.send,
|
|
|
|
|
// elevation: 0,
|
|
|
|
|
// heroTag: null,
|
|
|
|
|
// shape: RoundedRectangleBorder(
|
|
|
|
|
// borderRadius: BorderRadius.circular(height),
|
|
|
|
|
// ),
|
|
|
|
|
// backgroundColor:
|
|
|
|
|
// theme.colorScheme.onPrimaryContainer,
|
|
|
|
|
// foregroundColor: theme.colorScheme.onPrimary,
|
|
|
|
|
// child: const Icon(Icons.send_outlined),
|
|
|
|
|
// ),
|
|
|
|
|
ChoreographerSendButton(controller: controller),
|
|
|
|
|
// FloatingActionButton.small(
|
|
|
|
|
// tooltip: L10n.of(context)!.send,
|
|
|
|
|
// onPressed: controller.send,
|
|
|
|
|
// elevation: 0,
|
|
|
|
|
// heroTag: null,
|
|
|
|
|
// shape: RoundedRectangleBorder(
|
|
|
|
|
// borderRadius: BorderRadius.circular(height),
|
|
|
|
|
// ),
|
|
|
|
|
// backgroundColor:
|
|
|
|
|
// theme.colorScheme.onPrimaryContainer,
|
|
|
|
|
// foregroundColor: theme.colorScheme.onPrimary,
|
|
|
|
|
// child: const Icon(Icons.send_outlined),
|
|
|
|
|
// ),
|
|
|
|
|
// Pangea#
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
|