game_utils 5.0.2

  • Readme
  • Changelog
  • Installing
  • 69

A library containing various game-related utilities I use often.

Example #

See the examples directory in the Github repository.

Changelog #

1.0.0 #

  • Initial version, created by Stagehand

1.0.1 #

  • Add a note about examples

1.0.2 #

  • Changed the arguments accepted by Page.ambiencesPage

1.0.3 #

  • allow a function to be run before FormBuilder.render

2.0.0 #

  • Renamed CheckBoxLine to Line.checkBoxLine
  • Added a BookOptions class
  • Altered the signatures of a few functions
  • Renamed AmbiencesPage to SoundsPage

3.0.0 #

  • Updated Line.checkboxLine to take its title as a function.

3.1.0 #

-- Added an onCancel argument to hotkeyMenu.

4.1.0 #

Changed the signature of sound onEnded callbacks.

4.1.1 #

Fixed a bug with stopping sounds.

5.0.0 #

Restored signature of sound onEnded callbacks.

5.0.1 #

Only run onCancel when a form has actually been cancelled.

5.0.2 #

Pass a confirm page cancelFunc callback as the onCancel argument to the underlying Page constructor.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  game_utils: ^5.0.2

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter pub get

Alternatively, your editor might support pub get or flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:game_utils/game_utils.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
40
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
96
Overall:
Weighted score of the above. [more]
69
Learn more about scoring.

We analyzed this package on Jul 9, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.14

Analysis suggestions

Package not compatible with runtime flutter-native on android

Because:

  • package:game_utils/game_utils.dart that imports:
  • package:game_utils/src/sound_pool.dart that imports:
  • dart:web_audio

Package not compatible with runtime flutter-native on ios

Because:

  • package:game_utils/game_utils.dart that imports:
  • package:game_utils/src/sound_pool.dart that imports:
  • dart:web_audio

Package not compatible with runtime flutter-native on linux

Because:

  • package:game_utils/game_utils.dart that imports:
  • package:game_utils/src/sound_pool.dart that imports:
  • dart:web_audio

Package not compatible with runtime flutter-native on macos

Because:

  • package:game_utils/game_utils.dart that imports:
  • package:game_utils/src/sound_pool.dart that imports:
  • dart:web_audio

Package not compatible with runtime flutter-native on windows

Because:

  • package:game_utils/game_utils.dart that imports:
  • package:game_utils/src/sound_pool.dart that imports:
  • dart:web_audio

Package not compatible with runtime native

Because:

  • package:game_utils/game_utils.dart that imports:
  • package:game_utils/src/sound_pool.dart that imports:
  • dart:web_audio

Package not compatible with runtime native-aot

Because:

  • package:game_utils/game_utils.dart that imports:
  • package:game_utils/src/sound_pool.dart that imports:
  • dart:web_audio

Health suggestions

Format lib/src/form_builder.dart.

Run dartfmt to format lib/src/form_builder.dart.

Format lib/src/keyboard.dart.

Run dartfmt to format lib/src/keyboard.dart.

Format lib/src/menu.dart.

Run dartfmt to format lib/src/menu.dart.

Format lib/src/sound_pool.dart.

Run dartfmt to format lib/src/sound_pool.dart.

Format lib/src/util.dart.

Run dartfmt to format lib/src/util.dart.

Maintenance suggestions

The package description is too short. (-4 points)

Add more detail to the description field of pubspec.yaml. Use 60 to 180 characters to describe the package, what it does, and its target use case.

Maintain an example.

None of the files in the package's example/ directory matches known example patterns.

Common filename patterns include main.dart, example.dart, and game_utils.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.7.0 <3.0.0
meta ^1.1.8 1.2.2 1.3.0-nullsafety
Dev dependencies
pedantic ^1.8.0
test ^1.6.0