Skip to content

Commit

Permalink
Fix dp unit conversions. (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 authored Dec 17, 2016
1 parent 5ac62e0 commit c91ace9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/src/value/number.dart
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,17 @@ final _conversions = {
// Pixel density
"dpi": {
"dpi": 1,
"dpcm": 1 / 2.54,
"dppx": 1 / 96,
"dpcm": 2.54,
"dppx": 96,
},
"dpcm": {
"dpi": 2.54,
"dpi": 1 / 2.54,
"dpcm": 1,
"dppx": 2.54 / 96,
"dppx": 96 / 2.54,
},
"dppx": {
"dpi": 96,
"dpcm": 96 / 2.54,
"dpi": 1 / 96,
"dpcm": 2.54 / 96,
"dppx": 1,
},
};
Expand Down

0 comments on commit c91ace9

Please sign in to comment.