A new Flutter package project.
Import the Baseplate class. You can then use the helper functions to build responsive layouts easily.
I've included lots of breakpoints to give as much freedom as possible. You don't have to use all. Baseplate operates on a "up to" principle. If the screen width is less than or equal to your breakpoint (and there isn't one smaller) that's the one that will be used.
It's a 12 column layout, similar to Bootstrap on the web.
Add this to your package's pubspec.yaml file:
dependencies: baseplate: ^0.1.1
You can install packages from the command line:
$ flutter packages get
Alternatively, your editor might support
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|0.1.1||Feb 11, 2019|
|0.1.0||Feb 11, 2019|
|0.0.3||Feb 6, 2019|
|0.0.2||Feb 6, 2019|
|0.0.1||Feb 6, 2019|
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]
We analyzed this package on Feb 20, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter
References Flutter, and has no conflicting libraries.
lib/baseplate.dart. (-2.96 points)
lib/baseplate.dart reported 6 hints, including:
line 11 col 7: This class (or a class which this class inherits from) is marked as '@immutable', but one or more of its instance fields are not final: bpCol.w360, bpCol.w540, bpCol.w720, bpCol.w1024, bpCol.w1200, bpCol.w1500, bpCol.w2000, bpCol.w2500, bpCol.child, bpCol.colCount, bpCol.gutter, bpCol.colWidth, bpCol.leftPadding, bpCol.rightPadding
line 11 col 7: Name types using UpperCamelCase.
line 88 col 7: This class (or a class which this class inherits from) is marked as '@immutable', but one or more of its instance fields are not final: bpRow.gutter, bpRow.padding, bpRow.runSpacing, bpRow.children
line 88 col 7: Name types using UpperCamelCase.
line 103 col 9: The value of the local variable 'i' isn't used.
Maintain an example.
None of the files in the package's
example/ directory matches known example patterns.
Common filename patterns include
baseplate.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.