|
|
|
@ -114,7 +114,8 @@ class ChatInputRow extends StatelessWidget {
|
|
|
|
|
curve: FluffyThemes.animationCurve,
|
|
|
|
|
child: controller.sendController.text.isNotEmpty
|
|
|
|
|
? null
|
|
|
|
|
: PopupMenuButton<String>(
|
|
|
|
|
: Center(
|
|
|
|
|
child: PopupMenuButton<String>(
|
|
|
|
|
icon: const Icon(Icons.add_circle_outline),
|
|
|
|
|
iconColor: theme.colorScheme.onPrimaryContainer,
|
|
|
|
|
onSelected: controller.onAddPopupMenuButtonSelected,
|
|
|
|
@ -166,13 +167,15 @@ class ChatInputRow extends StatelessWidget {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
if (PlatformInfos.isMobile)
|
|
|
|
|
AnimatedSize(
|
|
|
|
|
duration: FluffyThemes.animationDuration,
|
|
|
|
|
curve: FluffyThemes.animationCurve,
|
|
|
|
|
child: controller.sendController.text.isNotEmpty
|
|
|
|
|
? null
|
|
|
|
|
: PopupMenuButton(
|
|
|
|
|
: Center(
|
|
|
|
|
child: PopupMenuButton(
|
|
|
|
|
icon: const Icon(Icons.camera_alt_outlined),
|
|
|
|
|
onSelected: controller.onAddPopupMenuButtonSelected,
|
|
|
|
|
iconColor: theme.colorScheme.onPrimaryContainer,
|
|
|
|
@ -199,7 +202,8 @@ class ChatInputRow extends StatelessWidget {
|
|
|
|
|
theme.colorScheme.onPrimaryContainer,
|
|
|
|
|
foregroundColor:
|
|
|
|
|
theme.colorScheme.primaryContainer,
|
|
|
|
|
child: const Icon(Icons.camera_alt_outlined),
|
|
|
|
|
child:
|
|
|
|
|
const Icon(Icons.camera_alt_outlined),
|
|
|
|
|
),
|
|
|
|
|
title: Text(L10n.of(context).takeAPhoto),
|
|
|
|
|
contentPadding: const EdgeInsets.all(0),
|
|
|
|
@ -208,6 +212,7 @@ class ChatInputRow extends StatelessWidget {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
),
|
|
|
|
|
Container(
|
|
|
|
|
height: height,
|
|
|
|
|
width: height,
|
|
|
|
|