Skip to content

A widget that creates a thick visual effect by stacking multiple layers of a given child widget with slight translations based on the thickness value.

License

Notifications You must be signed in to change notification settings

Nialixus/thicken

Repository files navigation

Thicken Logo

Thicken

test

A widget that creates a thick visual effect by stacking multiple layers of a given child widget with slight translations based on the thickness value.

Preview

Thicken Preview

Install

Add this line to your pubspec.yaml.

dependencies:
  thicken: ^1.1.2

Usage

First, import the thicken package.

import 'package:thicken/thicken.dart';

And use it like this

Thicken(
  thickness: 0.15,
  child: Icon(
    Icons.accessibility,
    size: 50.0,
  ),
);

Documentation

Thicken

Property Purpose
pixelRatio The sharpness quality of the stroke.
thickness The amount of thickness applied. (It is not recommended to set thickness greater than 1.0)
child The child widget that will be thickened as multiple layers.

Example

About

A widget that creates a thick visual effect by stacking multiple layers of a given child widget with slight translations based on the thickness value.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Languages