Hey y'all - A quick clarification with the animation in the video: the example code always shows the number "9" but at certain points the badge in the animation shows a different number ranging from 1 through 17. That number 9 in the Badge code should be changing to update the number that is displayed in the Badge itself! My apologies if that caused any confusion. Thanks @EvilTim1911 for calling that out!
@mohamedhamde66112 жыл бұрын
Don't worry bout it
@AJBatac2 жыл бұрын
LOL. It's just an example.
@yutubyuku2 жыл бұрын
Hey! Appreciate your effort to explain this even though you are not required to!! This makes Flutter community great
@paucolome42982 жыл бұрын
It’s self explanatory chill, good video!
@ce99162 жыл бұрын
No worries, thank you for the great content
@RivaanRanawat2 жыл бұрын
Amazing video! In case you want to add multi-colour to the badge, you can use gradient property, change the shape using shape property and even hide the badge using showBadge property. This is a really amazing package, loved it!
@KhanhFlutter2 жыл бұрын
Thanks for sharing those tips! I personally always love a nice gradient :)
@khurramrizvi1532 жыл бұрын
Nice, have been using stack to achieve this, glad to learn about this widget now. 😄
@KhanhFlutter2 жыл бұрын
What a coincidence. I was totally doing the same!
@freddyoneya22862 жыл бұрын
That makes 3... 5... 10... 14 of us
@kujtimgjokaj6592 жыл бұрын
was thinking about the same thing lately
@KhanhFlutter2 жыл бұрын
We have enough people to form a club!
@Absurdified2 жыл бұрын
You are not alone buddy😃
@codegambit25072 жыл бұрын
I literally just wrote my own implementation of a badge yesterday. This video should have been posted sooner😩
@adimera26682 жыл бұрын
😂
@saitaruns2 жыл бұрын
🤣🤣
@justapugontheinternet2 жыл бұрын
I used to wrap the widget with a stack, and make my own "badge" and position it accordingly. This solves a lot
@UsamaKarim2 жыл бұрын
Always grateful of watching these videos 😌
@mahmood4662 жыл бұрын
Using Stack for this so far, has been intimidating. Happy to know about this usefull widget.
@000-way7 Жыл бұрын
Now that the material design has its own Badge widget, this package component is conflicting with it. So what I do with my projects is to import it as "badger" (import 'package:badges/badges.dart' as badger;) and then use badger.Badeg() widget. Hope it's helpful !
@manifestemanifeste8148 Жыл бұрын
Great tip! You can even go further to avoid this conflict with 'import 'package:flutter/material.dart' hide Badge;'
@000-way7 Жыл бұрын
@@manifestemanifeste8148 Hey, thanks for the tip. This is simpler.
@CoderJava2 жыл бұрын
That's awesome. I don't know that Flutter have a widget with name Badge. So far I've been making manuals to make badges. Thank you Flutter. 👍👍👍
@barziyassin12 жыл бұрын
The magic widget. Amazing!!!
@flutterdev2 жыл бұрын
Thanks for watching, Barzy! If you enjoyed this, be sure to check out the "Package of the Week" playlist here: goo.gle/3vRHwaL
@tashijawed54722 жыл бұрын
This, right here, is the most important widget in flutter history!
@henryifebunandu82 жыл бұрын
So something like this existed!!! I have been using fractional offset with stack (I think) to do this... Thank God for these videos🥺
@rizkyagungramadhan532 жыл бұрын
Why using ternary operator inside showBadge parameter? Since "_voicemails > 0" itself return a boolean 😁
@valerasebafr12 жыл бұрын
❤️❤️❤️ good advice
@eggzzotic2 жыл бұрын
Seems we now (as-of Flutter (Channel master, 3.6.0-2.0.pre.7)) have a clash between this package and the Badge class in material. Need to use an import that separates the namespaces of each, e.g. import 'package:badges/badges.dart' as badges; and then prefix constructor etc e.g. badges.Badge(...)
@subrotoxing82142 жыл бұрын
Wow ... it's much needed widget now available immediately without copying someone's code^^
@jayasooriyas82312 жыл бұрын
Thanks for the video, I didnt know this one, so I stacked text widget with icon and did lot to get that widget
@KhanhFlutter2 жыл бұрын
Thanks for watching! :) Makes me happy to know that it helps to save you some effort!
@muralicse36372 жыл бұрын
Same here. I am using stack widget to get the result
@MrFibbanacci2 жыл бұрын
"Go call your mother" xD I love the widged, and the little joke. ;-) Great work!
@naqeebmaqsood29702 жыл бұрын
I've been using this widget from quite a while and it's really handy
@danielbouady27482 жыл бұрын
thank uuuuuu FLUTTER😭😭😭
@ahsan_khan442 жыл бұрын
haha thank you that one i'm looking for. no more need to customize the container.
@KhanhFlutter2 жыл бұрын
Thank you for watching! I love to hear that the video could save you a bit of effort! 😀
@ThaDataSpace1012 жыл бұрын
What tool do you use to animate this video? The animations make it really useful to convey information in an entertaining way. Love what you guys are doing!
@wvssbil2 жыл бұрын
Yeess waiting too
@KhanhFlutter2 жыл бұрын
Apologies for the delay! Made sure to check with our awesome video production folks and they've confirmed it's After Effects :)
@ThaDataSpace1012 жыл бұрын
@@KhanhFlutter Ah I see, cool! And no worries! Thanks for getting back with me :)
@KhanhFlutter2 жыл бұрын
@@ThaDataSpace101 Of course, it's my pleasure! :)
@vladarskopin33142 жыл бұрын
Definitely gonna use some badges in my college project. Thanks a lot!
@mohammad-karbalaee4 ай бұрын
I just needed this
@Shakl-e2 жыл бұрын
Cool, I'd also like iOS to have automatic badge count in the system. It's a pain to count it on backend or in background manually.
@opikariefgame2 жыл бұрын
Amazing! this most important to implement a notification button
@kasmonuk95572 жыл бұрын
Good idea for e-commerce carts
@Aspiiire2 жыл бұрын
Even if you can do the same with a container it is really handy to have especially for the animation
@hydernotes2 жыл бұрын
Very good, so advanced feature! thanks for this too.
@ProbeOfTech2 жыл бұрын
Awesome!!! 🙌
@hawarhekmat11742 жыл бұрын
Colorscheme the MAGIC ✨
@autumnuniverse19402 жыл бұрын
Finallyyyy I had to use some Circle Avatar and some Stack widgets lol
@gnrslashsp65012 жыл бұрын
Is it possible to put more then one badge icon? Say...1 for messages, other for alarms and so on? It will be nice
@JavierGarcia-se3vi2 жыл бұрын
Very useful, Greetings!
@fluttertutorialpoint2 жыл бұрын
Amazing video🔥🔥🔥
@Frederic198808242 жыл бұрын
Good to know we use the Badges function. #FlutterForEver
@Pedro5antos_2 жыл бұрын
Thanks!
@baadrqaaba95292 жыл бұрын
I wish jetpack compose will get inspired by flutter team to build a developer friendly kit like flutter .
@mahmoudeslami11452 жыл бұрын
I wish too :D , I am starting to learn it
@alisharifian6977 Жыл бұрын
I cant find badgeContent !? my flutter version is 3.7
@fatih14212 жыл бұрын
can you share editable text. i need "how can i show like a text widgets". i hope u can help me.
@aozo06282 жыл бұрын
how to change Bagde size?
@achmadirfanda2 жыл бұрын
I need question. how to downgrade flutter version? cause i am not supposed in lates version.
@VovanchoHBK2 жыл бұрын
Wow cool 😎
@mddi14202 жыл бұрын
Having badge on bottom navbar item would be great
@asif_imtiaz2 жыл бұрын
Love it!!!
@suniljaiswal80702 жыл бұрын
Superb 🤩
@dev_miguel2 жыл бұрын
Brasil em peso usando Flutter!
@Kim-by5uy2 жыл бұрын
Shouldn't this be a widget though. Why is it under the package series
@papyetlesresistancespapyet26222 жыл бұрын
What is the exact name of the package please ?
@farazkhan68862 жыл бұрын
Wow, and i was doing it with stack position obx etc and it's a lot simpler now 😂
@fabiolucasdev2 жыл бұрын
Very good.
@venir_dev2 жыл бұрын
Damn this is so good. It's so simple it is scary - like, where's the pitfall lol
@__renesan2 жыл бұрын
gracias
@abdopower59132 жыл бұрын
i didnt start flutter yet but i come just check the subscription, and guess what the last time i check maybe is less then 10 day it was 361k now is 369k what the hell is that 😃😃 flutter go viral dud 😋😋
@cavalinhopocoto2 жыл бұрын
Wonderful
@orjiemmanuel64422 жыл бұрын
I just tried it now didnt work, asked me to create a class called badge
@KhanhFlutter2 жыл бұрын
Hey there! Badges is a package so you'll have to add it as a dependency and import it. Installation instructions are available on the pub.dev page here: goo.gle/34uXAVi
@autumnuniverse19402 жыл бұрын
Thanks for this comment Now I know it is a package
@phatakom2 жыл бұрын
Was gonna use a package, but got to know there's already a widget 😅
@erdemsym2 жыл бұрын
Awesome
@adisonmasih2 жыл бұрын
11:34 PM In India. will be up all night :)
@nattawutxp2 жыл бұрын
awesome
@Problemsolver4342 жыл бұрын
Good to know I don't need to use Stack
@d.koshkarev2 жыл бұрын
This only works inside the app. How can I install a badge on my app's icon at a new notification? flutter_app_badger, flutter_app_icon_badge and others don't work!
@TuGordoBello2 жыл бұрын
Muy util
@Baraka03692 жыл бұрын
I swear by god I did it today but with stack ….. I’m gonna switch for badge right now
@crazy-man2 жыл бұрын
cool insted using stack with text
@lonelylove20102 жыл бұрын
this is what i wan😁😁😁
@aozo06282 жыл бұрын
dependencies: badges: ^2.0.2
@mustafashaikh78292 жыл бұрын
Cool
@AlexKato-y7k2 жыл бұрын
in code - 9, but display - 1
@兒玉拓斗2 жыл бұрын
how to ioswidget
@Omarhi51llarious4tsxdl1l Жыл бұрын
দারুন
@suparlan1202 жыл бұрын
That's what I want
@nanakwame11222 жыл бұрын
Finally
@takzuo2 жыл бұрын
👌
@4naught4562 жыл бұрын
😍🤩
@BrazilMentionedHueHue2 жыл бұрын
Damn I made with stack and circle avatar
@DartMitai2 жыл бұрын
круто
@lewisndiritu3782 жыл бұрын
.... now go call your mother.
@tubeasjayАй бұрын
now go call your mother.
@EvilTim19112 жыл бұрын
I'm bothered by the fact that the text in the code is "9" but the badge itself shows 1, that could be kind of confusing for someone just learning Flutter or using the badges
@KhanhFlutter2 жыл бұрын
Good catch! Thank you for calling that out. I started out with it as "9" but then wanted to add in animations, so reset it to 1. Should've caught that one earlier.
@suleyman_sezer2 жыл бұрын
Why is the so simple? We are too tired native development.
@abdelkadersebihi18402 жыл бұрын
My mom is dead
@arjun11942 жыл бұрын
ah yes! make useless simple widgets anyone can make, when there is still no official library for background processing
@yocheeseify2 жыл бұрын
background processing? Can't you do that with a Future?
@hunterwilhelm2 жыл бұрын
@@yocheeseify The future is concurrent, but it has an event loop, so if the future is doing some heavy computation, the whole app freezes. It's only good for IO bound problems not CPU bound. An 'isolate' is something close to spawning a different process for parallel computation instead of concurrent. However the lack of shared memory makes it difficult to use.
@arjun11942 жыл бұрын
Background processing, not concurrency and paralellism, im talking about background as in services in android