简体   繁体   中英

Dart and third party CSS and JS frameworks

I am gearing up to create my first web application and I've been reading a lot about Google Dart . It looks like a very fun, exciting new approach to web development and I am strongly considering using it for my application.

There is one question that I've been unable to find a solid answer for, however: is it possible to use a CSS/JS framework with Dart? In this case, I'm interested in using Twitter Bootstrap . I'd like to take advantage of the fantastic layout tools, buttons, and javascript modules it provides.

Would it be possible to use Dart and Bootstrap at the same time? Do I even need to use Bootstrap? Does Dart already provide or make it easy to create what Bootstrap provides?

Thanks for your question. Yes, you can use Bootstrap with a Dart app. Bootstrap is mostly a set of CSS presets, patterns, and styles. There are a few JavaScript powered Bootstrap plugins for more interactive behavior. Depending on what you want to do, those JavaScript plugins can operate independently of your Dart app.

Dart does not bundle anything like Bootstrap. You could use Dart to replicate the Bootstrap plugins, but there isn't much need to do that.

I created small sample. Use bootstrap into Dart. https://github.com/ehr174/dartstrap

您可以考虑Bootjack - Dart中的Bootstrap端口。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM