Flutter Clip Path Tutorial | Custom Shape | Design Challenge 2023

  Рет қаралды 37,413

Coding With T

Coding With T

Күн бұрын

Пікірлер: 82
@ThePilli41
@ThePilli41 Жыл бұрын
the king is back!
@CodingwithT
@CodingwithT Жыл бұрын
So nice of you 💕💖
@mohamedalhamri9714
@mohamedalhamri9714 6 ай бұрын
These are of the best flutter tutorials if not the best. Thank you brother
@CodingwithT
@CodingwithT 6 ай бұрын
You welcome
@vuongqtvn
@vuongqtvn Жыл бұрын
Thank you for the very detailed tutorial, I'm looking forward to your flutter ecommece product
@CodingwithT
@CodingwithT Жыл бұрын
I'm glad it was helpful ☺️
@legardemontcho6739
@legardemontcho6739 3 ай бұрын
Great session Againt ! But one suggestion: Flutter's ClipOval widget should be used for TCiruclarContainer to avoid the radius, padding and decorations params. You can even have just a size and a color if the circle is never oval. Here's the code: class TClipOval extends StatelessWidget { final double size; final Widget? child; final Color backgroundColor; const TClipOval({ this.size = 400, this.child, this.backgroundColor = Colors.white, super.key, }); @override Widget build(BuildContext context) { return ClipOval( child: Container( height: size, width: size, color: backgroundColor, child: child, ), ); } }
@طالببرمجة-ه2غ
@طالببرمجة-ه2غ 2 ай бұрын
Thank you, "with a T." My English is poor, but I'm trying to understand. I thank you with all my heart for your valuable efforts, brother.
@CodingwithT
@CodingwithT Ай бұрын
You're very welcome! Your effort in communicating in English is commendable, and I’m glad to hear that you’re finding the content helpful.Thank you for your kind words, and keep up the great work!
@kb047_ff7
@kb047_ff7 7 ай бұрын
you could have easily achieved thiss using stack and then positioned or alignment widget which child is white container theh have given border radius.only at top left and top right ie.ciruclar
@gridzzle
@gridzzle Жыл бұрын
why u removed the sizedbox with 400 height inside primaryheadercontainer after u extracted it ? and how come we still can see the shapes after you removed it ? after i removed the sizedbox, nothing is showing , only full white background.... thanks in advance
@gridzzle
@gridzzle Жыл бұрын
i can see in the next video you inserted the sizedbox back, sorry for the misunderstanding
@ryansumbele3552
@ryansumbele3552 Жыл бұрын
please how did you solve this problem i am facing thesame issue
@gridzzle
@gridzzle Жыл бұрын
insert the sizedbox again @@ryansumbele3552
@FelipeCampelo0
@FelipeCampelo0 11 ай бұрын
this is a whole calculus class 😃
@CodingwithT
@CodingwithT 11 ай бұрын
😂🤣 This is...
@LotOFfactories
@LotOFfactories 7 ай бұрын
I learnt 50% of knowledge from this video and I being learning flutter for 2 years..
@CodingwithT
@CodingwithT 6 ай бұрын
That’s huge buddy. I am really glad you like this and it’s helpful.
@kyungsooswifeu8240
@kyungsooswifeu8240 10 ай бұрын
Definitely a savior! Thanks a lot!
@CodingwithT
@CodingwithT 10 ай бұрын
Glad it's helpful 😁
@noumankarim92
@noumankarim92 Жыл бұрын
Very nice and informative... thanks
@CodingwithT
@CodingwithT Жыл бұрын
You welcome 🤗
@scottfarestrand2364
@scottfarestrand2364 8 ай бұрын
I am wondering if there is another option to get the curves. Could we use a stack to have a container (the blue one) followed by another container that has the curves and position it overlaying the bottom 20 pixels of the first container?
@Senior302
@Senior302 3 ай бұрын
import 'package:best_uis/utils/constants/colors.dart'; import 'package:best_uis/utils/constants/helper_functions.dart'; import 'package:flutter/material.dart'; class Home extends StatelessWidget { const Home({super.key}); @override Widget build(BuildContext context) { return Scaffold( body: Stack( children: [ Container( color: AppColors.primary, ), Positioned( top: 50, left: HelperFunctions.screenWidth(context) * .95, child: CustomPaint( painter: CircledShape(), )), Positioned( top: 300, left: HelperFunctions.screenWidth(context) * .999, child: CustomPaint( painter: CircledShape(), )), Positioned( left: 1, top: HelperFunctions.screenHeight(context) * .5, child: Container( height: HelperFunctions.screenHeight(context) * .5, width: HelperFunctions.screenHeight(context) * .5, decoration: BoxDecoration( color: AppColors.white, borderRadius: BorderRadius.only( topLeft: Radius.circular(20), topRight: Radius.circular(20), )), ), ), ], ), ); } } class CircledShape extends CustomPainter { @override void paint(Canvas canvas, Size size) { canvas.drawCircle( Offset(25, 25), 170, Paint() ..color = AppColors.white.withOpacity(.1) ..style = PaintingStyle.fill); } @override bool shouldRepaint(covariant CustomPainter oldDelegate) { return false; } }
@bukor0su368
@bukor0su368 Ай бұрын
this exactly what i thought of as well
@zakariaelaaliji7747
@zakariaelaaliji7747 7 ай бұрын
please I want to create a logo for my application so I can use it in the splash screen, any recommandations ?
@pjagannadham2540
@pjagannadham2540 Жыл бұрын
Which state management you are using
@CodingwithT
@CodingwithT Жыл бұрын
GetX 🤗
@hridoykhan160
@hridoykhan160 Ай бұрын
wow this is amazing
@CodingwithT
@CodingwithT Ай бұрын
Thank you 🤩
@kyungsooswifeu8240
@kyungsooswifeu8240 7 ай бұрын
The other widgets placed after this curve are not positioned directly after it there's some extra space on top. I have no extra padding added in any widget is there a way to display them directly in the top of the white space ? Thank you.
@aswinsubhash7581
@aswinsubhash7581 Жыл бұрын
I have a doubt , when we are navigating the getx controllers are not getting disposed, all controllers are in intialized state , so is it a good thing? because getx advantage is there route system, it will dispose the controllers automatically
@flutterIgnite
@flutterIgnite 10 ай бұрын
Master T as always . awesome
@CodingwithT
@CodingwithT 9 ай бұрын
Thank you so much for your appreciation! Keep up the great work!
@MohamedIslamDJOUABLIA
@MohamedIslamDJOUABLIA 5 ай бұрын
AMAZING , but i should try to understand the clippath widget better , thanks
@CodingwithT
@CodingwithT 5 ай бұрын
You're welcome! Understanding the ClipPath widget can really enhance your designs.
@ishuraa-b
@ishuraa-b 4 ай бұрын
Why did you take 0 as the offset x of second first curve?
@CodingwithT
@CodingwithT 4 ай бұрын
The 0 offset for the secondFirstCurve is used to maintain the horizontal alignment for the second curve along the x-axis. Since the second curve is intended to start from the same vertical level as the first one, the x-coordinate remains at 0, ensuring that the curve is positioned correctly without any horizontal shift.
@ishuraa-b
@ishuraa-b 4 ай бұрын
@@CodingwithT but if i replace 0 with 100 in the code, then also I amgetting the same result
@SpaceXplorer_2024
@SpaceXplorer_2024 11 ай бұрын
How to solve this problem Failed assertion: line 599 pos 12: 'size.isFinite': is not true.
@elncart
@elncart Жыл бұрын
very nice. can you explain riverpod with one small project.
@CodingwithT
@CodingwithT Жыл бұрын
Yes sure, I will try to make a playlist on that along with other State Managements 💕
@JustGamingAndD
@JustGamingAndD Жыл бұрын
Merci. Le code est bon mais rien ne s'affiche sur mon emulateur. C'est seulement la bottom navigation bar qui apparaît. Pouvez vous m'aider svp ?
@zumbarto
@zumbarto 4 ай бұрын
Why not stack with containers? The container on the top will have borderRadius and it will have the same result. Am I missing something?
@CodingwithT
@CodingwithT 4 ай бұрын
Using a CustomClipper allows for more complex shapes and precise control compared to Container with borderRadius. For intricate designs like this, CustomClipper is the better choice.
@bukor0su368
@bukor0su368 Ай бұрын
why not putting the blue container and the white one in a stack, then making the top right and left corners of the white container circular? why whoudn't this work?
@pintsizedpals
@pintsizedpals Ай бұрын
You are right. That is the easiest way rather than using clipper
@bukor0su368
@bukor0su368 Ай бұрын
@pintsizedpals I think clip is better, like how would u make the container cover the whole screen?
@CodingwithT
@CodingwithT 16 күн бұрын
Using a Stack with a circular top-right and top-left border on the white container should work. Just ensure you use a ClipRRect or Container with BoxDecoration and set borderRadius for the corners.
@mr.saurabhpatil
@mr.saurabhpatil Жыл бұрын
Although I have purchased a kit... I'm still waiting for your videos... Please upload every part as fast as you can... Please....
@CodingwithT
@CodingwithT Жыл бұрын
Thank you 😊. I'm on it.
@muhendis_
@muhendis_ 6 ай бұрын
I should learn more about ClipPath
@CodingwithT
@CodingwithT 5 ай бұрын
Learning more about ClipPath can really enhance your design skills! 🎨 It's a powerful widget for creating custom clip shapes in Flutter.
@AmiringPRO
@AmiringPRO 10 ай бұрын
class HomeScreen extends StatelessWidget { const HomeScreen({super.key}); @override Widget build(BuildContext context) { return Scaffold( body: SingleChildScrollView( child: Column( children: [ TPrimaryHeaderContainer( child: Container(), ), ], ), ) ); } } it is not working it doesn't show me a custom shape help me please?
@fanocs
@fanocs 5 ай бұрын
Give the container a height property of 400.
@dhalle
@dhalle Жыл бұрын
Its amazing tutorial and understandably sir but i want to tell you and requested you to make your editor to zoom because its var away to see nicely plz zoom sir 🎉
@CodingwithT
@CodingwithT Жыл бұрын
I tried to zoom but in upcoming videos I'll increase the zoom. Thankyou 💖
@dhalle
@dhalle Жыл бұрын
@CodingwithT Sir Thankfully 💥🙏🤩
@ANKURTIWARY-l2y
@ANKURTIWARY-l2y Жыл бұрын
what extension did u used to get the small box of colors near the line number, can you tell
@CodingwithT
@CodingwithT Жыл бұрын
Which one?
@ANKURTIWARY-l2y
@ANKURTIWARY-l2y Жыл бұрын
when u are using a color in the code, u r getting a small box near the line number which shows which color is used , how do u get that? @@CodingwithT
@adamilham_
@adamilham_ Жыл бұрын
Sir, in primary_header_container.dart, can you tell me the code for background custom shape? I can't see the code because of the emulator
@CodingwithT
@CodingwithT Жыл бұрын
Which one?
@subhamCoder
@subhamCoder 4 ай бұрын
Pls solve the problem size.isFinite : is not true
@berkantyurtsever41
@berkantyurtsever41 10 ай бұрын
Hello friend, I did everything as it is. However, when I put the container position in the stack, I cannot see the container. If you have email I can show you the code and what it looks like.
@CodingwithT
@CodingwithT 9 ай бұрын
Hi, You have to use positioned widget while using stack. api.flutter.dev/flutter/widgets/Positioned-class.html
@taku_and_jesus
@taku_and_jesus 3 ай бұрын
i finished the whole video till end and when i was done nothing is popping up on my home screen, please help
@CodingwithT
@CodingwithT 3 ай бұрын
Make sure to add child property in your widget
@aouadicharaf1038
@aouadicharaf1038 Жыл бұрын
❤❤❤
@activegoogle4501
@activegoogle4501 7 ай бұрын
😊
@manishmg3994
@manishmg3994 Жыл бұрын
if possible make source code free
@goodview360
@goodview360 Жыл бұрын
He needs the support to keep giving us current tutorials, lets support
@JalalTech-i2g
@JalalTech-i2g Жыл бұрын
Source code please 🥺😢
@CodingwithT
@CodingwithT Жыл бұрын
Link to download source code is available in the description 🎉
@hunterxx6744
@hunterxx6744 8 ай бұрын
Like for you salam
@CodingwithT
@CodingwithT 7 ай бұрын
W.Salam Thank you for your support.
@abdelouahebbenouar6157
@abdelouahebbenouar6157 5 ай бұрын
I understand that you want to keep a clean code , but factoring everything to a custom widget became annoying, it's not clean code anymore and trying to find a specific widget in a pile of widgets is kinda annoying, i like your videos , but i hope you change this part
@ranugaliyanage7674
@ranugaliyanage7674 4 ай бұрын
Exactly 😂
@FelipeCampelo0
@FelipeCampelo0 11 ай бұрын
I made a Path Element class so we can name properly the edges and the horizontal line: class PathElement { PathElement(this.curveBeginning, this.curveEnding, this.path); final Offset curveBeginning; final Offset curveEnding; final Path path; void quadraticBezierTo() { path.quadraticBezierTo( curveBeginning.dx, curveBeginning.dy, curveEnding.dx, curveEnding.dy, ); } } FULL: curved_edges.dart import 'package:flutter/material.dart'; class TCustomCurvedEdges extends CustomClipper { @override Path getClip(Size size) { var path = Path(); path.lineTo(0, size.height); PathElement firstEdge = PathElement( Offset(0, size.height - 20), Offset(30, size.height - 20), path, ); firstEdge.quadraticBezierTo(); PathElement horizontalLine = PathElement( Offset(0, size.height - 20), Offset(size.width - 30, size.height - 20), path, ); horizontalLine.quadraticBezierTo(); PathElement lastEdge = PathElement( Offset(size.width, size.height - 20), Offset(size.width, size.height), path, ); lastEdge.quadraticBezierTo(); path.lineTo(size.width, 0); path.close(); return path; } @override bool shouldReclip(covariant CustomClipper oldClipper) { return true; } } class PathElement { PathElement(this.curveBeginning, this.curveEnding, this.path); final Offset curveBeginning; final Offset curveEnding; final Path path; void quadraticBezierTo() { path.quadraticBezierTo( curveBeginning.dx, curveBeginning.dy, curveEnding.dx, curveEnding.dy, ); } }
Flutter Custom AppBar Design | Reusable AppBar Flutter 2023
17:06
Coding With T
Рет қаралды 29 М.
Search Bar and Horizontal ListView builder Categories in Flutter 2023
28:29
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН
黑天使被操控了#short #angel #clown
00:40
Super Beauty team
Рет қаралды 61 МЛН
Каха и дочка
00:28
К-Media
Рет қаралды 3,4 МЛН
人是不能做到吗?#火影忍者 #家人  #佐助
00:20
火影忍者一家
Рет қаралды 20 МЛН
Top 30 Flutter Tips and Tricks
6:50
Flutter Mapp
Рет қаралды 577 М.
Flutter Basics by a REAL Project
25:42
Flutter Guys
Рет қаралды 573 М.
👨🏽‍💻 Let's clone a dribbble design using FLUTTER ♡
38:41
Flutter Tutorial: Camera Feature || Part 2
8:47
Code With Snow
Рет қаралды 59
Flutter eCommerce App UI Design | Flutter Product Detail Page
25:10
Coding With T
Рет қаралды 13 М.
How to treat Acne💉
00:31
ISSEI / いっせい
Рет қаралды 108 МЛН