Draw triangle by setting 2 sides and an angle

Related tags

Image flutter
Overview

Draw_Triangle

Draw a triangle by setting 2 sides and an angle. Set an offset (-1 <1,-1 <1) from which side a and side b are drawn.

Features

  • Draw a triangle by setting 2 sides and an angle
  • Set an offset to Control triangle's position
  • Rotate triangle
  • Set triangle's color
  • Set triangle's side width
  • Set triangle's side color
  • Get triangle's height
  • Get triangle's third side
  • Get triangle's area

Usage

Draw_Triangle(
        angle_ab: 90,
        a: 180,
        b: 180,
        color: Colors.blue,
        sideWidth: 5,
        sideColor: Colors.black,
        rotate:45
	offset:Offset(0,0)
);

Parameters

Here are the accepted parameters :

Name Type Default Value Description
angle_ab double null Angle between side a and side b
a double null Length of side a
b double null Length of side b
offset Offset (0,0) offset (-1 <1,-1 <1) from which a and b are drawn
rotate double 0 Triangle's rotation in degrees, from 0 to 360
color Color null Triangle's inner color
sideColor Color Colors.transparent Triangle's side color
sideWidth double 0 Triangle's side width

example

You might also like...

Multiavatar is a free and open-source multicultural avatar maker.

Multiavatar is a free and open-source multicultural avatar maker.

Flutter Wrapper for Multiavatar Multiavatar is a multicultural avatar maker. Multiavatar represents people from multiple races, multiple cultures, multiple age groups, multiple worldviews and walks of life.

Dec 19, 2022

Minimal Unsplash Android App to easily search and download images

Minimal Unsplash Android App to easily search and download images

Minimal Unsplash Android App to easily search and download images

Dec 7, 2022

A simple and easy flutter demo to crop image

flutter_image_crop A simple demo to crop image on flutter easily. A Chinese version of this document can be found here Flutter_image_crop Plugin will

Jul 8, 2021

Instagram tool to download images, reels, videos and more.

Instagram tool to download images, reels, videos and more.

Instagram tool to download images, reels, videos and more.

Jan 2, 2023

Load GIF images and can set framerate

Load GIF images and can set framerate

Dec 14, 2022

A Dart port of zxing that encode and decode multiple 1D/2D barcodes.

A Dart port of zxing that encode and decode multiple 1D/2D barcodes.

ZXing-Dart A Dart port of zxing that encode and decode multiple 1D/2D barcodes. Progress Core package translate Core test translate Core unit test(all

Dec 14, 2022

A Flutter image editor with support for paint, text, filters, emojis, stickers and more

A Flutter image editor with support for paint, text, filters, emojis, stickers and more

Flutter Image Editor Plugin with simple, easy support for image editing using Paints, Text, Filters, Emoji and Sticker like stories.

Dec 22, 2022

You can create a star easily and decide how many angle or color of the star, even the fat and progress of the star.

You can create a star easily and decide how many angle or color of the star, even the fat and progress of the star.

Apr 14, 2021

This project is used to introduce the use of flutter canvas, include draw chart, clip image's path and draw progress indicator.

This project is used to introduce the use of flutter canvas, include draw chart, clip image's path and draw progress indicator.

flutter_canvas This project is used to introduce the use of flutter canvas, include draw chart, clip image's path and draw progress indicator. draw ch

Oct 27, 2022

A flutter widget for comparing two stacked widgets by dragging a slider thumb to reveal either sides of the slider horizontally or vertically.

A flutter widget for comparing two stacked widgets by dragging a slider thumb to reveal either sides of the slider horizontally or vertically.

Juxtapose A flutter widget for comparing two stacked widgets by dragging a slider thumb to reveal either sides of the slider horizontally or verticall

Nov 24, 2022

This package allows you to draw dotted lines with Flutter. You can draw a beautiful dotted line.

This package allows you to draw dotted lines with Flutter. You can draw a beautiful dotted line.

This package allows you to draw dotted lines with Flutter. You can draw a beautiful dotted line.

Feb 9, 2022

A new Flutter package customtoggleswitch is used to toggle a setting between on/off which is true/false respectively Created by suryadevsingh.

A new Flutter package customtoggleswitch is used to toggle a setting between on/off which is true/false respectively Created by suryadevsingh.

CustomToggleSwitch A new Flutter package customtoggleswitch is used to toggle a setting between on/off which is true/false respectively Created by sur

Jun 9, 2020

Alarm app where user setting with touch gesture by moving the hand clock

Alarm app where user setting with touch gesture by moving the hand clock

Alarm App Using Flutter Flutter alarm app where user setting with touch gesture by moving the hand clock How to run Clone this repository Run flutter

Sep 3, 2022

vncitizens app :: setting package

TODO: Put a short description of the package here that helps potential users know whether this package might be useful for them. Features TODO: List w

Nov 28, 2022

Sample Flutter Drawing App which allows the user to draw onto the canvas along with color picker and brush thickness slider.

Sample Flutter Drawing App which allows the user to draw onto the canvas along with color picker and brush thickness slider.

DrawApp Sample Flutter Drawing App which allows the user to draw onto the canvas along with color picker and brush thickness slider. All code free to

Nov 3, 2022

Draw dashed lines with any shape and style you want. Just like that.

Draw dashed lines with any shape and style you want. Just like that.

dashed_line Draw dashed lines with any shape and style you want. Just like that. Usage Add the dependency to your pubspec.yaml (you can see the newest

Dec 20, 2022

Sample Flutter Drawing App which allows the user to draw onto the canvas along with color picker and brush thickness slider.

Sample Flutter Drawing App which allows the user to draw onto the canvas along with color picker and brush thickness slider.

DrawApp Sample Flutter Drawing App which allows the user to draw onto the canvas along with color picker and brush thickness slider. All code free to

Nov 3, 2022

Flutter library to add gestures and animations to each Shape you draw on your canvas in your CustomPainter

Flutter library to add gestures and animations to each Shape you draw on your canvas in your CustomPainter

Flutter library to bring your CustomPainter 🎨 to Life ✨ ⚡️ touchable library gives you the ability to add various gestures and animations to each Sha

Jan 7, 2023
Owner
Omer Stoler
Flutter developer, App developer
Omer Stoler
Simple and effective cross platform image saver for flutter, supported web and desktop

Simple and effective cross platform image saver for flutter, supported web and desktop

7c00 3 Oct 5, 2022
Loading indicator GIFs. Material and Cupertino (Android and iOS) loading indicators in assorted sizes. Use as placeholders for loading remote image assets. Demo: https://gallery.codelessly.com/flutterwebsites/loadinggifs/

Loading GIFs High quality Android and iOS loading spinners. View Demo Loading GIFs is a collection of high fidelity loading animations in GIF format.

Codelessly 31 Dec 23, 2022
A flutter carousel widget, support infinite scroll, and custom child widget.

carousel_slider A carousel slider widget. Features Infinite scroll Custom child widgets Auto play Supported platforms Flutter Android Flutter iOS Flut

serenader 1.4k Dec 30, 2022
A Flutter widget that paints an image and moves it at a slower speed than the main scrolling content.

A Flutter widget that paints an image and moves it at a slower speed than the main scrolling content. Installation Add dependency to your pubspec.yaml

Anatoly Pulyaevskiy 272 Dec 23, 2022
📸 Easy to use yet very customizable zoomable image widget for Flutter, Photo View provides a gesture sensitive zoomable widget. Photo View is largely used to show interacive images and other stuff such as SVG.

Flutter Photo View A simple zoomable image/content widget for Flutter. PhotoView enables images to become able to zoom and pan with user gestures such

Fire Slime Games 1.7k Jan 3, 2023
SVG parsing, rendering, and widget library for Flutter

flutter_svg Draw SVG (and some Android VectorDrawable (XML)) files on a Flutter Widget. Getting Started This is a Dart-native rendering library. Issue

Dan Field 1.5k Jan 6, 2023
A Flutter plugin for Android and iOS supports cropping images

Image Cropper A Flutter plugin for Android and iOS supports cropping images. This plugin is based on two different native libraries so it comes with d

HungHD 891 Dec 28, 2022
Download, cache and show images in a flutter app

Cached network image A flutter library to show images from the internet and keep them in the cache directory. How to use The CachedNetworkImage can be

Baseflow 2.1k Jan 3, 2023
Flutter plugin that allows you to display multi image picker on iOS and Android. 👌🔝🎉

IMPORTANT: This repository has been archived and no longer mantained. As I don't have time anymore to work on the package it became very outdated. For

Radoslav Vitanov 898 Apr 29, 2021
Use lottie in flutter for both iOS and Android

flutter_lottie Use Lottie in Flutter. Supports both iOS and Android using lottie-ios and lottie-android Current Status Supports most features that bot

Cameron Smith 160 Nov 25, 2022