spaceinvaders 2.0.8

  • Readme
  • Changelog
  • Installing
  • 43

Space Invaders 4 Dart #

The classic Space Invaders game written with Dart and Material 4 Dart.

See it Live:


Example for Component #

License #

Copyright 2018 Michael Mitterer (,
IT-Consulting and Development Limited, Austrian Branch

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
either express or implied. See the License for the specific language
governing permissions and limitations under the License.

If this plugin is helpful for you - please (Circle) me or star this repo here on GitHub

Change Log for spaceinvaders #

Space-Invaders built with Material Design Lite 4 Dart

Unreleased #

Docs #

v1.2 - 2018-03-26

Refactor #

  • Removed Dice, changed to DryIce 72e8ae6

v1.1.0 - 2016-11-16

Feature #

  • SCSS-Styles now with sitegen-support, no need for packages-folder anymore 2b23255

v1.0.2 - 2016-11-16

Docs #

v1.0.0 - 2016-03-18

Feature #

Docs #

v0.1.0 - 2015-12-18

Feature #

This was generated with Changelog for Dart

Use this package as a library

1. Depend on it

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

  spaceinvaders: ^2.0.8

2. Install it

You can install packages from the command line:

with pub:

$ pub get

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

3. Import it

Now in your Dart code, you can use:

import 'package:spaceinvaders/spaceinvaders.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Oct 18, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.5.1
  • pana: 0.12.21


Detected platforms: web

Primary library: package:spaceinvaders/spaceinvaders.dart with components: html, js.

Health suggestions

Fix lib/spaceinvaders/drawables.dart. (-3.45 points)

Analysis of lib/spaceinvaders/drawables.dart reported 7 hints, including:

line 38 col 36: Use = to separate a named parameter from its default value.

line 39 col 37: Use = to separate a named parameter from its default value.

line 45 col 34: Use = to separate a named parameter from its default value.

line 46 col 36: Use = to separate a named parameter from its default value.

line 144 col 5: Avoid return types on setters.

Fix lib/spaceinvaders/screen.dart. (-1.49 points)

Analysis of lib/spaceinvaders/screen.dart reported 3 hints:

line 57 col 19: Don't explicitly initialize variables to null.

line 59 col 36: Use = to separate a named parameter from its default value.

line 59 col 59: Use = to separate a named parameter from its default value.

Fix lib/spaceinvaders.dart. (-1 points)

Analysis of lib/spaceinvaders.dart reported 2 hints:

line 33 col 27: Use lowercase_with_underscores when specifying a library prefix.

line 57 col 25: 'bind' is deprecated and shouldn't be used.

Fix additional 18 files with analysis or formatting issues. (-1 points)

Additional issues in the following files:

  • lib/components.dart (1 hint)
  • lib/spaceinvaders/FrameHandler.dart (1 hint)
  • lib/components/ArcadeButtonComponent.dart (Run dartfmt to format lib/components/ArcadeButtonComponent.dart.)
  • lib/components/ButtonLabelComponent.dart (Run dartfmt to format lib/components/ButtonLabelComponent.dart.)
  • lib/components/StatusBarComponent.dart (Run dartfmt to format lib/components/StatusBarComponent.dart.)
  • lib/components/StatusMessageComponent.dart (Run dartfmt to format lib/components/StatusMessageComponent.dart.)
  • lib/components/interface/actions.dart (Run dartfmt to format lib/components/interface/actions.dart.)
  • lib/components/interface/store.dart (Run dartfmt to format lib/components/interface/store.dart.)
  • lib/gamestate.dart (Run dartfmt to format lib/gamestate.dart.)
  • lib/services.dart (Run dartfmt to format lib/services.dart.)
  • lib/spaceinvaders/InputHandler.dart (Run dartfmt to format lib/spaceinvaders/InputHandler.dart.)
  • lib/spaceinvaders/Magazin.dart (Run dartfmt to format lib/spaceinvaders/Magazin.dart.)
  • lib/spaceinvaders/SpeedGenerator.dart (Run dartfmt to format lib/spaceinvaders/SpeedGenerator.dart.)
  • lib/spaceinvaders/SpriteFactory.dart (Run dartfmt to format lib/spaceinvaders/SpriteFactory.dart.)
  • lib/spaceinvaders/painter.dart (Run dartfmt to format lib/spaceinvaders/painter.dart.)
  • lib/spaceinvaders/sprite.dart (Run dartfmt to format lib/spaceinvaders/sprite.dart.)
  • lib/store.dart (Run dartfmt to format lib/store.dart.)
  • lib/store/SpaceInvaderStoreImpl.dart (Run dartfmt to format lib/store/SpaceInvaderStoreImpl.dart.)

Maintenance issues and suggestions

Use analysis_options.yaml. (-10 points)

Change the name of your package's .analysis_options file to analysis_options.yaml.

Read more about the setup of analysis-options.yaml.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

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

For more information see the pub package layout conventions.

The package description is too short. (-7 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.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
console_log_handler ^1.0.0 1.1.6
logging >=0.11.3 <1.0.0 0.11.3+2
m4d_animation >=0.1.0 <1.0.0 0.1.4
m4d_components >=0.1.0 <1.0.0 0.1.31
m4d_core >=0.1.0 <1.0.0 0.2.21
m4d_flux >=0.1.0 <1.0.0 0.1.0
validate ^1.0.0 1.7.0
Transitive dependencies
analyzer 0.38.5
ansicolor 1.0.2
args 1.5.2
async 2.4.0
build_cli_annotations 1.1.0
charcode 1.1.2
collection 1.14.12
convert 2.1.1
crypto 2.1.3
csslib 0.16.1
dart_style 1.3.1
front_end 0.1.27
glob 1.2.0
html 0.14.0+3
intl 0.15.8 0.16.0
intl_translation 0.17.7
js 0.6.1+1
kernel 0.3.27
l10n 2.0.19
meta 1.1.7
node_interop 1.0.3
node_io 1.0.1+2
optional 3.1.0
package_config 1.1.0
path 1.6.4
pedantic 1.8.0+1
petitparser 2.4.0
platform_detect 1.3.5
pub_semver 1.4.2
source_span 1.5.5
string_scanner 1.0.5
term_glyph 1.1.0
typed_data 1.1.6
watcher 0.9.7+12
where 4.4.0 6.4.0
yaml 2.2.0
Dev dependencies
build_runner any
build_test any
build_web_compilers any
sass_builder any
test any