This commit is contained in:
agra
2026-01-16 14:11:34 +02:00
commit bacd044443
154 changed files with 5963 additions and 0 deletions

24
README.md Normal file
View File

@@ -0,0 +1,24 @@
# 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;
}
```