refactor: show devtools only in debug mode
This commit is contained in:
@@ -18,10 +18,7 @@ class _FlQueryDevtoolsState extends State<FlQueryDevtools> {
|
|||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
if (kReleaseMode) {
|
if (kDebugMode) {
|
||||||
return SizedBox.shrink(child: widget.child);
|
|
||||||
}
|
|
||||||
|
|
||||||
return Navigator(
|
return Navigator(
|
||||||
onPopPage: (route, result) {
|
onPopPage: (route, result) {
|
||||||
return true;
|
return true;
|
||||||
@@ -92,4 +89,6 @@ class _FlQueryDevtoolsState extends State<FlQueryDevtools> {
|
|||||||
],
|
],
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
return SizedBox.shrink(child: widget.child);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user