mirror of
https://github.com/flame-engine/flame.git
synced 2025-11-02 11:43:19 +08:00
formatting
This commit is contained in:
@ -16,7 +16,8 @@ TextConfig tiny = regular.withFontSize(12.0);
|
||||
|
||||
class MyTextBox extends TextBoxComponent {
|
||||
MyTextBox(String text)
|
||||
: super(text, config: tiny, boxConfig: const TextBoxConfig(timePerChar: 0.05));
|
||||
: super(text,
|
||||
config: tiny, boxConfig: const TextBoxConfig(timePerChar: 0.05));
|
||||
|
||||
@override
|
||||
void drawBackground(Canvas c) {
|
||||
|
||||
@ -49,8 +49,6 @@ class Animation {
|
||||
frames = sprites.map((s) => Frame(s, stepTime)).toList();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// Automatically creates a sequenced animation, that is, an animation based on a sprite sheet.
|
||||
///
|
||||
/// From a single image source, it creates multiple sprites based on the parameters:
|
||||
|
||||
@ -62,8 +62,7 @@ class FlameBiding extends BindingBase with GestureBinding, ServicesBinding {
|
||||
static FlameBiding instance;
|
||||
|
||||
static FlameBiding ensureInitialized() {
|
||||
if (FlameBiding.instance == null)
|
||||
FlameBiding();
|
||||
if (FlameBiding.instance == null) FlameBiding();
|
||||
return FlameBiding.instance;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user