The wildly successful Bootstrap project, which helps web developers build responsive designs for web apps, has been ported to Dart's Web UI library. This means the dynamic widgets like accordion, carousel, tabs, and more, are reborn as actual web components. The Dart Widgets library has all the code, and you can easily install it from pub.
With real encapsulation, you can now use custom components that contain the structure, style, and behavior of the widget. For example, instead of using div elements with special classes and requiring another script to make it all work, you can simply use <x-accordion> which contains everything you need.
Here is an example:
<x-accordion>
<x-collapse>
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse">Item 1</a>
</div>
<p>Item 1 content - Lorem ipsum</p>
</x-collapse>
<x-collapse>
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse">Item 2</a>
</div>
<p>Item 2 content - Ut enim ad minim </p>
</x-collapse>
Thanks to Kevin Moore for open sourcing this project. Get started building declarative modern apps with Widgets and Web UI today!

This looks nice Seth! Are you planning a Video Podcast showcasing the new Dart bootstrap widgets and bootstrap grid etc?
ReplyDeleteHey Seth,
ReplyDeleteI don't know much about responsive design and what it entails, but I do know that Bootstrap supports some responsive design "stuff". Is it just a matter of including something like Twitter Bootstrap CSS files and designing your site's HTML so that it's responsive or is there more to it than that? In other words, more JS (or Dart in our case)?
Thanks,
Jason