persistentFooterButtons move above keyboard

Viewed 13

I have been searching everywhere to try and find out how to get persistentFooterButtons to move above keyboard when a textfield is selected but I haven't had any success. The persistentFooterButtons works perfect when the keyboard isn't active

persistentFooterButtons: [
        ElevatedButton(
            style: ElevatedButton.styleFrom(
                enableFeedback: true,
                minimumSize: const Size(double.infinity, 45)),
            onPressed: !userInteracts()
                ? null
                : () {
                    _submit();
                  },
            child: const Text('Continue'))
      ],
1 Answers

It's better use a Column, with 2 childs. The first a expanded(flex: 1) with a singleScrollView and the second with your footer button or widget ;)

Related