1.0.0
This commit is contained in:
27
README.md
Normal file
27
README.md
Normal file
@@ -0,0 +1,27 @@
|
||||
# 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
|
||||
final borderRadius = Hardware.screen.borderRadius ?? 0.0;
|
||||
}
|
||||
```
|
||||
|
||||

|
||||
|
||||
|
||||
Reference in New Issue
Block a user