Skip to content

Commit

Permalink
Merge pull request #31 from robiness/raise-sdk-bounds
Browse files Browse the repository at this point in the history
Add support for flutter 3.22.0-0.1.pre
  • Loading branch information
robiness authored Apr 17, 2024
2 parents adf0e96 + d30847e commit 9c223b2
Show file tree
Hide file tree
Showing 11 changed files with 355 additions and 394 deletions.
4 changes: 2 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'package:example/stage_data/string_list_configurator_stage_data.dart';
import 'package:example/stage_data/color_field_configurator_stage_data.dart';
import 'package:flutter/material.dart';
import 'package:stage_craft/stage_craft.dart';

Expand All @@ -22,7 +22,7 @@ class _MyAppState extends State<MyApp> {
debugShowCheckedModeBanner: false,
home: Scaffold(
body: StageCraft(
stageData: StringListConfiguratorStageData(),
stageData: ColorFieldConfiguratorStageData(),
),
),
);
Expand Down
45 changes: 38 additions & 7 deletions example/lib/stage_data/color_field_configurator_stage_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,52 @@ class ColorFieldConfiguratorStageData extends StageData {
@override
String get name => 'ColorFieldConfiguration';

final value = ColorFieldConfigurator(value: const Color(0xFF000000), name: 'value');
static const colorSamples = [
ColorSample(color: Color(0xFF000000), name: 'Black'),
ColorSample(color: Color(0xFFFFFFFF), name: 'White'),
ColorSample(color: Color(0xFFE63946), name: 'Sunset Red'),
ColorSample(color: Color(0xFFF4A261), name: 'Sandy Brown'),
ColorSample(color: Color(0xFF2A9D8F), name: 'Teal Blue'),
ColorSample(color: Color(0xFF264653), name: 'Gunmetal Blue'),
ColorSample(color: Color(0xFFE9C46A), name: 'Saffron Yellow')
];

final outerBoxColor = ColorFieldConfigurator(
value: colorSamples[2].color,
name: 'Outer Box Color',
colorSamples: colorSamples,
);

final innerBoxColor = ColorFieldConfiguratorNullable(
value: colorSamples[4].color,
name: 'Inner Box Color',
colorSamples: colorSamples,
);

@override
List<FieldConfigurator> get stageConfigurators => [];

@override
List<FieldConfigurator> get widgetConfigurators => [value];
List<FieldConfigurator> get widgetConfigurators => [
outerBoxColor,
innerBoxColor,
];

@override
Widget widgetBuilder(BuildContext context) {
return ColorConfigurationWidget(
value: value.value,
updateValue: (value) {
this.value.value = value!;
},
return Center(
child: Container(
width: 200,
height: 200,
color: outerBoxColor.value,
child: Center(
child: Container(
color: innerBoxColor.value,
width: 100,
height: 100,
),
),
),
);
}
}
137 changes: 56 additions & 81 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,132 +5,117 @@ packages:
dependency: transitive
description:
name: async
sha256: "947bfcf187f74dbc5e146c9eb9c0f10c9f8b30743e341481c1e2ed3ecc18c20c"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "2.11.0"
version: "2.9.0"
boolean_selector:
dependency: transitive
description:
name: boolean_selector
sha256: "6cfb5af12253eaf2b368f07bacc5a80d1301a071c73360d746b7f2e32d762c66"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
version: "2.1.0"
characters:
dependency: transitive
description:
name: characters
sha256: "04a925763edad70e8443c99234dc3328f442e811f1d8fd1a72f1c8ad0f69a605"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.0"
version: "1.2.1"
clock:
dependency: transitive
description:
name: clock
sha256: cb6d7f03e1de671e34607e909a7213e31d7752be4fb66a86d29fe1eb14bfb5cf
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.1"
collection:
dependency: transitive
description:
name: collection
sha256: "4a07be6cb69c84d677a6c3096fcf960cc3285a8330b4603e0d463d15d9bd934c"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "1.17.1"
version: "1.16.0"
cupertino_icons:
dependency: transitive
description:
name: cupertino_icons
sha256: e35129dc44c9118cee2a5603506d823bab99c68393879edb440e0090d07586be
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.5"
fake_async:
dependency: transitive
description:
name: fake_async
sha256: "511392330127add0b769b75a987850d136345d9227c6b94c96a04cf4a391bf78"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.1"
flex_color_picker:
dependency: transitive
description:
name: flex_color_picker
url: "https://pub.dartlang.org"
source: hosted
version: "3.0.2"
flex_seed_scheme:
dependency: transitive
description:
name: flex_seed_scheme
url: "https://pub.dartlang.org"
source: hosted
version: "1.1.0"
flutter:
dependency: "direct main"
description: flutter
source: sdk
version: "0.0.0"
flutter_colorpicker:
dependency: transitive
description:
name: flutter_colorpicker
sha256: "458a6ed8ea480eb16ff892aedb4b7092b2804affd7e046591fb03127e8d8ef8b"
url: "https://pub.dev"
source: hosted
version: "1.0.3"
flutter_test:
dependency: "direct dev"
description: flutter
source: sdk
version: "0.0.0"
js:
dependency: transitive
description:
name: js
sha256: f2c445dce49627136094980615a031419f7f3eb393237e4ecd97ac15dea343f3
url: "https://pub.dev"
source: hosted
version: "0.6.7"
lint:
dependency: "direct dev"
description:
name: lint
sha256: f4bd4dbaa39f4ae8836f2d1275f2f32bc68b3a8cce0a0735dd1f7a601f06682a
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.2"
version: "2.0.1"
matcher:
dependency: transitive
description:
name: matcher
sha256: "6501fbd55da300384b768785b83e5ce66991266cec21af89ab9ae7f5ce1c4cbb"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "0.12.15"
version: "0.12.12"
material_color_utilities:
dependency: transitive
description:
name: material_color_utilities
sha256: d92141dc6fe1dad30722f9aa826c7fbc896d021d792f80678280601aff8cf724
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "0.2.0"
version: "0.1.5"
meta:
dependency: transitive
description:
name: meta
sha256: "3c74dbf8763d36539f114c799d8a2d87343b5067e9d796ca22b5eb8437090ee3"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "1.9.1"
version: "1.8.0"
path:
dependency: transitive
description:
name: path
sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "1.8.3"
version: "1.8.2"
screen_retriever:
dependency: transitive
description:
name: screen_retriever
sha256: "4931f226ca158123ccd765325e9fbf360bfed0af9b460a10f960f9bb13d58323"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "0.1.6"
version: "0.1.9"
sky_engine:
dependency: transitive
description: flutter
Expand All @@ -140,18 +125,16 @@ packages:
dependency: transitive
description:
name: source_span
sha256: dd904f795d4b4f3b870833847c461801f6750a9fa8e61ea5ac53f9422b31f250
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "1.9.1"
version: "1.9.0"
stack_trace:
dependency: transitive
description:
name: stack_trace
sha256: c3c7d8edb15bee7f0f74debd4b9c5f3c2ea86766fe4178eb2a18eb30a0bdaed5
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "1.11.0"
version: "1.10.0"
stage_craft:
dependency: "direct main"
description:
Expand All @@ -163,66 +146,58 @@ packages:
dependency: transitive
description:
name: stream_channel
sha256: "83615bee9045c1d322bbbd1ba209b7a749c2cbcdcb3fdd1df8eb488b3279c1c8"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.1"
version: "2.1.0"
string_scanner:
dependency: transitive
description:
name: string_scanner
sha256: "556692adab6cfa87322a115640c11f13cb77b3f076ddcc5d6ae3c20242bedcde"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.0"
version: "1.1.1"
term_glyph:
dependency: transitive
description:
name: term_glyph
sha256: a29248a84fbb7c79282b40b8c72a1209db169a2e0542bce341da992fe1bc7e84
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "1.2.1"
test_api:
dependency: transitive
description:
name: test_api
sha256: eb6ac1540b26de412b3403a163d919ba86f6a973fe6cc50ae3541b80092fdcfb
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "0.5.1"
version: "0.4.12"
typed_data:
dependency: transitive
description:
name: typed_data
sha256: facc8d6582f16042dd49f2463ff1bd6e2c9ef9f3d5da3d9b087e244a7b564b3c
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "1.3.2"
universal_io:
dependency: transitive
description:
name: universal_io
sha256: "1722b2dcc462b4b2f3ee7d188dad008b6eb4c40bbd03a3de451d82c78bba9aad"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "2.2.2"
version: "2.2.0"
vector_math:
dependency: transitive
description:
name: vector_math
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "2.1.4"
version: "2.1.2"
window_manager:
dependency: "direct main"
description:
name: window_manager
sha256: "9eef00e393e7f9308309ce9a8b2398c9ee3ca78b50c96e8b4f9873945693ac88"
url: "https://pub.dev"
url: "https://pub.dartlang.org"
source: hosted
version: "0.3.5"
version: "0.3.7"
sdks:
dart: ">=3.0.0 <4.0.0"
dart: ">=2.18.0 <3.0.0"
flutter: ">=3.3.0"
4 changes: 2 additions & 2 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ publish_to: 'none'
version: 1.0.0+1

environment:
sdk: '>=2.19.2 <4.0.0'
sdk: '>=2.18.0 <4.0.0'

dependencies:
flutter:
Expand All @@ -20,7 +20,7 @@ dependencies:
dev_dependencies:
flutter_test:
sdk: flutter
lint: ^2.1.2
lint: ^2.0.0


flutter:
Expand Down
Loading

0 comments on commit 9c223b2

Please sign in to comment.