bootjack 1.0.0+1

  • Installing
  • Versions
  • 71


Bootjack is a porting of Twitter Bootstrap 3.0.x in Dart.

Install from Dart Pub Repository

Include the following in your pubspec.yaml:

  bootjack: any

Then run the Pub Package Manager in Dart Editor (Tool > Pub Install). If you are using a different editor, run the command (comes with the Dart SDK):

pub install


First of all in your HTML file, you need to include the CSS resource:

	<link rel="stylesheet" href="packages/bootjack/css/bootstrap.min.css">

Most of the functions in Bootjack components are automatic -- you only need to give the right CSS class on DOM elements and call a global function to register.

For example, a Dropdown button component is prepared by giving the following HTML snippet:

<button class="btn btn-default dropdown-toggle" data-toggle="dropdown">
	<span class="caret"></span>
<ul class="dropdown-menu">
	<li><a href="#">Menu Item #1</a></li>
	<li><a href="#">Menu Item #2</a></li>
	<li><a href="#">Menu Item #3</a></li>

With the following global registration in Dart:

void main() {

That's right. All you need to do in Dart is to tell Bootjack you are using Dropdown components. You can also progammatically access and manipulate the Dropdown:

Dropdown dd = Dropdown.wire(element);

Check more examples and the API reference for more features. Also, you can read the reference of Bootstrap.

Notes to Contributors

Test and Debug

You are welcome to submit bugs and feature requests. Or even better if you can fix or implement them!

Fork Bootjack

If you'd like to contribute back to the core, you can fork this repository and send us a pull request, when it is ready.

Please be aware that one of Rikulo's design goals is to keep the sphere of API as neat and consistency as possible. Strong enhancement always demands greater consensus.

If you are new to Git or GitHub, please read this guide first.

Who Uses

  • Quire - a simple, collaborative, multi-level task management tool.
  • Keikai - a sophisticated spreadsheet for big data

Use this package as a library

1. Depend on it

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

  bootjack: ^1.0.0+1

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:bootjack/bootjack.dart';
Version Uploaded Documentation Archive
1.0.0+1 Aug 17, 2018 Go to the documentation of bootjack 1.0.0+1 Download bootjack 1.0.0+1 archive
1.0.0 Aug 9, 2018 Go to the documentation of bootjack 1.0.0 Download bootjack 1.0.0 archive
0.6.8 Jul 6, 2017 Go to the documentation of bootjack 0.6.8 Download bootjack 0.6.8 archive
0.6.7+2 Apr 12, 2017 Go to the documentation of bootjack 0.6.7+2 Download bootjack 0.6.7+2 archive
0.6.7+1 Mar 16, 2017 Go to the documentation of bootjack 0.6.7+1 Download bootjack 0.6.7+1 archive
0.6.7 Mar 16, 2017 Go to the documentation of bootjack 0.6.7 Download bootjack 0.6.7 archive
0.6.6 Aug 8, 2016 Go to the documentation of bootjack 0.6.6 Download bootjack 0.6.6 archive
0.6.5+5 Apr 27, 2016 Go to the documentation of bootjack 0.6.5+5 Download bootjack 0.6.5+5 archive
0.6.5+4 Mar 18, 2016 Go to the documentation of bootjack 0.6.5+4 Download bootjack 0.6.5+4 archive
0.6.5+3 Jul 3, 2015 Go to the documentation of bootjack 0.6.5+3 Download bootjack 0.6.5+3 archive

All 33 versions...

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]
Learn more about scoring.

We analyzed this package on Jan 15, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.1.0
  • pana: 0.12.10


Detected platforms: web

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

Health suggestions

Fix lib/src/dropdown.dart. (-0.50 points)

Analysis of lib/src/dropdown.dart reported 1 hint:

line 154 col 51: Use valid regular expression syntax.

Format lib/bootjack.dart.

Run dartfmt to format lib/bootjack.dart.

Format lib/bootjack_plugin.dart.

Run dartfmt to format lib/bootjack_plugin.dart.

Fix additional 12 files with analysis or formatting issues.

Additional issues in the following files:

  • lib/src/affix.dart (Run dartfmt to format lib/src/affix.dart.)
  • lib/src/alert.dart (Run dartfmt to format lib/src/alert.dart.)
  • lib/src/button.dart (Run dartfmt to format lib/src/button.dart.)
  • lib/src/carousel.dart (Run dartfmt to format lib/src/carousel.dart.)
  • lib/src/collapse.dart (Run dartfmt to format lib/src/collapse.dart.)
  • lib/src/modal.dart (Run dartfmt to format lib/src/modal.dart.)
  • lib/src/popover.dart (Run dartfmt to format lib/src/popover.dart.)
  • lib/src/scrollspy.dart (Run dartfmt to format lib/src/scrollspy.dart.)
  • lib/src/tab.dart (Run dartfmt to format lib/src/tab.dart.)
  • lib/src/tooltip.dart (Run dartfmt to format lib/src/tooltip.dart.)
  • lib/src/transition.dart (Run dartfmt to format lib/src/transition.dart.)
  • lib/src/util/util.dart (Run dartfmt to format lib/src/util/util.dart.)

Maintenance issues and suggestions

Maintain (-20 points)

Changelog entries help clients to follow the progress in your code.

Use constrained dependencies. (-20 points)

The pubspec.yaml contains 1 dependency without version constraints. Specify version ranges for the following dependencies: dquery.

The description is too short. (-20 points)

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

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 bootjack.dart. Packages with multiple examples should use example/


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0 <3.0.0
dquery any 1.0.0+1
Transitive dependencies
intl 0.15.7
path 1.6.2