Files
hardware/README.md
2026-01-16 14:19:01 +02:00

27 lines
471 B
Markdown

# 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
```dart
import 'package:hardware/hardware.dart';
void main() {
WidgetsFlutterBinding.ensureInitialized();
// we get null when there is no borderRadius to be infered
borderRadius = Hardware.screen.borderRadius ?? 0.0;
}
```