debug_grid 0.4.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 31

Debug Grid

Just include it in your project, and you can overlay a debug grid with the g Key.

Protips:

  • press Shift - g to toggle between 6 and 12 columns.
  • press l to display lines as well
  • press Shift - l to toggle the visibility of columns only

Example

Dependency

Add this to your pubspec.yaml:

dependencies:
  debug_grid: any

Use

In your html, just include the grid like this:

<link rel="import" href="packages/debug_grid/debug_grid.html">

and put this at the end of your body tag:

<debug-grid></debug-grid>

That's it, you're good to go!

I'm assuming you have already a project setup with polymer! If not, please refer to the polymer dart documentation on how to do that, because this grid will not work otherwise.

Configuration

Here is a fully configured debug grid:

<debug-grid totalWidth="1128"
            gutterWidth="24"
            lineHeight="24"
            columns="3"
            showColumns="false"
            showLines="true"
            visible="true"
            toggleKey="83"
            linesToggleKey="86"></debug-grid>

This would display a 1128px wide grid with 24px wide gutters, 24px line height and 3 columns. By default it is visible and would not show columns, but only lines (which can be toggled with the appropriate keys).

The visibility toggle key has been remapped to 83 (s) and the lines toggle key has been remapped to 86 (v).

License

MIT License

Changelog

0.4.0

  • Add possibility to provide units to measurements and switch to rem units per default
  • Ease up on the polymer dependencies
  • Started changelog...

1. Depend on it

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


dependencies:
  debug_grid: "^0.4.0"

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:debug_grid/debug_grid.dart';
        
Version Uploaded Documentation Archive
0.4.0 May 22, 2016 Go to the documentation of debug_grid 0.4.0 Download debug_grid 0.4.0 archive
0.3.0 Mar 31, 2016 Go to the documentation of debug_grid 0.3.0 Download debug_grid 0.3.0 archive
0.2.3 Apr 1, 2015 Go to the documentation of debug_grid 0.2.3 Download debug_grid 0.2.3 archive
0.2.2 Oct 21, 2014 Go to the documentation of debug_grid 0.2.2 Download debug_grid 0.2.2 archive
0.2.1 Sep 5, 2014 Go to the documentation of debug_grid 0.2.1 Download debug_grid 0.2.1 archive
0.2.0 Sep 2, 2014 Go to the documentation of debug_grid 0.2.0 Download debug_grid 0.2.0 archive
0.1.1 Aug 26, 2014 Go to the documentation of debug_grid 0.1.1 Download debug_grid 0.1.1 archive
0.1.0 Aug 22, 2014 Go to the documentation of debug_grid 0.1.0 Download debug_grid 0.1.0 archive

Analysis

We analyzed this package on Apr 23, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.49.0
  • pana: 0.10.6

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
99 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
8 / 100
Overall score:
Weighted score of the above. [more]
31
Learn more about scoring.

Platforms

Detected platforms: web

Primary library: package:debug_grid/debug_grid.dart with components: html.

Suggestions

  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use debug_grid.dart.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 1 hint.

    Run dartfmt to format lib/debug_grid.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.9.0 <2.0.0
cookie >=0.0.4 <0.1.0 0.0.4
logging >=0.11.0 <1.0.0 0.11.3+1
polymer >=1.0.0-rc.15 <2.0.0 1.0.0-rc.19
Transitive dependencies
analyzer 0.29.5 0.31.1
args 0.13.7 1.4.2
async 2.0.6
barback 0.15.2+15
charcode 1.1.1
cli_util 0.1.2+1
code_transformers 0.5.1+4
collection 1.14.9
convert 2.0.1
crypto 2.0.2+1
csslib 0.14.1
dart_style 0.2.16 1.0.10
glob 1.1.5
html 0.13.3
initialize 0.6.2+7
isolate 0.2.3 2.0.0
meta 1.1.2
package_config 1.0.3
path 1.5.1
plugin 0.2.0+2
polymer_interop 1.0.0-rc.10
pool 1.3.4
reflectable 1.0.3 2.0.0
source_maps 0.10.4
source_span 1.4.0
stack_trace 1.9.2
string_scanner 1.0.2
typed_data 1.1.5
utf 0.9.0+4
watcher 0.9.7+7
web_components 0.12.5
yaml 2.1.13