fix: Corrected keyboard
This commit is contained in:
@@ -64,6 +64,7 @@ class _ImageFooterState extends State<ImageFooter> {
|
|||||||
bool _userSearchMode = false;
|
bool _userSearchMode = false;
|
||||||
TextEditingController _searchController;
|
TextEditingController _searchController;
|
||||||
TextEditingController _messageController = TextEditingController();
|
TextEditingController _messageController = TextEditingController();
|
||||||
|
FocusNode _messageFocusNode = FocusNode();
|
||||||
|
|
||||||
String _userNameQuery;
|
String _userNameQuery;
|
||||||
bool _isSearchActive = false;
|
bool _isSearchActive = false;
|
||||||
@@ -91,6 +92,7 @@ class _ImageFooterState extends State<ImageFooter> {
|
|||||||
void initState() {
|
void initState() {
|
||||||
super.initState();
|
super.initState();
|
||||||
_searchController = TextEditingController()..addListener(_userNameListener);
|
_searchController = TextEditingController()..addListener(_userNameListener);
|
||||||
|
_messageFocusNode.addListener(() {setState(() {});});
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
@@ -258,7 +260,7 @@ class _ImageFooterState extends State<ImageFooter> {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
Widget _buildShareModal(context) {
|
void _buildShareModal(context) {
|
||||||
showDialog(
|
showDialog(
|
||||||
context: context,
|
context: context,
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
@@ -266,7 +268,7 @@ class _ImageFooterState extends State<ImageFooter> {
|
|||||||
modalSetStateCallback = modalSetState;
|
modalSetStateCallback = modalSetState;
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: EdgeInsets.only(
|
padding: EdgeInsets.only(
|
||||||
top: _userSearchMode
|
top: _userSearchMode || _messageFocusNode.hasFocus
|
||||||
? 16.0
|
? 16.0
|
||||||
: MediaQuery.of(context).size.height / 2,
|
: MediaQuery.of(context).size.height / 2,
|
||||||
left: 8.0,
|
left: 8.0,
|
||||||
@@ -278,7 +280,6 @@ class _ImageFooterState extends State<ImageFooter> {
|
|||||||
),
|
),
|
||||||
clipBehavior: Clip.antiAlias,
|
clipBehavior: Clip.antiAlias,
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
resizeToAvoidBottomInset: false,
|
|
||||||
body: UsersBloc(
|
body: UsersBloc(
|
||||||
child: Column(
|
child: Column(
|
||||||
children: [
|
children: [
|
||||||
@@ -552,6 +553,7 @@ class _ImageFooterState extends State<ImageFooter> {
|
|||||||
padding: const EdgeInsets.only(left: 8.0),
|
padding: const EdgeInsets.only(left: 8.0),
|
||||||
child: TextField(
|
child: TextField(
|
||||||
controller: _messageController,
|
controller: _messageController,
|
||||||
|
focusNode: _messageFocusNode,
|
||||||
onChanged: (val) {
|
onChanged: (val) {
|
||||||
modalSetState(() {});
|
modalSetState(() {});
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user