mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-03 04:18:25 +08:00
Update doc/examples/widgets/lib/main.dart
Co-Authored-By: Luan Nico <luanpotter27@gmail.com>
This commit is contained in:
@ -50,8 +50,10 @@ void main() async {
|
|||||||
onPressed: () {
|
onPressed: () {
|
||||||
print('Pressed');
|
print('Pressed');
|
||||||
},
|
},
|
||||||
label: const Text('Sprite Button',
|
label: const Text(
|
||||||
style: const TextStyle(color: const Color(0xFF5D275D))),
|
'Sprite Button',
|
||||||
|
style: const TextStyle(color: const Color(0xFF5D275D)),
|
||||||
|
),
|
||||||
sprite: _buttons.getSprite(0, 0),
|
sprite: _buttons.getSprite(0, 0),
|
||||||
pressedSprite: _buttons.getSprite(1, 0),
|
pressedSprite: _buttons.getSprite(1, 0),
|
||||||
)),
|
)),
|
||||||
|
|||||||
Reference in New Issue
Block a user