Skip to content
pubscout

offline_games

1.0.3, released 2 weeks ago by aslamambiloly.2bd.net

A plug-and-play mini arcade widget for Flutter apps when the device goes offline.

WASM-ready
$ flutter pub add offline_games
Source repository

What it does

Detects network connectivity losses using HTTP pings and automatically offers users retro 8-bit mini-games (Breakout, Memory Match, Snake) via a drop-in widget wrapper. Includes multiple presentation modes, theme support, and standalone APIs for programmatic control.

AI-written summary of version 1.0.3, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to keep users entertained when your app loses internet connectivity.
  • You want built-in mini-games without heavy game engine dependencies.

Skip it when

  • Your application requires a full-fledged standalone game engine rather than simple connectivity mini-games.
  • Your app does not care about offline states or loss of connectivity.

Strengths

  • Zero-config setup with a single line of code.
  • Zero heavy game engines or external font asset overhead.
  • Includes three built-in mini-games (Breakout, Memory Match, Snake).

Weaknesses

  • Limited strictly to the pre-packaged set of retro arcade mini-games.
  • Not suitable for building complex custom non-arcade games.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

No special native permissions or build runner steps required.

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

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'My App',
      builder: (context, child) => OfflineGames(
        child: child!,
      ),
      home: const MyHomePage(),
    );
  }
}

Alternatives

Packages that do the same job and could replace offline_games.

Works with

Packages commonly used together with offline_games: ones it builds on, ones built on it, and its own family.