kevinvan720 / morphable_shape Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
/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'.
Thanks for the package, it looks great! I have a couple of existing svgs that are super simple, just one path. How do I convert that to the json and import it, is that possible?
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),
);
}
}
Hi, I created a shape in fluttershape.com and trying to deserialise in my app as it's mentioned in the documentation.
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.
Package throws dependency resolution exception during the build when used with flutter_native_splash as it was recently updated to image tp v4.0.10.
flutter_native_splash change log
Should be resolved by referencing new version of animated_box_decoration produced by fix of this issue
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.