From 4c11974eb872b3fba3d24b44b84869ad0b656ce9 Mon Sep 17 00:00:00 2001 From: Dev-dfm Date: Fri, 18 Aug 2023 12:39:05 +0200 Subject: [PATCH] Fix platform environment error on web --- lib/src/widgets/stage_craft.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/src/widgets/stage_craft.dart b/lib/src/widgets/stage_craft.dart index 691bc57..c00c8c1 100644 --- a/lib/src/widgets/stage_craft.dart +++ b/lib/src/widgets/stage_craft.dart @@ -1,5 +1,6 @@ import 'dart:io'; +import 'package:flutter/foundation.dart'; import 'package:flutter/widgets.dart'; import 'package:stage_craft/src/stage_controller.dart'; import 'package:stage_craft/src/widget_stage_data.dart'; @@ -68,7 +69,7 @@ class _StageCraftState extends State { settings: widget.settings, ), // In tests we don't want to show the configuration bar because find() would find widgets in it. - if (!Platform.environment.containsKey('FLUTTER_TEST')) + if (!kIsWeb && !Platform.environment.containsKey('FLUTTER_TEST')) Align( alignment: Alignment.topCenter, child: ConfigurationBar(