Skip to content

Commit

Permalink
Merge pull request #21 from robiness/show-configuration-bar-on-web
Browse files Browse the repository at this point in the history
Add universal_io dependency and show configuration bar on web
  • Loading branch information
robiness authored Aug 21, 2023
2 parents ff44804 + 33ab329 commit e6f6b11
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/src/widgets/stage_craft.dart
Original file line number Diff line number Diff line change
@@ -1,11 +1,9 @@
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';
import 'package:stage_craft/src/widgets/configuration_bar.dart';
import 'package:stage_craft/src/widgets/stage_area.dart';
import 'package:universal_io/io.dart';

/// The [StageCraft] widget is the main widget of the StageCraft package.
///
Expand Down Expand Up @@ -69,7 +67,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 (!kIsWeb && !Platform.environment.containsKey('FLUTTER_TEST'))
if (!Platform.environment.containsKey('FLUTTER_TEST'))
Align(
alignment: Alignment.topCenter,
child: ConfigurationBar(
Expand Down
16 changes: 16 additions & 0 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,22 @@ packages:
url: "https://pub.dev"
source: hosted
version: "0.5.1"
typed_data:
dependency: transitive
description:
name: typed_data
sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c
url: "https://pub.dev"
source: hosted
version: "1.3.2"
universal_io:
dependency: "direct main"
description:
name: universal_io
sha256: "1722b2dcc462b4b2f3ee7d188dad008b6eb4c40bbd03a3de451d82c78bba9aad"
url: "https://pub.dev"
source: hosted
version: "2.2.2"
vector_math:
dependency: transitive
description:
Expand Down
1 change: 1 addition & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ dependencies:
sdk: flutter

flutter_colorpicker: ^1.0.3
universal_io: ^2.2.2

dev_dependencies:
flutter_test:
Expand Down

0 comments on commit e6f6b11

Please sign in to comment.