A responsive frontend material framework designed to emulate the behaviour of Bootstrap.
Import the Baseplate class. You can then use the widgets 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.
BoxConstraintsfor when the widget will be less than the screen width on responsive layouts
Add this to your package's pubspec.yaml file:
dependencies: baseplate: ^0.1.4
You can install packages from the command line:
$ flutter pub get
Alternatively, your editor might support
flutter pub get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
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 Aug 21, 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.48 points)
lib/baseplate.dart reported 5 hints:
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 86 col 7: Name types using UpperCamelCase.
line 108 col 9: The value of the local variable 'i' isn't used.
line 225 col 9: The value of the local variable 'screenWidth' 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.