0

Based on question posted here, my question is:

What about the delay of changing visibility of FAB? After using this approach:

floatingActionButton: Visibility(
            visible: MediaQuery.of(context).viewInsets.bottom == 0.0,
            child: FloatingActionButton(
              onPressed: _navigateToCamera,
              heroTag: 'post1',
              child: const Icon(Icons.add),
            )),

button is displayed after short period of time of hiding the keyboard. Is there any way how to solve this (I don't want to say it's a problem) delay?

See example below:

enter image description here

I tried add resizeToAvoidBottomInset: false, to Scaffold, which solves my problem, but this is not good solution in my case.

petomuro
  • 52
  • 10

0 Answers0