feat: Add advanced button component (#2742)

New button with support for multiple states:
<img width="278" alt="image"
src="https://github.com/flame-engine/flame/assets/18004353/041c1105-8991-4976-b1a2-0553c149ec4e">
This commit is contained in:
Denis Gladky
2023-10-10 22:43:28 +03:00
committed by GitHub
parent cccae2e147
commit 97fff0ed2b
9 changed files with 1098 additions and 0 deletions

View File

@ -1,5 +1,6 @@
import 'package:dashbook/dashbook.dart';
import 'package:examples/commons/commons.dart';
import 'package:examples/stories/input/advanced_button_example.dart';
import 'package:examples/stories/input/double_tap_callbacks_example.dart';
import 'package:examples/stories/input/draggables_example.dart';
import 'package:examples/stories/input/gesture_hitboxes_example.dart';
@ -129,5 +130,11 @@ void addInputStories(Dashbook dashbook) {
(_) => GameWidget(game: JoystickAdvancedExample()),
codeLink: baseLink('input/joystick_advanced_example.dart'),
info: JoystickAdvancedExample.description,
)
..add(
'Advanced Button',
(_) => GameWidget(game: AdvancedButtonExample()),
codeLink: baseLink('input/advanced_button_example.dart'),
info: AdvancedButtonExample.description,
);
}