commit | c9be48b7a02e2c8ea37b72f4b66a582236928f12 | [log] [tgz] |
---|---|---|
author | Đào Hoàng Sơn <daohoangson@gmail.com> | Tue Feb 23 17:59:37 2021 |
committer | GitHub <noreply@github.com> | Tue Feb 23 17:59:37 2021 |
tree | b2a06573ff918f12b6958a14bb36ae1cc434356d | |
parent | 1432076585637e0ebb9f9c348ba50f299907ec5d [diff] |
Fix crash using `Color.css` with rgb(), rgba(). (#104) Fixes #88 Use `.toInt()` over `as int` to convert `double` to `int`.
A Dart CSS parser.
Parsing CSS is easy!
import 'package:csslib/parser.dart'; main() { var stylesheet = parse( '.foo { color: red; left: 20px; top: 20px; width: 100px; height:200px }'); print(stylesheet.toDebugString()); }
You can pass a String
or List<int>
to parse
.