math_area 0.0.4 copy "math_area: ^0.0.4" to clipboard
math_area: ^0.0.4 copied to clipboard

A simple Flutter package to calculate the area of common shapes like square, rectangle, circle, and triangle.

pub package

math_area #

A simple Flutter package to calculate the area of common shapes like square, rectangle, circle, and triangle.

Getting Started #

Flutter

Installation #

Add the dependency in your pubspec.yaml:

dependencies:
  math_area: ^0.0.1

Run the following command to install:

flutter pub get

Import the package in your Dart code:

import 'package:math_area/math_area.dart';

This project is a sample to show how to create and publish packages from a local directory, then a git repo, and finally pub.dev

Methods in math_area: #

final mathArea = MathArea();

mathArea.calculateAreaRect(2,3);
mathArea.calculateAreaTri(6,8);
mathArea.calculateAreaSqu(8);
mathArea.calculateAreaCir(4);

Usage #

final mathArea = MathArea();

final result = mathArea.calculateAreaRect(2,3);
print(result);
0
likes
150
points
14
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A simple Flutter package to calculate the area of common shapes like square, rectangle, circle, and triangle.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter, intl

More

Packages that depend on math_area