-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #28 from robiness/clean_up
- Loading branch information
Showing
28 changed files
with
259 additions
and
229 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
example/lib/stage_data/bool_field_configurator_stage_data.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import 'package:flutter/widgets.dart'; | ||
import 'package:stage_craft/stage_craft.dart'; | ||
|
||
class BoolFieldConfiguratorStageData extends StageData { | ||
@override | ||
String get name => 'BoolFieldConfiguration'; | ||
|
||
final value = BoolFieldConfigurator(value: true, name: 'value'); | ||
|
||
@override | ||
List<FieldConfigurator> get stageConfigurators => []; | ||
|
||
@override | ||
List<FieldConfigurator> get widgetConfigurators => [value]; | ||
|
||
@override | ||
Widget widgetBuilder(BuildContext context) { | ||
return BoolConfigurationWidget( | ||
value: value.value, | ||
updateValue: (value) { | ||
this.value.value = value!; | ||
}, | ||
); | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
example/lib/stage_data/color_field_configurator_stage_data.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import 'package:flutter/widgets.dart'; | ||
import 'package:stage_craft/stage_craft.dart'; | ||
|
||
class ColorFieldConfiguratorStageData extends StageData { | ||
@override | ||
String get name => 'ColorFieldConfiguration'; | ||
|
||
final value = ColorFieldConfigurator(value: const Color(0xFF000000), name: 'value'); | ||
|
||
@override | ||
List<FieldConfigurator> get stageConfigurators => []; | ||
|
||
@override | ||
List<FieldConfigurator> get widgetConfigurators => [value]; | ||
|
||
@override | ||
Widget widgetBuilder(BuildContext context) { | ||
return ColorConfigurationWidget( | ||
value: value.value, | ||
updateValue: (value) { | ||
this.value.value = value!; | ||
}, | ||
); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
example/lib/stage_data/string_list_configurator_stage_data.dart
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import 'package:flutter/material.dart'; | ||
import 'package:stage_craft/stage_craft.dart'; | ||
|
||
class StringListConfiguratorStageData extends StageData { | ||
final value = StringListConfigurator(value: ['jo', 'jojo2', 'jojojo'], name: 'value'); | ||
|
||
@override | ||
String get name => 'StringListConfigurator'; | ||
|
||
@override | ||
List<FieldConfigurator> get stageConfigurators => []; | ||
|
||
@override | ||
List<FieldConfigurator> get widgetConfigurators => [ | ||
value, | ||
]; | ||
|
||
@override | ||
Widget widgetBuilder(BuildContext context) { | ||
return StringListConfiguratorWidget(configurator: value); | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.