Comments (6)
Thanks @lohanidamodar.
I achieved it using the same star_clipper.dart
file of your repo by applying some minor changes.
double outerCurveRadius = width / 2.08;
double innerCurveRadius = width / 2.42;
for (double step = 0; step < max + 1; step += degreesPerStep) {
if (counter % 2 == 0) {
path.quadraticBezierTo(
halfWidth + outerCurveRadius * math.cos(step),
halfWidth + outerCurveRadius * math.sin(step),
halfWidth + radius * math.cos(step + halfDegreesPerStep),
halfWidth + radius * math.sin(step + halfDegreesPerStep),
);
} else {
path.quadraticBezierTo(
halfWidth + innerCurveRadius * math.cos(step),
halfWidth + innerCurveRadius * math.sin(step),
halfWidth + radius * math.cos(step + halfDegreesPerStep),
halfWidth + radius * math.sin(step + halfDegreesPerStep),
);
}
counter++;
}
from flutter_custom_clippers.
Hey, may be this package might be more suitable for you, it provides more dynamic options, you may be able to tweak the border on this package to to your needs. Check at the bottom gif for inspiration
https://pub.dev/packages/morphable_shape
from flutter_custom_clippers.
Awesome. Would love a PR if you wish to.
from flutter_custom_clippers.
Thank you sir 😍
Receiving this compliment from you means a lot to me.
Sure, I have already begun it. 😀
from flutter_custom_clippers.
PR sent. #27
from flutter_custom_clippers.
Merged!
from flutter_custom_clippers.
Related Issues (18)
- err after upd to 1.1.0 HOT 3
- Animating? HOT 1
- How do I add a shadow? HOT 2
- How to make a curved bottom app bar HOT 5
- Request for inverted WaveClipperOne && WaveClipperTwo HOT 9
- Why GPL v3 license?
- notification received when app crashes in flutter HOT 2
- Add shadow HOT 1
- Not Issue : But how to achieve this Clip Look ?
- Wave's curve is not smooth
- design instagram message shape HOT 8
- Null safety support HOT 5
- The Octagonal Clipper is actually a hexagonal Clipper
- OvalBottomBorderClipper HOT 5
- License? HOT 1
- designe curve HOT 3
- How to reverse OvalTopBorderClipper? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter_custom_clippers.