bootstrap 4.0.0

  • Installing
  • Versions
  • 88

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


See the install instructions.


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="" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
    <script src="" 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

- bootstrap:
    url: //{{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.




  • Update package to bootstrap 4.0.0


  • Update package to bootstrap 4.0.0-beta.3


  • Update package to bootstrap 4.0.0-alpha.6


  • Update package to bootstrap 3.3.7 and jquery 3.1.1


  • Update package to bootstrap 3.3.6 and jquery 2.2.4


  • Change name from bootstrap_for_pub to bootstrap


  • Bump versions of dependencies

1. Depend on it

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

  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


This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1


Describes how popular the package is relative to other packages. [more]
77 / 100
Code health derived from static analysis. [more]
98 / 100
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]


Detected platforms: Flutter, other

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


  • 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.


Package Constraint Resolved Available
Direct dependencies
barback >=0.14.1+3 <0.16.0 0.15.2+14
html >=0.12.0 <0.14.0 0.13.2+2
Transitive dependencies
args 1.3.0
async 2.0.3
charcode 1.1.1
collection 1.14.5
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.1
utf 0.9.0+4