Skip to content

Commit

Permalink
Merge pull request #20 from robiness/fix_platform_env_error_on_web
Browse files Browse the repository at this point in the history
  • Loading branch information
Dev-dfm authored Aug 18, 2023
2 parents 1db9d97 + 4c11974 commit ff44804
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/src/widgets/stage_craft.dart
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -68,7 +69,7 @@ class _StageCraftState extends State<StageCraft> {
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(
Expand Down

0 comments on commit ff44804

Please sign in to comment.