Skip to main content

flame_gallery 0.1.0 copy "flame_gallery: ^0.1.0" to clipboard
flame_gallery: ^0.1.0 copied to clipboard

Drop-in, brandable 2D mini games (slice, endless runner, match-3, rhythm) for any Flutter app, opened with one FlameGallery.show call.

example/example.md

flame_gallery example #

import 'package:flame_gallery/flame_gallery.dart';
import 'package:flutter/material.dart';

Future<void> playCampaign(BuildContext context) async {
  final result = await FlameGallery.show(
    context,
    game: FruitSlice(
      config: const SliceConfig(timeLimit: Duration(seconds: 30), bomb: null),
      strings: FruitSlice.stringsTr,
    ),
    onEvent: (event) => debugPrint('$event'),
  );
  if (result != null && result.score >= 50) {
    // Grant the coupon.
  }
}

A full demo app with every game lives in apps/example.

0
likes
160
points
0
downloads
screenshot

Documentation

API reference

Publisher

verified publishervbxtech.app

Weekly Downloads

Drop-in, brandable 2D mini games (slice, endless runner, match-3, rhythm) for any Flutter app, opened with one FlameGallery.show call.

Repository (GitHub)
View/report issues

Topics

#flame #game #minigame #gamification #widget

License

MIT (license)

Dependencies

flame_gallery_core, flame_gallery_match, flame_gallery_rhythm, flame_gallery_runner, flame_gallery_slice, flutter

More

Packages that depend on flame_gallery