refactor: show devtools only in debug mode

This commit is contained in:
Kingkor Roy Tirtho
2023-06-24 13:06:37 +06:00
parent 5bb89ed1fb
commit c0edb90896
@@ -18,10 +18,7 @@ class _FlQueryDevtoolsState extends State<FlQueryDevtools> {
@override
Widget build(BuildContext context) {
if (kReleaseMode) {
return SizedBox.shrink(child: widget.child);
}
if (kDebugMode) {
return Navigator(
onPopPage: (route, result) {
return true;
@@ -92,4 +89,6 @@ class _FlQueryDevtoolsState extends State<FlQueryDevtools> {
],
);
}
return SizedBox.shrink(child: widget.child);
}
}