pure_dart_ui 0.1.5 copy "pure_dart_ui: ^0.1.5" to clipboard
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 #

Cover - Pure Dart UI

GitHub License Pub Package Build Status Publisher

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.

5
likes
0
pub points
79%
popularity

Publisher

verified publishersyrokomskyi.com

The classes from `dart.ui` that run on pure Dart without depending on the Flutter SDK.

Repository (GitHub)
View/report issues

Topics

#pure-dart #ui #geometry #color #rectangle

License

unknown (license)

More

Packages that depend on pure_dart_ui