Flutter Custom AppBar Design | Reusable AppBar Flutter 2023

  Рет қаралды 21,556

Coding With T

Coding With T

Күн бұрын

Welcome to this enlightening Flutter tutorial, where we'll explore the art of crafting a reusable custom app bar.
► Flutter eCommerce App Course: • Professional Flutter E...
🎊 E-COMMERCE APP
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
🎁 DOWNLOAD SOURCE CODE: codingwitht.com/product/flutt...
❤️ FLUTTER E-COMMERCE APP PLAYLISTS
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
► Complete E-Commerce App : • Professional Flutter E...
► Section - 1 Configuration : • Professional Flutter P...
► Section - 2 Login App : • Professional Flutter P...
► Section - 3 eCommerce UI : • Flutter Complete Ecomm...
► Section - 4 Login Backend: • Flutter Firebase Cours...
► Section - 5 eCommerce Backend: • Flutter E-Commerce App...
❤️ SUBSCRIPTIONS
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
► Join Patreon to Access Premium Content: / membership
COURSES
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
► FLUTTER CRASH COURSE • Flutter Crash Course f...
► LOGIN APP FIREBASE • Flutter Login App - UI...
🧑‍💻 RELATED VIDEOS
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
► Custom App Bar: • Flutter Custom AppBar ...
► Custom Shape: • Flutter Clip Path Tuto...
► Circular image: • Search Bar and Horizon...
► Grid Layout & Product Design : • Gridview in Flutter wi...
► All Products Page Design • Flutter All Products P...
FOLLOW US ON SOCIAL MEDIA
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
💻 Facebook | / codingwithtea
💻 Instagram | / coding_with_tea
❤️ Subscribe | kzbin.info...
CHAPTERS
▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬▬
00:00 Introduction
00:45 Project Overview
01:23 Why do we need to create Custom AppBar?
03:12 Create Custom Appbar
08:40 Use Custom Appbar in Design
10:46 Design Cart Icon in AppBar with a Count Badge
15:48 Make the Code Clean
DETAILS
We'll unravel the why and how of building a custom app bar in Flutter, even when the AppBar theme offers predefined options.
In this tutorial, you'll gain a deep understanding of the PreferredSize widget and its significance in creating a custom app bar that seamlessly integrates with your app's design. But that's not all; we'll also venture into the world of design by creating a Circular Counter Icon on your Cart Items Icon button using the powerful Stack widget.
By the end of this tutorial, you'll be well-versed in the art of creating custom app bars and enhancing user interactions through creative design. Let's embark on this journey of Flutter customization and design together!

Пікірлер: 115
@Paulodjall
@Paulodjall 9 ай бұрын
Really really useful and clean tutorial! Well done 🙏
@CodingwithT
@CodingwithT 9 ай бұрын
Thank you 🙏
@cinnamoneffect
@cinnamoneffect 7 ай бұрын
Thank you. You helping me a lot
@CodingwithT
@CodingwithT 7 ай бұрын
I'm so glad that it helped!
@godsplangodwin5721
@godsplangodwin5721 9 ай бұрын
Really hope you finish this series as its going to help a lot of flutter developers
@CodingwithT
@CodingwithT 9 ай бұрын
I will complete 💯 it.
@cryptoairdroppp
@cryptoairdroppp 9 ай бұрын
keep goin bro!
@CodingwithT
@CodingwithT 9 ай бұрын
Thank you 😊
@maazafridi2090
@maazafridi2090 2 ай бұрын
Awesomee....
@CodingwithT
@CodingwithT 2 ай бұрын
Thanks 🤗
@hachcupi
@hachcupi 9 ай бұрын
Ta chaine est juste magique merci pour tout 🤩
@CodingwithT
@CodingwithT 9 ай бұрын
Vous êtes les bienvenus 🤗
@CodingwithT
@CodingwithT 9 ай бұрын
De rien et merci pour votre soutien 🙂
@aouadicharaf1038
@aouadicharaf1038 8 ай бұрын
❤❤❤
@mahmoud_hamdy_flutter
@mahmoud_hamdy_flutter 5 ай бұрын
nice
@CodingwithT
@CodingwithT 5 ай бұрын
Thanks
@abodsy844
@abodsy844 4 ай бұрын
sir why is the TAppBar is not showing in my case even tho i did everything from the beginning but this is the first thing that doesn't show or work but if i use it as a appbar outside the bode it works but in a bad shape and everything is cutted please help me asap 🙏🙏🙏
@CodingwithT
@CodingwithT 4 ай бұрын
You have to call appbar outside the body: of scafold as appBar: TAppBar() If you have more questions then you can contact us on whatsapp
@MagnoDaza
@MagnoDaza 4 ай бұрын
Great tutorial! You make it look easy and enjoyable. There was an issue with Tprimaryheader in the end. It should have a child element to display properly
@mawandenxumalo4901
@mawandenxumalo4901 4 ай бұрын
I actually have that issue and I'm not sure how to fix it.
@CodingwithT
@CodingwithT 4 ай бұрын
Please make sure you assigned the child property in the widget. People created that child but forget to assign it.
@MagnoDaza
@MagnoDaza 4 ай бұрын
@@mawandenxumalo4901 In the next tutorial show you how to fix it
@rifkyakh
@rifkyakh 4 ай бұрын
thnks for your insight, it's solved my issue
@BC2715
@BC2715 5 ай бұрын
beautifully done , love this series
@CodingwithT
@CodingwithT 5 ай бұрын
I am glad that you liked it. Thank you for your Love and Support.
@kinggrey2511
@kinggrey2511 9 ай бұрын
Hi sir I don't know this getx or something state management and some advanced topics will you explain them in detail when we get there. Love your way of explaining keep going sir ❤❤❤❤❤❤
@CodingwithT
@CodingwithT 8 ай бұрын
Sure I will
@speermart
@speermart 2 ай бұрын
please do a video for admin panel also how to integrate with existing Woocommerce store as backend
@CodingwithT
@CodingwithT 2 ай бұрын
Admin panel will be uploaded here after 2 weeks. Noted for woo commerce.
@T-B-5
@T-B-5 8 ай бұрын
Hello sir, I am stuck on the back arrow. I followed every code and instruction but somehow the program is working but back arrow is not showing. I put this.showBackArrow = true but it doesnt seem to be working. Please help
@T-B-5
@T-B-5 8 ай бұрын
Sorry sir, my mistake. I forgot to insert the child widget in the primary_header_container as you mentioned here 1:11
@dilshanisenarathna8096
@dilshanisenarathna8096 8 ай бұрын
@@T-B-5 Thank you dr, you saved me!
@CodingwithT
@CodingwithT 8 ай бұрын
Awesome 👍
@user-xq5vd7zo6i
@user-xq5vd7zo6i 8 ай бұрын
i also did same mistake but my time is saved because of you bro hehehe because i read your comment and correct my mistake thanks a lot
@lilykarmila4559
@lilykarmila4559 8 ай бұрын
your comment save me bro. thanks😂
@user-uy9iy9ws9m
@user-uy9iy9ws9m 4 ай бұрын
i followed the video but nothing is getting visible on by blue appbar screen neither text nor cart
@danielmarin8994
@danielmarin8994 4 ай бұрын
same here
@danielmarin8994
@danielmarin8994 4 ай бұрын
I have found the solution here in the comments. firstly I forgot to display 'child' in Stack() function from primary_header_container.dart. After that, the appbar was white and I managed to solve this by adding forceMaterialTransparency: true in appbar.dart before automaticallyImplyLeading. I hope this will help you too.
@MuhammadAfinF.
@MuhammadAfinF. 8 ай бұрын
Is 'TPrimaryHeaderContainer' a custom widget to configure the 'TAppbar' padding on the body (Column)? Because in my case without that widget, the Custom Appbar has a padding on the sides.
@CodingwithT
@CodingwithT 8 ай бұрын
TPrimaryHeaderContainer is a custom widget and inside this you can create anything using it's child property 😀
@musautmani6706
@musautmani6706 9 ай бұрын
❤😋
@CodingwithT
@CodingwithT 9 ай бұрын
❤️
@ananyasah900
@ananyasah900 Ай бұрын
sir i was solving the error since an hour i didnt use what not chatgpt to solve problem and it was child not asssigned to TPrimaryHeader class :)
@CodingwithT
@CodingwithT 16 күн бұрын
It sounds like you've been working hard to solve that error! Sometimes it’s the simplest things we overlook. Glad you figured it out! 😊 If you need any more help, feel free to ask.
@user-zn1lb6ir2w
@user-zn1lb6ir2w 7 ай бұрын
I have been working thru each video and no issues until this one. The AppBar does not appear in the emulator (the initial left arrow did not appear, nor the text, icon or counter). No code errors and I have checked my code vs your code. It's a mystery to me. Thoughts?
@user-zn1lb6ir2w
@user-zn1lb6ir2w 7 ай бұрын
Never mind - I ran the code in debug and found the issue. I missed displaying the "child" in TPrimaryHeaderContainer... a very small mistake that meant the AppBar was never displayed. Thanks for this great tutorial - I am learning a lot.
@CodingwithT
@CodingwithT 7 ай бұрын
Thank you for sharing the solution 😀
@gbengaabayomi8865
@gbengaabayomi8865 6 ай бұрын
Having the same issue, even tried putting an empty Column inside TPrimaryHeaderContainer it had no effect (blank screen), i also tried putting a text inside the Column it also did not reflect. What could be the issue?
@alikamalharb6624
@alikamalharb6624 5 ай бұрын
@@gbengaabayomi8865 insert the child widget in the primary_header_container as you mentioned here 1:11
@mdmusaddique_cse7458
@mdmusaddique_cse7458 3 ай бұрын
​@@user-zn1lb6ir2w Thanks for mentioning the solution. I just had to add the passed child element in the children of Stack in TPrimaryHeaderContainer.
@markleo2455
@markleo2455 5 ай бұрын
bee following the series. have an issue with my home page. still receicing "RenderBox was not laid out: RenderTransform#cc340 relayoutBoundary=up5 'package:flutter/src/rendering/box.dart': Failed assertion: line 1972 pos 12: 'hasSize'" and wont display content
@CodingwithT
@CodingwithT 5 ай бұрын
Using SizedBox or Container with specific dimensions can provide explicit constraints to your widgets, helping them avoid layout issues like "RenderBox was not laid out." Simply wrap your widgets with SizedBox or Container and specify the desired width and height to ensure proper layout. Hope this helps! If you have any further questions, feel free to ask.
@zakariaelaaliji7747
@zakariaelaaliji7747 2 ай бұрын
sir I have a problem is that my titles and the icon cannot take the primary header which is the custom shape background that we have created, as a background, instead, they take their own background like the rest of the home screen, please can you help me ?
@zakariaelaaliji7747
@zakariaelaaliji7747 2 ай бұрын
up
@zakariaelaaliji7747
@zakariaelaaliji7747 2 ай бұрын
up
@mhsmartgaming2708
@mhsmartgaming2708 7 ай бұрын
How to solve this problem Failed assertion: line 599 pos 12: 'size.isFinite': is not true.
@amankumaragrawal1894
@amankumaragrawal1894 9 ай бұрын
after doing everything my app bar is not visible not the back button as well shopping cart button
@CodingwithT
@CodingwithT 9 ай бұрын
Please share your code snippet at support@codingwitht.com or do me WhatsApp at wa.me/923178059528
@amankumaragrawal1894
@amankumaragrawal1894 9 ай бұрын
Thank you @@CodingwithT for your help the issue got resolved by adding the child Widget after Positioned we have created on primary_header_container.dart file again thankyou.
@CodingwithT
@CodingwithT 9 ай бұрын
You welcome 🤗
@maazafridi2090
@maazafridi2090 8 ай бұрын
i am facing the same error! my appbar is not showing.... after lots of trying. @@CodingwithT
@maazafridi2090
@maazafridi2090 8 ай бұрын
can you help me i am facing the same error the appbar is not showing....@@amankumaragrawal1894
@shehzadhussain491
@shehzadhussain491 5 ай бұрын
Sir the back arrow appears in the right corner where the custom container design is. How to solve this?
@CodingwithT
@CodingwithT 5 ай бұрын
Remove the default back arrow using automaticallyImplyLeading to false
@user-wt7lc9gl9p
@user-wt7lc9gl9p 9 ай бұрын
sir appbar is not displaying on home screen how to fix
@CodingwithT
@CodingwithT 9 ай бұрын
Not sure what could go wrong! It's just a widget
@ZeelaxJr
@ZeelaxJr 6 ай бұрын
Hi Sir. For some reasons, the Appbar appears on the top of the PrimaryHeader even if I called it inside the PrimaryHeader. I can't seem to find where the problem is.
@ZeelaxJr
@ZeelaxJr 6 ай бұрын
Never mind, found the solution. You just have to add extra property forceMaterialTransparency: true, in AppBar. I hope someone else find that useful.
@CodingwithT
@CodingwithT 6 ай бұрын
Thank you for your support. Making appbar transparent might help.
@JirolBikes
@JirolBikes 5 ай бұрын
@@ZeelaxJr still doesn't work on mine, it seems the AppBar was covered by the PrimaryHeader.
@JirolBikes
@JirolBikes 5 ай бұрын
@@CodingwithT what is other solutions?
@ZeelaxJr
@ZeelaxJr 5 ай бұрын
@@JirolBikes Does you Appbar appear in the app, like the title and subtitle. If not, try the other solution that a lot get in this video, not putting widget variable name child in PrimaryHeader [Check 1:08]. The problem im facing is like the subtitle and title appear but the white color of the appbar overwrite the blue color of primaryheader and the circular container.
@user-knxhe
@user-knxhe 9 ай бұрын
the code does not give an error, but for some reason the text does not come out
@CodingwithT
@CodingwithT 9 ай бұрын
Have you assigned the child widget in your Appbar write after Stack custom shapes?
@user-knxhe
@user-knxhe 9 ай бұрын
Thank you for the answer ))@@CodingwithT
@mdmirajhossain3799
@mdmirajhossain3799 4 ай бұрын
I've the same proble and can't solve the issue@@user-knxhe
@rohitshinde4348
@rohitshinde4348 Ай бұрын
my appbar is not working in primary header container ??
@CodingwithT
@CodingwithT Ай бұрын
Make sure to check the widget again and see if you have added the child
@SeriatyTn
@SeriatyTn 4 ай бұрын
the app bar is not transparent in my case .. why??
@CodingwithT
@CodingwithT 4 ай бұрын
you can use your appbar background color as Colors.transparent. If it didn't work, you can contact me on whatsapp.
@younesmlbb2972
@younesmlbb2972 2 ай бұрын
Why Tsize dont word all the commende with T dont work ?
@CodingwithT
@CodingwithT 2 ай бұрын
Sorry? Can you explain?
@sohelindian1988
@sohelindian1988 9 ай бұрын
where we create home.dart file ?
@CodingwithT
@CodingwithT 9 ай бұрын
In the Bottom Navigation which is the first tutorial of this Section 3. kzbin.info/www/bejne/p5WyYputnJd7j5o
@rizkyahsansyarif5584
@rizkyahsansyarif5584 7 ай бұрын
Sorry in advance sir, I'm stuck on the code that I typed, there was no error, but why doesn't the back button, text and shopping bag icon appear even though I have added children to the Primary Header Container. How can I solve this?? Please help me sir
@CodingwithT
@CodingwithT 7 ай бұрын
I think you just need to change the colors and back button will appear
@rizkyahsansyarif5584
@rizkyahsansyarif5584 7 ай бұрын
it's solved, thank you sir. :)
@CodingwithT
@CodingwithT 7 ай бұрын
NP 😁
@bashafaris5908
@bashafaris5908 9 ай бұрын
Where i can get background elements and illustrations for free😢
@CodingwithT
@CodingwithT 9 ай бұрын
You can go to icons8.com or simply download the project with all its resources and assets for free. Link is the description 🎉🤗
@walmosawi
@walmosawi 2 ай бұрын
error >> Another exception was thrown: 'package:flutter/src/widgets/framework.dart': Failed assertion: line 5729 pos 14: '_dependents.isEmpty': is not true.
@b.farhana
@b.farhana 9 ай бұрын
sir are u going to make video today on next topic
@CodingwithT
@CodingwithT 9 ай бұрын
Hi, Sorry for the delay. From tomorrow onwards I'll start uploading daily
@b.farhana
@b.farhana 9 ай бұрын
​@@CodingwithTdaily without 2days gap aa sir? It's really good sir if u uplaod video daily.Thank u​
@CodingwithT
@CodingwithT 9 ай бұрын
Yes almost on a daily basis 😁
@R004032
@R004032 4 ай бұрын
Hope have a Laravel api
@CodingwithT
@CodingwithT 4 ай бұрын
Noted, I'll consider integrating a Laravel API into the project. Thank you for your suggestion!
@amanimakoi7651
@amanimakoi7651 3 ай бұрын
Whenever I use MPrimaryHeaderContainer The AppBar doesn't appear
@CodingwithT
@CodingwithT 3 ай бұрын
I think you did a mistake in making appbar in header. did you use APPbar widget or made a custom appbar?
@amanimakoi7651
@amanimakoi7651 3 ай бұрын
@@CodingwithT I use custom appbar and I clearly followed your instructions but I think the issue here is the MPrimaryHeaderContainer because whenever I mark it as a comment, the appbar and search bar just appear and work pretty fine
@muvut3144
@muvut3144 9 ай бұрын
What is 'Typo in word'.....??
@CodingwithT
@CodingwithT 9 ай бұрын
Sorry?
Search Bar and Horizontal ListView builder Categories in Flutter 2023
28:29
Flutter Clip Path Tutorial | Custom Shape | Design Challenge 2023
27:49
ПРОВЕРИЛ АРБУЗЫ #shorts
00:34
Паша Осадчий
Рет қаралды 7 МЛН
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 9 МЛН
Smart Sigma Kid #funny #sigma #comedy
00:40
CRAZY GREAPA
Рет қаралды 29 МЛН
Beginning Flutter - Intermediate - Using Common Widgets
4:44
JediPixels
Рет қаралды 76 М.
APP BAR • Flutter Widget of the Day #10
4:36
Mitch Koko
Рет қаралды 24 М.
Flutter Custom AppBar  - Flutter Tutorial for Beginner
7:49
Proto Coders Point
Рет қаралды 12 М.
Oflutter: Create a Sidebar Menu in Flutter 2021
8:45
Oflutter
Рет қаралды 76 М.
Gridview in Flutter with Product Card Design | Flutter Gridview 2023
27:02
Flutter - Custom Scroll View / Sliver App Bar
9:18
Dannndi
Рет қаралды 15 М.
Rate This Smartphone Cooler Set-up ⭐
0:10
Shakeuptech
Рет қаралды 6 МЛН
Новые iPhone 16 и 16 Pro Max
0:42
Romancev768
Рет қаралды 2,3 МЛН