chore: Follow up input row
This commit is contained in:
parent
5ec25ec2ed
commit
cc41a3bada
1 changed files with 30 additions and 32 deletions
|
|
@ -116,6 +116,7 @@ class ChatInputRow extends StatelessWidget {
|
||||||
height: height,
|
height: height,
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
decoration: const BoxDecoration(),
|
decoration: const BoxDecoration(),
|
||||||
|
clipBehavior: Clip.hardEdge,
|
||||||
child: PopupMenuButton<String>(
|
child: PopupMenuButton<String>(
|
||||||
icon: const Icon(Icons.add_circle_outline),
|
icon: const Icon(Icons.add_circle_outline),
|
||||||
iconColor: theme.colorScheme.onPrimaryContainer,
|
iconColor: theme.colorScheme.onPrimaryContainer,
|
||||||
|
|
@ -171,42 +172,39 @@ class ChatInputRow extends StatelessWidget {
|
||||||
height: height,
|
height: height,
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
decoration: const BoxDecoration(),
|
decoration: const BoxDecoration(),
|
||||||
child: Center(
|
clipBehavior: Clip.hardEdge,
|
||||||
child: PopupMenuButton(
|
child: PopupMenuButton(
|
||||||
icon: const Icon(Icons.camera_alt_outlined),
|
icon: const Icon(Icons.camera_alt_outlined),
|
||||||
onSelected: controller.onAddPopupMenuButtonSelected,
|
onSelected: controller.onAddPopupMenuButtonSelected,
|
||||||
iconColor: theme.colorScheme.onPrimaryContainer,
|
iconColor: theme.colorScheme.onPrimaryContainer,
|
||||||
itemBuilder: (context) => [
|
itemBuilder: (context) => [
|
||||||
PopupMenuItem<String>(
|
PopupMenuItem<String>(
|
||||||
value: 'camera-video',
|
value: 'camera-video',
|
||||||
child: ListTile(
|
child: ListTile(
|
||||||
leading: CircleAvatar(
|
leading: CircleAvatar(
|
||||||
backgroundColor:
|
backgroundColor:
|
||||||
theme.colorScheme.onPrimaryContainer,
|
theme.colorScheme.onPrimaryContainer,
|
||||||
foregroundColor:
|
foregroundColor: theme.colorScheme.primaryContainer,
|
||||||
theme.colorScheme.primaryContainer,
|
child: const Icon(Icons.videocam_outlined),
|
||||||
child: const Icon(Icons.videocam_outlined),
|
|
||||||
),
|
|
||||||
title: Text(L10n.of(context).recordAVideo),
|
|
||||||
contentPadding: const EdgeInsets.all(0),
|
|
||||||
),
|
),
|
||||||
|
title: Text(L10n.of(context).recordAVideo),
|
||||||
|
contentPadding: const EdgeInsets.all(0),
|
||||||
),
|
),
|
||||||
PopupMenuItem<String>(
|
),
|
||||||
value: 'camera',
|
PopupMenuItem<String>(
|
||||||
child: ListTile(
|
value: 'camera',
|
||||||
leading: CircleAvatar(
|
child: ListTile(
|
||||||
backgroundColor:
|
leading: CircleAvatar(
|
||||||
theme.colorScheme.onPrimaryContainer,
|
backgroundColor:
|
||||||
foregroundColor:
|
theme.colorScheme.onPrimaryContainer,
|
||||||
theme.colorScheme.primaryContainer,
|
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),
|
|
||||||
),
|
),
|
||||||
|
title: Text(L10n.of(context).takeAPhoto),
|
||||||
|
contentPadding: const EdgeInsets.all(0),
|
||||||
),
|
),
|
||||||
],
|
),
|
||||||
),
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
Container(
|
Container(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue