Skip to content

Flutter-Neumorphic lib/src/colors.dart:88:33: Error: The getter a is not defined for the class Color  #295

@phuc-tranh-otsv

Description

@phuc-tranh-otsv

Sorry when I open issues in this repo. Because, I can't see issues on your fork repo(Flutter-Neumorphic). You pushed new commit but it make bug.
Error msg: lib/src/colors.dart:88:33: Error: The getter a is not defined for the class Color.
My solution:
static Color _applyPercentageOnOpacity( {required Color maxColor, required double percent}) { final maxOpacity = maxColor.opacity; final maxIntensity = Neumorphic.MAX_INTENSITY; final newOpacity = percent * maxOpacity / maxIntensity; final newColor = maxColor.withOpacity(newOpacity); //<-- intensity act on opacity; return newColor; }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions