voice message sending bug fixed
This commit is contained in:
parent
24120c7f3d
commit
d47a556762
|
|
@ -102,7 +102,7 @@ class _TypingState extends State<_Typing> {
|
|||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final state = context.read<DirectState>();
|
||||
final state = context.watch<DirectState>();
|
||||
return Row(
|
||||
children: [
|
||||
Expanded(
|
||||
|
|
@ -115,7 +115,6 @@ class _TypingState extends State<_Typing> {
|
|||
),
|
||||
child: state.text != null && state.text!.isNotEmpty
|
||||
? DidvanIconButton(
|
||||
key: const ValueKey(1),
|
||||
icon: DidvanIcons.send_solid,
|
||||
onPressed: () {
|
||||
_formKey.currentState!.reset();
|
||||
|
|
@ -125,7 +124,6 @@ class _TypingState extends State<_Typing> {
|
|||
color: Theme.of(context).colorScheme.focusedBorder,
|
||||
)
|
||||
: DidvanIconButton(
|
||||
key: const ValueKey(2),
|
||||
icon: DidvanIcons.mic_solid,
|
||||
onPressed: state.startRecording,
|
||||
size: 32,
|
||||
|
|
|
|||
Loading…
Reference in New Issue