Search packages, repositories and app categories

maze cover
Package detailsv3.0.0

maze

A simple maze game in Flutter. It also serves as a CustomPainter example.

AndroidiOSmacOSWindowsLinux
30-day downloads
28
Likes
24
Pub points
140

Install package

flutter pub add maze

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A simple maze game built with Flutter that demonstrates the use of CustomPainter for rendering. It provides an interactive gameplay experience where users navigate through a generated maze to reach the exit. The package is designed both as a fun mini-game and as a practical example for developers learning how to implement custom painting in Flutter. Its clean code structure makes it ideal for educational purposes.

Use cases

  • Learning CustomPainter in Flutter
  • Building simple maze games
  • Educational examples for UI rendering
  • Creating interactive puzzles
  • Demonstrating game logic in Dart

Key features

  • CustomPainter implementation
  • Random maze generation
  • Interactive player movement
  • Simple game mechanics
  • Cross-platform compatibility

Suitable for

  • Flutter beginners
  • Game development learners
  • UI/UX educators
  • Dart developers exploring graphics
  • Educational projects

Considerations

  • Limited gameplay depth
  • No multiplayer or scoring features
  • Minimal customization options
  • Not optimized for large mazes
  • Primarily intended as an example, not a production game

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

maze_game

A simple maze game in Flutter. It also serves as a CustomPainter example.

¿Why?

In another project, I needed to create a "simple" maze game that can be used in low-end devices, so game engine was not an option.

Suddenly, I found a way to do it in pure Android.

Maze

So, this is a "port" of that saviour example.

Maze package

pub Project Status: Active License: MIT style: very good analysis

You can use it in your project, you only need to add the dependency:

dependencies:
  flutter:
    sdk: flutter
  maze_game: 3.0.0

Now you can create your Maze:

Maze(
    player: MazeItem(
        'https://image.flaticon.com/icons/png/512/808/808433.png',
        ImageType.network),
    columns: 6,
    rows: 12,
    wallThickness: 4.0,
    wallColor: Theme.of(context).primaryColor,
    finish: MazeItem(
        'https://image.flaticon.com/icons/png/512/1506/1506339.png',
        ImageType.network),
    onFinish: () => print('Hi from finish line!'))

Categories

Dependencies

Dependency list 3 items

Source repository

Projects using this package

No data available yet.