pure_dart_ui 0.1.5 pure_dart_ui: ^0.1.5 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".
Feel free to use it in your awesome project.
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.
Use Color
#
const color = Color(0xFFAABBCC);
Welcome #
Requests and suggestions are warmly welcome.
This package is open-source, stable and well-tested. Development happens on GitHub. Feel free to report issues or create a pull-request there.
General questions are best asked on StackOverflow.