Neumorphism class

A class that provides Neumorphism design elements and utilities.

Neumorphism is a design trend that combines shapes, gradients, and shadows to create a soft, extruded plastic look. This class can be used to apply Neumorphism effects to UI components.

Constructors

Neumorphism()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

animationDuration Duration
The duration of the animation used in the neumorphism effect.
getter/setter pair
borderRadius double
The border radius for neumorphic elements.
getter/setter pair

Static Methods

accentButton({Widget? child, Size size = const Size(elementWidthTwo, elementHeightTwo), ShapeBorder? shape, bool toggle = false, EdgeInsets padding = paddingStepOne, EdgeInsets margin = paddingStepOne, VoidCallback? onTap, AccentButtonCallback? accentChanged}) Widget
Creates an accent button with neumorphism design.
accentList({required List<String> items, EdgeInsets padding = paddingStepOne, ValueChanged<String>? onItemSelected, String? selectedItem, EdgeInsets margin = paddingStepOne}) Widget
Creates a list of widgets with accent styling.
actionContainer({Widget? child, Color? color, Size size = const Size(double.infinity, 48), ShapeBorder? shape, bool main = false, bool toggle = false, double padding = 0, double margin = 0, VoidCallback? onTap, bool renderAccent = false, Alignment? accentAligment, double accentIntensity = 0}) Widget
Creates a container widget for an action.
backButton({GestureTapCallback? onTap}) Widget
Creates a back button widget.
checkBox({EdgeInsets padding = paddingStepOne, EdgeInsets margin = paddingStepOne, ValueChanged<bool>? onChanged}) Widget
Creates a custom checkbox widget with neumorphism design.
container({Widget? child, Color? color, double width = double.infinity, double height = double.infinity, bool dropShadow = true, bool dropInnerShadow = false, EdgeInsets padding = paddingStepOne, EdgeInsets margin = paddingStepOne, bool renderAccent = false, Alignment? accentAligment, double accentIntensity = 0}) Widget
Creates a neumorphic container widget.
counter({EdgeInsets padding = paddingStepOne, EdgeInsets margin = paddingStepOne, int initialValue = 0, int minValue = 1, ValueChanged<int>? onChanged}) Widget
Creates a counter widget with neumorphism design.
Creates a dropdown form field widget.
emailFormField({String? label, TextEditingController? controller, FormFieldValidator<String>? validator, AutovalidateMode validateMode = AutovalidateMode.disabled, String hint = 'Enter your email', Icon? icon, bool obscureText = false, TextInputType inputType = TextInputType.text, EdgeInsets padding = paddingStepOne, EdgeInsets margin = paddingStepOne}) Widget
Creates a form field for email input with neumorphic design.
extendedActionContainer({Widget? child, Size size = const Size(double.infinity, 48), ShapeBorder? shape, bool main = false, bool toggle = false, EdgeInsets padding = const EdgeInsets.all(0), EdgeInsets margin = const EdgeInsets.all(0), VoidCallback? onTap, bool renderAccent = false, Alignment? accentAligment, double accentIntensity = 0}) Widget
Creates a container with extended action capabilities.
frostedGlassContainer({Widget? child, double width = double.infinity, double height = double.infinity, bool dropShadow = true, bool dropInnerShadow = false, EdgeInsets padding = paddingStepOne, EdgeInsets margin = paddingStepOne, bool renderAccent = false, Alignment? accentAligment, double accentIntensity = 0}) Widget
Creates a frosted glass effect container.
gradientText(String text) Widget
Creates a widget that displays text with a gradient effect.
icon(IconData iconData, {double size = 24, Color? color}) Icon
Creates an icon with neumorphism style.
image(String url, {EdgeInsets padding = paddingStepOne, EdgeInsets margin = paddingStepOne, required double height, required double width}) Widget
Creates a widget that displays an image from the given url.
indicatorButton({required Icon icon, double size = 96, ShapeBorder? shape, EdgeInsets padding = paddingStepOne, EdgeInsets margin = paddingStepOne, Color? accentColor, ValueChanged<bool>? onChanged, Alignment? accentAligment, double accentIntensity = 0}) Widget
Creates a button with an indicator.
inputDecoration({String? label, String? hint, Widget? icon, bool filled = true, bool renderAccent = false, Alignment? accentAligment, double accentIntensity = 0}) InputDecoration
Creates an InputDecoration with neumorphism styling.
Creates a menu button widget.
passwordFormField({String? label, String? hint, Icon? icon, bool renderAccent = false, Alignment? accentAlignment, double accentIntensity = 0, EdgeInsets padding = paddingStepOne, EdgeInsets margin = paddingStepOne}) Widget
Creates a password form field widget with neumorphism design.
seriesChart(ValueNotifier<LabelSeriesModel> values, {EdgeInsets padding = paddingStepOne, EdgeInsets margin = paddingStepOne}) ChartSeries
Creates a ChartSeries based on the provided values.
seriesTypesChart({ValueChanged<TimePeriodType>? onItemSelected, required Color color}) SeriesTypesChart
The size of the icons used in neumorphic elements.
softRoundButton({Icon? icon, String? text, Size size = const Size(96, 96), ShapeBorder? shape, bool main = false, bool toggle = false, EdgeInsets padding = paddingStepOne, EdgeInsets margin = paddingStepOne, VoidCallback? onTap, bool renderAccent = false, Alignment? accentAligment, double elevationMultiplier = 1, double accentIntensity = 0}) Widget
Creates a soft round button with neumorphism design.
text(String text, {double size = defaultTextSize, Color? color, TextAlign textAlign = TextAlign.left, FontWeight fontWeight = FontWeight.normal}) Widget
Creates a text widget with the given text.
textFormField({String? label, TextEditingController? controller, FormFieldValidator<String>? validator, AutovalidateMode validateMode = AutovalidateMode.disabled, String? hint, Icon? icon, bool obscureText = false, bool renderAccent = false, Alignment? accentAlignment, double accentIntensity = 0, TextInputType inputType = TextInputType.text, EdgeInsets padding = paddingStepOne, EdgeInsets margin = paddingStepOne}) Widget
Creates a TextFormField widget with neumorphism design.
wrappingText(String text, {double size = defaultTextSize, Color? color, TextAlign textAlign = TextAlign.left, FontWeight fontWeight = FontWeight.normal}) Widget
Wraps the given text in a widget.