bootstrap 4.0.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 91

Bootstrap for Pub

Build Status

Just a pub package of Bootstrap, "The most popular front-end framework for developing responsive, mobile first projects on the web."

Currently contains Bootstrap 4.0.0

Installation

See the install instructions.

Usage

You can include the bootstrap stylesheets and script once you have added this package as a dependency to your application:

    <!-- include the stylesheets -->
    <link rel="stylesheet" href="packages/bootstrap/css/bootstrap.min.css">
    
    <!-- include the javascript -->
    <script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>

Note that the versions in the snippets above are the non-minified version. The transformer available in this package will automatically rewrite the URI to point to the minified versions when pub is invoked in release mode.

To activate the transformer, update your pubspec.yaml

transformers:
- bootstrap:
    url: //maxcdn.bootstrapcdn.com/bootstrap/{{version}}
    version: 4.0.0

The transformer takes up to two optional parameters:

  • url: when specified the local base url (packages/bootstrap/) will be replaced by the given url. This is useful to automatically switch to using a CDN for your production environment.
  • version: when specified, the sub-string "{{version}}" in the url parameter will be replaced with its value.

Learn more

Visit the official Bootstrap homepage for docs and more.

See LICENSE.

CHANGELOG

4.0.0

  • Update package to bootstrap 4.0.0

4.0.0-beta.3

  • Update package to bootstrap 4.0.0-beta.3

4.0.0-alpha.6

  • Update package to bootstrap 4.0.0-alpha.6

3.3.0+7

  • Update package to bootstrap 3.3.7 and jquery 3.1.1

3.3.0+6

  • Update package to bootstrap 3.3.6 and jquery 2.2.4

3.3.0+4

  • Change name from bootstrap_for_pub to bootstrap

3.3.0+2

  • Bump versions of dependencies

1. Depend on it

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


dependencies:
  bootstrap: "^4.0.0"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:


import 'package:bootstrap/bootstrap.dart';
        
Version Uploaded Documentation Archive
4.0.0 Feb 3, 2018 Go to the documentation of bootstrap 4.0.0 Download bootstrap 4.0.0 archive
3.3.7 Sep 25, 2016 Go to the documentation of bootstrap 3.3.7 Download bootstrap 3.3.7 archive
3.3.6 Jul 15, 2016 Go to the documentation of bootstrap 3.3.6 Download bootstrap 3.3.6 archive
3.3.4 Apr 18, 2015 Go to the documentation of bootstrap 3.3.4 Download bootstrap 3.3.4 archive
3.3.0+4 Nov 24, 2014 Go to the documentation of bootstrap 3.3.0+4 Download bootstrap 3.3.0+4 archive
3.3.0+3 Nov 24, 2014 Go to the documentation of bootstrap 3.3.0+3 Download bootstrap 3.3.0+3 archive
3.3.0+2 Nov 24, 2014 Go to the documentation of bootstrap 3.3.0+2 Download bootstrap 3.3.0+2 archive
4.0.0-alpha.6 Apr 19, 2017 Go to the documentation of bootstrap 4.0.0-alpha.6 Download bootstrap 4.0.0-alpha.6 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]
84 / 100
Health:
Code health derived from static analysis. [more]
96 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
91
Learn more about scoring.

Platforms

Detected platforms: Flutter, other

Primary library: package:bootstrap/bootstrap.dart with components: io, isolate, build.

Suggestions

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 2 hints.

    Run dartfmt to format lib/bootstrap.dart.

  • Maintain an example.

    None of the files in your example/ directory matches a known example patterns. Common file name patterns include: main.dart, example.dart or you could also use bootstrap.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
barback >=0.14.1+3 <0.16.0 0.15.2+15
html >=0.12.0 <0.14.0 0.13.3
Transitive dependencies
args 1.4.2
async 2.0.6
charcode 1.1.1
collection 1.14.9
csslib 0.14.1
logging 0.11.3+1
path 1.5.1
pool 1.3.4
source_span 1.4.0
stack_trace 1.9.2
utf 0.9.0+4