GithubHelp home page GithubHelp logo

morphable_shape's People

Contributors

bufferunderflower avatar kevinvan720 avatar wenkaifan0720 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

morphable_shape's Issues

dependency animated_box_decoration-0.0.6 fails in Xcloud workflow

/Users/local/.pub-cache/hosted/pub.dev/animated_box_decoration-0.0.6/lib/src/box_decoration_mix.dart:220:27: Error: The return type of the method 'BoxDecorationMix.padding' is 'EdgeInsetsGeometry?', which does not match the return type, 'EdgeInsetsGeometry', of the overridden method, 'Decoration.padding'.

The method 'Length' isn't defined

Hi,

I just updated morphable_shape from version 1.4.5 to 1.4.8 and I have this error:

The method 'Length' isn't defined for the type 'HexIcon'.
Try correcting the name to the name of an existing method, or defining a method named 'Length'.

It seems that Length/Dimension required by cornerRadius type in PolygonShapeBorder are not exported by the lib anymore.


My code :

import 'package:flutter/material.dart';
import 'package:morphable_shape/morphable_shape.dart';

class HexIcon extends StatelessWidget {
  final Widget icon;
  final Color backgroundColor;

  const HexIcon({
    @required this.icon,
    this.backgroundColor = Colors.white,
    Key key,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Ink(
      decoration: ShapeDecoration(
        shape: PolygonShapeBorder(
          sides: 6,
          cornerRadius: Length(8), // <-- Error here with morphable_shape 1.4.8
        ),
        color: backgroundColor,
      ),
      child: Padding(padding: const EdgeInsets.all(15.0), child: icon),
    );
  }
}

Serialisation

Hi, I created a shape in fluttershape.com and trying to deserialise in my app as it's mentioned in the documentation.

Screen Shot 2022-09-05 at 13 09 02 PM

Shape shapeDecoded = parseShape(json.decode(jsonFromFlutterShape.com));

But there is no Shape type nor a parseShape method when I try to parse the json. I appreciate if you could help. Thanks in advance.

Failed assertion: 'outer.nodes.length == fillColors.length': is not true

Even a basic example from the docs throws the following error
package:morphable_shape/src/dynamic_path/border_paths.dart: Failed assertion: line 26 pos 12:'outer.nodes.length == fillColors.length': is not true.
Code from the docs I used:
Container( width: 100, height: 100, decoration: ShapeDecoration( shape: RoundedRectangleShapeBorder( borderRadius: DynamicBorderRadius.all(DynamicRadius.circular(Length(100))), borderSides: RectangleBorderSides.all(DynamicBorderSide.none), )), )
Flutter version used is 3.7.0
Package is 1.6.4

Incorrect LICENSE

Correct me if I am wrong, but I was flipping through some licenses on a generated Flutter license page, and both this and animated_styled_widget have "Remi Rousselet" listed as the owner in the license file.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.