mirror of
https://github.com/flame-engine/flame.git
synced 2025-10-30 00:17:20 +08:00
feat: Adding ClipComponent (#1769)
Adds a new component called ClipComponent that clips the canvas area based on its size and shape.
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import 'package:dashbook/dashbook.dart';
|
||||
import 'package:examples/commons/commons.dart';
|
||||
import 'package:examples/stories/components/clip_component_example.dart';
|
||||
import 'package:examples/stories/components/composability_example.dart';
|
||||
import 'package:examples/stories/components/debug_example.dart';
|
||||
import 'package:examples/stories/components/game_in_game_example.dart';
|
||||
@ -31,5 +32,11 @@ void addComponentsStories(Dashbook dashbook) {
|
||||
(_) => GameWidget(game: GameInGameExample()),
|
||||
codeLink: baseLink('components/game_in_game_example.dart'),
|
||||
info: GameInGameExample.description,
|
||||
)
|
||||
..add(
|
||||
'ClipComponent',
|
||||
(context) => GameWidget(game: ClipComponentExample()),
|
||||
codeLink: baseLink('components/clip_component_example.dart'),
|
||||
info: ClipComponentExample.description,
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user