abstract_flutter 0.1.1

  • Readme
  • Changelog
  • Example
  • Installing
  • 66

abstract_flutter #

extra_pedantic on pub.dev Travis CI Codecov License Pub.dev Github Stars Twitter Follow GitHub Follow

A collection of abstract_dart structures for Flutter.

import 'package:abstract_flutter/abstract_flutter.dart';

void main() {
  /// Alignment
  const AlignmentField();
  const AlignmentSumGroup();
  const AlignmentProductGroup();
  const AlignmentSumMonoid();
  const AlignmentProductMonoid();
  const AlignmentDirectionalField();
  const AlignmentDirectionalSumGroup();
  const AlignmentDirectionalProductGroup();
  const AlignmentDirectionalSumMonoid();
  const AlignmentDirectionalProductMonoid();

  /// BorderRadius
  const BorderRadiusField();
  const BorderRadiusSumGroup();
  const BorderRadiusProductGroup();
  const BorderRadiusSumMonoid();
  const BorderRadiusProductMonoid();
  const BorderRadiusDirectionalField();
  const BorderRadiusDirectionalSumGroup();
  const BorderRadiusDirectionalProductGroup();
  const BorderRadiusDirectionalSumMonoid();
  const BorderRadiusDirectionalProductMonoid();

  /// EdgeInsets
  const EdgeInsetsField();
  const EdgeInsetsSumGroup();
  const EdgeInsetsProductGroup();
  const EdgeInsetsSumMonoid();
  const EdgeInsetsProductMonoid();
  const EdgeInsetsDirectionalField();
  const EdgeInsetsDirectionalSumGroup();
  const EdgeInsetsDirectionalProductGroup();
  const EdgeInsetsDirectionalSumMonoid();
  const EdgeInsetsDirectionalProductMonoid();

  /// Offset
  const OffsetField();
  const OffsetSumGroup();
  const OffsetProductGroup();
  const OffsetSumMonoid();
  const OffsetProductMonoid();

  /// Radius
  const RadiusField();
  const RadiusSumGroup();
  const RadiusProductGroup();
  const RadiusSumMonoid();
  const RadiusProductMonoid();

  /// Size
  const SizeField();
  const SizeSumGroup();
  const SizeProductGroup();
  const SizeSumMonoid();
  const SizeProductMonoid();

  /// Velocity
  const VelocityField();
  const VelocitySumGroup();
  const VelocityProductGroup();
  const VelocitySumMonoid();
  const VelocityProductMonoid();
}

0.1.1 #

  • VectorSpaces and Algebras added

0.1.0 #

  • Initial version, created by Stagehand

example/main.dart

import 'package:abstract_flutter/abstract_flutter.dart';

void main() {
  /// Alignment
  const AlignmentField();
  const AlignmentSumGroup();
  const AlignmentProductGroup();
  const AlignmentSumMonoid();
  const AlignmentProductMonoid();
  const AlignmentDirectionalField();
  const AlignmentDirectionalSumGroup();
  const AlignmentDirectionalProductGroup();
  const AlignmentDirectionalSumMonoid();
  const AlignmentDirectionalProductMonoid();

  /// BorderRadius
  const BorderRadiusField();
  const BorderRadiusSumGroup();
  const BorderRadiusProductGroup();
  const BorderRadiusSumMonoid();
  const BorderRadiusProductMonoid();
  const BorderRadiusDirectionalField();
  const BorderRadiusDirectionalSumGroup();
  const BorderRadiusDirectionalProductGroup();
  const BorderRadiusDirectionalSumMonoid();
  const BorderRadiusDirectionalProductMonoid();

  /// EdgeInsets
  const EdgeInsetsField();
  const EdgeInsetsSumGroup();
  const EdgeInsetsProductGroup();
  const EdgeInsetsSumMonoid();
  const EdgeInsetsProductMonoid();
  const EdgeInsetsDirectionalField();
  const EdgeInsetsDirectionalSumGroup();
  const EdgeInsetsDirectionalProductGroup();
  const EdgeInsetsDirectionalSumMonoid();
  const EdgeInsetsDirectionalProductMonoid();

  /// Offset
  const OffsetField();
  const OffsetSumGroup();
  const OffsetProductGroup();
  const OffsetSumMonoid();
  const OffsetProductMonoid();

  /// Radius
  const RadiusField();
  const RadiusSumGroup();
  const RadiusProductGroup();
  const RadiusSumMonoid();
  const RadiusProductMonoid();

  /// Size
  const SizeField();
  const SizeSumGroup();
  const SizeProductGroup();
  const SizeSumMonoid();
  const SizeProductMonoid();

  /// Velocity
  const VelocityField();
  const VelocitySumGroup();
  const VelocityProductGroup();
  const VelocitySumMonoid();
  const VelocityProductMonoid();
}

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  abstract_flutter: ^0.1.1

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:abstract_flutter/abstract_flutter.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
33
Health:
Code health derived from static analysis. [more]
99
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
66
Learn more about scoring.

We analyzed this package on May 24, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.1
  • pana: 0.13.8-dev
  • Flutter: 1.17.0

Health issues and suggestions

Document public APIs. (-1 points)

271 out of 271 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.4.4 <3.0.0
abstract_dart ^1.0.2 1.0.2
flutter 0.0.0
meta ^1.0.0 1.1.8
Transitive dependencies
collection 1.14.12
decimal 0.3.5
rational 0.3.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
extra_pedantic ^1.1.1+3
flutter_test