2026-01-16 14:26:17 +02:00
2026-01-16 14:26:17 +02:00
2026-01-16 14:26:17 +02:00
2026-01-16 14:26:17 +02:00
2026-01-16 14:26:17 +02:00
2026-01-16 14:26:17 +02:00
2026-01-16 14:26:17 +02:00
2026-01-16 14:26:17 +02:00
2026-01-16 14:26:17 +02:00
2026-01-16 14:26:17 +02:00
2026-01-16 14:26:17 +02:00
2026-01-16 14:26:17 +02:00
2026-01-16 14:26:17 +02:00
2026-01-16 14:26:17 +02:00
2026-01-16 14:26:17 +02:00
2026-01-16 14:26:17 +02:00
2026-01-16 14:26:17 +02:00
2026-01-16 14:26:17 +02:00

hardware

hardware info (FFI)

Screen Border Radius

For ios we have static table here /ios/Classes/Hardware.swift

For android we read the border radius from the resources

For macos, linux & windows we return null

import 'package:hardware/hardware.dart';

void main() {
  WidgetsFlutterBinding.ensureInitialized();
  
  // we get null when there is no borderRadius to be infered
  final borderRadius = Hardware.screen.borderRadius ?? 0.0;
}

Pixel 7 Pro

Description
No description provided
Readme MIT 1.7 MiB
Languages
C++ 34.6%
CMake 31.3%
Swift 8.4%
Ruby 7.9%
C 7.6%
Other 10.2%