pure_dart_ui 0.1.4 pure_dart_ui: ^0.1.4 copied to clipboard
The classes from `dart.ui` that run on pure Dart without depending on the Flutter SDK.
Pure Dart UI #
The classes from dart.ui
that run on pure Dart.
Eliminates the error "Dart library 'dart:ui' is not available on this platform".
Features #
Classes independed of the Flutter SDK #
- Color
- Offset
- Rect
- Size
Functions independed of the Flutter SDK #
- clampDouble
- lerpDouble()
Usage #
Add this package to pubspec.yaml
and import the library:
import 'package:pure_dart_ui/pure_dart_ui.dart';
Use the classes and functions in this package same way you used Flutter dart:ui
.
You can create your own application with dart:ui based on a pure Dart, without depending on the Flutter SDK.