Badges (Package of the Week)

  Рет қаралды 139,077

Flutter

Flutter

Күн бұрын

Пікірлер: 128
@KhanhFlutter
@KhanhFlutter 2 жыл бұрын
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!
@mohamedhamde6611
@mohamedhamde6611 2 жыл бұрын
Don't worry bout it
@AJBatac
@AJBatac 2 жыл бұрын
LOL. It's just an example.
@yutubyuku
@yutubyuku 2 жыл бұрын
Hey! Appreciate your effort to explain this even though you are not required to!! This makes Flutter community great
@paucolome4298
@paucolome4298 2 жыл бұрын
It’s self explanatory chill, good video!
@ce9916
@ce9916 2 жыл бұрын
No worries, thank you for the great content
@RivaanRanawat
@RivaanRanawat 2 жыл бұрын
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!
@KhanhFlutter
@KhanhFlutter 2 жыл бұрын
Thanks for sharing those tips! I personally always love a nice gradient :)
@khurramrizvi153
@khurramrizvi153 2 жыл бұрын
Nice, have been using stack to achieve this, glad to learn about this widget now. 😄
@KhanhFlutter
@KhanhFlutter 2 жыл бұрын
What a coincidence. I was totally doing the same!
@freddyoneya2286
@freddyoneya2286 2 жыл бұрын
That makes 3... 5... 10... 14 of us
@kujtimgjokaj659
@kujtimgjokaj659 2 жыл бұрын
was thinking about the same thing lately
@KhanhFlutter
@KhanhFlutter 2 жыл бұрын
We have enough people to form a club!
@Absurdified
@Absurdified 2 жыл бұрын
You are not alone buddy😃
@codegambit2507
@codegambit2507 2 жыл бұрын
I literally just wrote my own implementation of a badge yesterday. This video should have been posted sooner😩
@adimera2668
@adimera2668 2 жыл бұрын
😂
@saitaruns
@saitaruns 2 жыл бұрын
🤣🤣
@justapugontheinternet
@justapugontheinternet 2 жыл бұрын
I used to wrap the widget with a stack, and make my own "badge" and position it accordingly. This solves a lot
@UsamaKarim
@UsamaKarim 2 жыл бұрын
Always grateful of watching these videos 😌
@mahmood466
@mahmood466 2 жыл бұрын
Using Stack for this so far, has been intimidating. Happy to know about this usefull widget.
@000-way7
@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
@manifestemanifeste8148 Жыл бұрын
Great tip! You can even go further to avoid this conflict with 'import 'package:flutter/material.dart' hide Badge;'
@000-way7
@000-way7 Жыл бұрын
@@manifestemanifeste8148 Hey, thanks for the tip. This is simpler.
@CoderJava
@CoderJava 2 жыл бұрын
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. 👍👍👍
@barziyassin1
@barziyassin1 2 жыл бұрын
The magic widget. Amazing!!!
@flutterdev
@flutterdev 2 жыл бұрын
Thanks for watching, Barzy! If you enjoyed this, be sure to check out the "Package of the Week" playlist here: goo.gle/3vRHwaL
@tashijawed5472
@tashijawed5472 2 жыл бұрын
This, right here, is the most important widget in flutter history!
@henryifebunandu8
@henryifebunandu8 2 жыл бұрын
So something like this existed!!! I have been using fractional offset with stack (I think) to do this... Thank God for these videos🥺
@rizkyagungramadhan53
@rizkyagungramadhan53 2 жыл бұрын
Why using ternary operator inside showBadge parameter? Since "_voicemails > 0" itself return a boolean 😁
@valerasebafr1
@valerasebafr1 2 жыл бұрын
❤️❤️❤️ good advice
@eggzzotic
@eggzzotic 2 жыл бұрын
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(...)
@subrotoxing8214
@subrotoxing8214 2 жыл бұрын
Wow ... it's much needed widget now available immediately without copying someone's code^^
@jayasooriyas8231
@jayasooriyas8231 2 жыл бұрын
Thanks for the video, I didnt know this one, so I stacked text widget with icon and did lot to get that widget
@KhanhFlutter
@KhanhFlutter 2 жыл бұрын
Thanks for watching! :) Makes me happy to know that it helps to save you some effort!
@muralicse3637
@muralicse3637 2 жыл бұрын
Same here. I am using stack widget to get the result
@MrFibbanacci
@MrFibbanacci 2 жыл бұрын
"Go call your mother" xD I love the widged, and the little joke. ;-) Great work!
@naqeebmaqsood2970
@naqeebmaqsood2970 2 жыл бұрын
I've been using this widget from quite a while and it's really handy
@danielbouady2748
@danielbouady2748 2 жыл бұрын
thank uuuuuu FLUTTER😭😭😭
@ahsan_khan44
@ahsan_khan44 2 жыл бұрын
haha thank you that one i'm looking for. no more need to customize the container.
@KhanhFlutter
@KhanhFlutter 2 жыл бұрын
Thank you for watching! I love to hear that the video could save you a bit of effort! 😀
@ThaDataSpace101
@ThaDataSpace101 2 жыл бұрын
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!
@wvssbil
@wvssbil 2 жыл бұрын
Yeess waiting too
@KhanhFlutter
@KhanhFlutter 2 жыл бұрын
Apologies for the delay! Made sure to check with our awesome video production folks and they've confirmed it's After Effects :)
@ThaDataSpace101
@ThaDataSpace101 2 жыл бұрын
@@KhanhFlutter Ah I see, cool! And no worries! Thanks for getting back with me :)
@KhanhFlutter
@KhanhFlutter 2 жыл бұрын
@@ThaDataSpace101 Of course, it's my pleasure! :)
@vladarskopin3314
@vladarskopin3314 2 жыл бұрын
Definitely gonna use some badges in my college project. Thanks a lot!
@mohammad-karbalaee
@mohammad-karbalaee 4 ай бұрын
I just needed this
@Shakl-e
@Shakl-e 2 жыл бұрын
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.
@opikariefgame
@opikariefgame 2 жыл бұрын
Amazing! this most important to implement a notification button
@kasmonuk9557
@kasmonuk9557 2 жыл бұрын
Good idea for e-commerce carts
@Aspiiire
@Aspiiire 2 жыл бұрын
Even if you can do the same with a container it is really handy to have especially for the animation
@hydernotes
@hydernotes 2 жыл бұрын
Very good, so advanced feature! thanks for this too.
@ProbeOfTech
@ProbeOfTech 2 жыл бұрын
Awesome!!! 🙌
@hawarhekmat1174
@hawarhekmat1174 2 жыл бұрын
Colorscheme the MAGIC ✨
@autumnuniverse1940
@autumnuniverse1940 2 жыл бұрын
Finallyyyy I had to use some Circle Avatar and some Stack widgets lol
@gnrslashsp6501
@gnrslashsp6501 2 жыл бұрын
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-se3vi
@JavierGarcia-se3vi 2 жыл бұрын
Very useful, Greetings!
@fluttertutorialpoint
@fluttertutorialpoint 2 жыл бұрын
Amazing video🔥🔥🔥
@Frederic19880824
@Frederic19880824 2 жыл бұрын
Good to know we use the Badges function. #FlutterForEver
@Pedro5antos_
@Pedro5antos_ 2 жыл бұрын
Thanks!
@baadrqaaba9529
@baadrqaaba9529 2 жыл бұрын
I wish jetpack compose will get inspired by flutter team to build a developer friendly kit like flutter .
@mahmoudeslami1145
@mahmoudeslami1145 2 жыл бұрын
I wish too :D , I am starting to learn it
@alisharifian6977
@alisharifian6977 Жыл бұрын
I cant find badgeContent !? my flutter version is 3.7
@fatih1421
@fatih1421 2 жыл бұрын
can you share editable text. i need "how can i show like a text widgets". i hope u can help me.
@aozo0628
@aozo0628 2 жыл бұрын
how to change Bagde size?
@achmadirfanda
@achmadirfanda 2 жыл бұрын
I need question. how to downgrade flutter version? cause i am not supposed in lates version.
@VovanchoHBK
@VovanchoHBK 2 жыл бұрын
Wow cool 😎
@mddi1420
@mddi1420 2 жыл бұрын
Having badge on bottom navbar item would be great
@asif_imtiaz
@asif_imtiaz 2 жыл бұрын
Love it!!!
@suniljaiswal8070
@suniljaiswal8070 2 жыл бұрын
Superb 🤩
@dev_miguel
@dev_miguel 2 жыл бұрын
Brasil em peso usando Flutter!
@Kim-by5uy
@Kim-by5uy 2 жыл бұрын
Shouldn't this be a widget though. Why is it under the package series
@papyetlesresistancespapyet2622
@papyetlesresistancespapyet2622 2 жыл бұрын
What is the exact name of the package please ?
@farazkhan6886
@farazkhan6886 2 жыл бұрын
Wow, and i was doing it with stack position obx etc and it's a lot simpler now 😂
@fabiolucasdev
@fabiolucasdev 2 жыл бұрын
Very good.
@venir_dev
@venir_dev 2 жыл бұрын
Damn this is so good. It's so simple it is scary - like, where's the pitfall lol
@__renesan
@__renesan 2 жыл бұрын
gracias
@abdopower5913
@abdopower5913 2 жыл бұрын
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 😋😋
@cavalinhopocoto
@cavalinhopocoto 2 жыл бұрын
Wonderful
@orjiemmanuel6442
@orjiemmanuel6442 2 жыл бұрын
I just tried it now didnt work, asked me to create a class called badge
@KhanhFlutter
@KhanhFlutter 2 жыл бұрын
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
@autumnuniverse1940
@autumnuniverse1940 2 жыл бұрын
Thanks for this comment Now I know it is a package
@phatakom
@phatakom 2 жыл бұрын
Was gonna use a package, but got to know there's already a widget 😅
@erdemsym
@erdemsym 2 жыл бұрын
Awesome
@adisonmasih
@adisonmasih 2 жыл бұрын
11:34 PM In India. will be up all night :)
@nattawutxp
@nattawutxp 2 жыл бұрын
awesome
@Problemsolver434
@Problemsolver434 2 жыл бұрын
Good to know I don't need to use Stack
@d.koshkarev
@d.koshkarev 2 жыл бұрын
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!
@TuGordoBello
@TuGordoBello 2 жыл бұрын
Muy util
@Baraka0369
@Baraka0369 2 жыл бұрын
I swear by god I did it today but with stack ….. I’m gonna switch for badge right now
@crazy-man
@crazy-man 2 жыл бұрын
cool insted using stack with text
@lonelylove2010
@lonelylove2010 2 жыл бұрын
this is what i wan😁😁😁
@aozo0628
@aozo0628 2 жыл бұрын
dependencies: badges: ^2.0.2
@mustafashaikh7829
@mustafashaikh7829 2 жыл бұрын
Cool
@AlexKato-y7k
@AlexKato-y7k 2 жыл бұрын
in code - 9, but display - 1
@兒玉拓斗
@兒玉拓斗 2 жыл бұрын
how to ioswidget
@Omarhi51llarious4tsxdl1l
@Omarhi51llarious4tsxdl1l Жыл бұрын
দারুন
@suparlan120
@suparlan120 2 жыл бұрын
That's what I want
@nanakwame1122
@nanakwame1122 2 жыл бұрын
Finally
@takzuo
@takzuo 2 жыл бұрын
👌
@4naught456
@4naught456 2 жыл бұрын
😍🤩
@BrazilMentionedHueHue
@BrazilMentionedHueHue 2 жыл бұрын
Damn I made with stack and circle avatar
@DartMitai
@DartMitai 2 жыл бұрын
круто
@lewisndiritu378
@lewisndiritu378 2 жыл бұрын
.... now go call your mother.
@tubeasjay
@tubeasjay Ай бұрын
now go call your mother.
@EvilTim1911
@EvilTim1911 2 жыл бұрын
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
@KhanhFlutter
@KhanhFlutter 2 жыл бұрын
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_sezer
@suleyman_sezer 2 жыл бұрын
Why is the so simple? We are too tired native development.
@abdelkadersebihi1840
@abdelkadersebihi1840 2 жыл бұрын
My mom is dead
@arjun1194
@arjun1194 2 жыл бұрын
ah yes! make useless simple widgets anyone can make, when there is still no official library for background processing
@yocheeseify
@yocheeseify 2 жыл бұрын
background processing? Can't you do that with a Future?
@hunterwilhelm
@hunterwilhelm 2 жыл бұрын
@@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.
@arjun1194
@arjun1194 2 жыл бұрын
Background processing, not concurrency and paralellism, im talking about background as in services in android
@autumnuniverse1940
@autumnuniverse1940 2 жыл бұрын
Bruh
get_it (Package of the Week)
1:21
Flutter
Рет қаралды 135 М.
Building your first Flutter App - with a Codelab!
1:32:05
Flutter
Рет қаралды 851 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
Что-что Мурсдей говорит? 💭 #симбочка #симба #мурсдей
00:19
coco在求救? #小丑 #天使 #shorts
00:29
好人小丑
Рет қаралды 120 МЛН
How LG Electronics uses #FlutterInProduction
2:20
Flutter
Рет қаралды 1,7 М.
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 4,1 МЛН
Crafting amazing user experiences with #FlutterInProduction
8:33
Why Does Diffusion Work Better than Auto-Regression?
20:18
Algorithmic Simplicity
Рет қаралды 400 М.
Delivering great performance with #FlutterInProduction
8:01
Flutter
Рет қаралды 3,7 М.
Build immersive apps & experiences with OpenXR & Unity
21:08
Android Developers
Рет қаралды 1,2 М.
Top 10 Widgets every Flutter Developer should know!
17:17
RetroPortal Studio
Рет қаралды 283 М.
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН