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:
Lukas Klingsbo
2021-12-08 13:19:00 +01:00
committed by GitHub
parent b71c61be40
commit dec04f3335
8 changed files with 49 additions and 40 deletions

View File

@ -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()),