34 questions
0
votes
1
answer
187
views
How achieve given UI using custom clipper in flutter
I want to achieve a bottom clip to a container similar to the below ui and have partially achieved it, However the spacing at the last position is not consistent according to the device width, Either ...
0
votes
0
answers
89
views
How to create a smooth transition from a rounded corner to a diagonal line?
I'm working on a custom shape in Flutter using CustomPainter, and I need to create smooth transitions between rounded corners and diagonal lines. The goal is for these transitions to look seamless and ...
0
votes
0
answers
40
views
custom clipped area out of container , the child is going out of that clipped area
I had made a custom clipper in the shape on pie , and applied it to a container , now when i place some child in that container ,say text() , then it is constrained to that container itsefl not the ...
0
votes
1
answer
41
views
Flutter - Hide a line that shouldn't be shown
I'm trying to create a text with an animation on hover, including a dot in front of it, using Flutter.
The design comes from this website (look at the bottom section you'll find what I'm reproducing).
...
0
votes
1
answer
61
views
How to create custom tab bar flutter
My code like this :
TabBar(
controller: _tabController,
isScrollable: false,
dividerColor: Colors.transparent,
...
-1
votes
1
answer
73
views
Clip some parts of SpriteComponent
I loaded a full screen image using SpriteComponent and trying to remove some parts of that image using canvas.clipPath.
Expected: The image will be rendered except all the clipped parts
Issue: The ...
0
votes
1
answer
153
views
How can I set the clip at the bottom right using flutter CustomClipper
I'm new with flutter and trying to make a custom chat bubble message. I saw a related thread on how to achieve this but it's only for setting the clip at the bottom left corner.
@override
Path ...
0
votes
0
answers
320
views
Flutter: How to clip specific sides of a widget
I want to clip a given side of a widget and leave the others unclipped. But I can't get it to work. It just clips everything so that nothing is left:
import 'package:flutter/widgets.dart';
class ...
0
votes
1
answer
528
views
Flutter use ClipPath on Column Container
I'm playing around with flutter doing some personal projects. I'm learning a bit about complex UIs and it's been quite hard. I've looked into documentation, some blogs, and still have no idea how to ...
0
votes
1
answer
136
views
how to draw upside down traingle with curvy point
I tried this code
Path getClip(Size size) {
final path = Path();
path.lineTo(size.width, 0.0);
path.lineTo(size.width / 2, size.height);
path.close();
return path;
}
But I ...
0
votes
1
answer
52
views
How can I Do this UI using ClipPath? and how it can be Done in another way?
I tried the following code,
What is the best way to do that curve.
My code is separated into 2 parts:
first the entire screen wrapped with stack
second the function of CustomBigArcClipper
return ...
0
votes
1
answer
315
views
Flutter ClipPath, 1 pixel black line visible from the bottom layer, how to remove it?
I was trying to create a container with a small section clipped from the bottom right corner. To do that I used a stack, where I added a container with border-radius 20, and black color, then I placed ...
0
votes
2
answers
394
views
How can I make these top 2 corner Radius Custom Clipper
Path getClip(Size size) {
var path = Path();
path.lineTo(25,0);
path.lineTo(0, size.height);
path.lineTo(size.width, size.height);
path.lineTo(size.width-25, 0);
return path;
...
0
votes
1
answer
528
views
How to fit the text inside a specific area of custom clipPath
I have created this UI
the problem is right now that the text is not displayed fully. How can i put the text for example inside the upper part of the ui so that the text is not covered by the clipped ...
0
votes
1
answer
70
views
How expensive are videos in Flutter?
Normally, if a widget has to rebuild many times or requires a lot of GPU resources, it is expensive. So, how about videos?
For example, consider the two following scenarios:
A screen with a black ...
0
votes
1
answer
1k
views
Diagonal Design and Skew Container in Flutter
I want to achieve the layout as attached image in this question
there are 3 colors:
navy, purple, and white.
I'm aware that custom clipper can be used, but I'm unable to make one and what values to ...
0
votes
1
answer
459
views
How to go about creating this clippath design with a background?
How would I go about making this design in a ScrollView?
I was thinking about making two containers one with the yellow color & second with the white color and then using clipPath to morph the ...
1
vote
1
answer
301
views
How can I fix my problem with clippath flutter?
I want to design this appbar :
and my code in main.dart is :
@override
Widget build(BuildContext context) {
return Column(
children: [
ClipPath(
clipper: WaveClip(),
child: ...
0
votes
1
answer
94
views
How can I add certain ClipPath to every page in flutter by writting the code, one time?
ClipPath(
child: Container(
height: 200,
decoration: const BoxDecoration(
gradient: LinearGradient(
colors: [Color(0xFF7CB342), Color(0xFFDCEDC8)],...
2
votes
2
answers
3k
views
Flutter CustomClipper with Stroke Border
I want to create a Widget with 2 container using a CustomClipper and add a line/stroke/border between them like:
So I want a bottom border on the red colored Container, that is in between the red and ...
1
vote
2
answers
1k
views
Run the same app on 2 web browsers / tabs on the same time ( Flutter )
I am trying to run 2 different web instances of the same code (either chrome chrome or chrome edge). It's like with phone emulators (It's possible ofc, I can open 2 different emulators at the same ...
1
vote
0
answers
573
views
How to display an image inside an overflowing stack, inside a container that has a Clipper ( ClipPath() )?
I'm not sure if I'm making sense but essentially, I want to have a full-sized image inside a container that has a clipper ( ClipPath() ). The image needs to overflow past both clippers.
Here is what I ...
1
vote
0
answers
1k
views
Custom Container border in flutter for message
I am new in flutter i don't know how to make a custom border kindly help me to generate this type of border.
1
vote
1
answer
623
views
How to use ClipPath to get this type of design layout?
I have been scratching my head for a very long time just to get this type of design layout for a TextFormField but failed!
TextFormField
Notice the anti strait lines. My further search for this layout ...
-1
votes
1
answer
89
views
How to create the above custom clipPath widget? (I attached the screenshot)
Here is the custom Appbar I'm trying to archive
2
votes
3
answers
2k
views
Oval decoration in flutter, how can I do that?
I have a layout that I want to implement in flutter, this decoration is featured everywhere in my layout, Text Inputs, Containers, Buttons, Cards, etc. I have seen that you can oval the decorations ...
2
votes
0
answers
624
views
Flutter Clip Path
Logo I want to create with clippath
Logo I want to create with clippath
I tried to make the logo above but it didn't work. How to do it properly?
This is what i made with clippath,stack,Transform....
0
votes
2
answers
517
views
Flutter Clipper Radius
I have a make my Custom Clipper (Pentagon Shape) but I need to make all of the corners round a little bit.
Here's my Clipper Code:
class Pentagon extends CustomClipper<Path> {
@override
Path ...
0
votes
1
answer
2k
views
How to to have curve corner in flutter like the file attached using clip path or any other widget?
How to have a curve corner at the top and right and left
in flutters like the file attached using clip-path or any other widget? I am trying to curve the corner in the container widget with a child ...
0
votes
1
answer
2k
views
Create rounded angles with clip path
Through the clipPath I was able to create a widget with a design similar to that of the photo I posted below. The only problem is to get the rounded corners as shown by the arrows in the photo.
Below ...
-1
votes
1
answer
1k
views
Adding a background color to ClipPath not working
How can I add a background color to a custom ClipPath?
Tried the following but it isn't working
ClipPath(
clipper: MyClipper(),
child: Container(color: Colors.yellowAccent),
)
class MyClipper ...
3
votes
0
answers
436
views
Flutter lack performance when use clip path
I have this situation using a flutter component, the performance with widgets completely created with clip path have a bad performance. There is a way to prevent a bad performance with many clip paths?...
0
votes
1
answer
597
views
flutter : how to flip this path clip Bezier
I have this shape
enter image description here
I want to flip it to be like this
enter image description here
this is the original code
class CustomMenuClipper extends CustomClipper<Path> {
@...
0
votes
1
answer
306
views
Wavy Curve is not smooth using ClipPath
I have to create a curve that looks like as below:
Here is my code trying to make that curve. But it is making a straight line.
ClipPath(
clipper: ArrowClipper(),
child: Container(
width: 35,
...