mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-01 10:38:17 +08:00
Work around Flutter bug for ColorEffect and fix broken links (#1178)
* Fix `ColorEffect` Flutter bug and example links * Remove accidental code * Fix `ColorEffect` test
This commit is contained in:
@ -18,6 +18,30 @@ import 'tappables_example.dart';
|
||||
|
||||
void addInputStories(Dashbook dashbook) {
|
||||
dashbook.storiesOf('Input')
|
||||
..add(
|
||||
'Tappables',
|
||||
(_) => GameWidget(game: TappablesExample()),
|
||||
codeLink: baseLink('input/tappables_example.dart'),
|
||||
info: TappablesExample.description,
|
||||
)
|
||||
..add(
|
||||
'Draggables',
|
||||
(context) {
|
||||
return GameWidget(
|
||||
game: DraggablesExample(
|
||||
zoom: context.listProperty('zoom', 1, [0.5, 1, 1.5]),
|
||||
),
|
||||
);
|
||||
},
|
||||
codeLink: baseLink('input/draggables_example.dart'),
|
||||
info: DraggablesExample.description,
|
||||
)
|
||||
..add(
|
||||
'Hoverables',
|
||||
(_) => GameWidget(game: HoverablesExample()),
|
||||
codeLink: baseLink('input/hoverables_example.dart'),
|
||||
info: HoverablesExample.description,
|
||||
)
|
||||
..add(
|
||||
'Keyboard',
|
||||
(_) => GameWidget(game: KeyboardExample()),
|
||||
@ -57,36 +81,12 @@ void addInputStories(Dashbook dashbook) {
|
||||
codeLink: baseLink('input/multitap_advanced_example.dart'),
|
||||
info: MultitapAdvancedExample.description,
|
||||
)
|
||||
..add(
|
||||
'Tappables',
|
||||
(_) => GameWidget(game: TappablesExample()),
|
||||
codeLink: baseLink('input/tappables_example.dart'),
|
||||
info: TappablesExample.description,
|
||||
)
|
||||
..add(
|
||||
'Overlapping Tappables',
|
||||
(_) => GameWidget(game: OverlappingTappablesExample()),
|
||||
codeLink: baseLink('input/overlapping_tappables_example.dart'),
|
||||
info: OverlappingTappablesExample.description,
|
||||
)
|
||||
..add(
|
||||
'Draggables',
|
||||
(context) {
|
||||
return GameWidget(
|
||||
game: DraggablesExample(
|
||||
zoom: context.listProperty('zoom', 1, [0.5, 1, 1.5]),
|
||||
),
|
||||
);
|
||||
},
|
||||
codeLink: baseLink('input/draggables_example.dart'),
|
||||
info: DraggablesExample.description,
|
||||
)
|
||||
..add(
|
||||
'Hoverables',
|
||||
(_) => GameWidget(game: HoverablesExample()),
|
||||
codeLink: baseLink('input/hoverables_example.dart'),
|
||||
info: HoverablesExample.description,
|
||||
)
|
||||
..add(
|
||||
'Joystick',
|
||||
(_) => GameWidget(game: JoystickExample()),
|
||||
|
||||
Reference in New Issue
Block a user