What is unit of measurement in flutter
问题 as usual, we use dp for Android and pt(point) for ios as a unit of measurement. 1 pt = 1/72 inch 1 dp = 1/160 inch But i don't what is unit of measurement in flutter example: SizedBox(height: 16.0) or TextStyle(fontSize: 23.0) It just a double number, how many dp or pt equal to 1.0 (flutter)? How is it calculated? 回答1: From https://docs.flutter.io/flutter/dart-ui/Window/devicePixelRatio.html : The number of device pixels for each logical pixel. This number might not be a power of two. Indeed,