Question : flutter check keyboard show
Answered by : idan-biton
{"tags":[{"tag":"textarea","content":" if(MediaQuery.of(context).viewInsets.bottom != 0.0) {\n return const Offstage();\n }","code_language":"dart"}]}
Source : | Last Update : Sat, 14 Jan 23
Question : how to check keyboard visiblilty in flutter
Answered by : ismail-shah
import 'package:flutter/material.dart';
bool isKeyboardVisible(BuildContext context) { final double viewInsetsBottom = MediaQuery.of(context).viewInsets.bottom; return viewInsetsBottom > 0;
}
Source : | Last Update : Mon, 23 Oct 23