padding top-level property
EdgeInsetsGeometry
get
padding
Implementation
EdgeInsetsGeometry get padding {
final isDesktop =
!kIsWeb &&
(defaultTargetPlatform == TargetPlatform.macOS ||
defaultTargetPlatform == TargetPlatform.windows ||
defaultTargetPlatform == TargetPlatform.linux);
final amount = 2.0 + (isDesktop ? 10.0 : 0.0);
return EdgeInsets.symmetric(vertical: amount, horizontal: 8);
}