This media is not supported in your browser
VIEW IN TELEGRAM
Animate SliverAppBar's widgets when scrolling.
https://github.com/thanhle1547/animated_sliverappbar_widgets
https://github.com/thanhle1547/animated_sliverappbar_widgets
Forwarded from IranCoderz (Farid Ghaderi)
Media is too big
VIEW IN TELEGRAM
ویندوز 11 رو مشاهده میکنید که با کمک WSL، به بهترین شکل ممکن برنامههای گرافیکی لینوکس رو اجرا میکنه
مایکروسافت❤️🤝لینوکس
https://www.youtube.com/watch?v=b1YBx1L8op4
🆔 @IranCoderz | 👩💻🧑💻
مایکروسافت❤️🤝لینوکس
https://www.youtube.com/watch?v=b1YBx1L8op4
🆔 @IranCoderz | 👩💻🧑💻
Forwarded from Flutter | فلاتر (Hossein.A)
خیلی از بچه ها دیده بودم توی گروه سوال میکنن راجب اینکه توی باتم نویگیشن نویگیت کنیم به صفحه جدید ولی همچنان باتم نویگیشن رو باز توی صفحه جدید داشته باشیم... هندل کردن این داستان پیچدگی های خاص خودش و راه حل های زیادی داره ولی توی همه موارد بالاخره ساده ترین راه حل بدون نیاز به هیچ پکیج اضافی و با کمترین پیچیدگی رو پیدا کردم و گفتم لینکشو اینجا بزارم که اگر کسی نیازش شد استفاده کنه.
(ی چیزم توی پرانتز بگم که سعی کنید موارد و چالش هایی که براتون پیش میاد با کمترین کد و البته ساده حل کنید، دنبالش باشید که راه حل ساده پیدا بشه ؛)
https://medium.com/@Mr_Pepe/nested-navigation-with-a-bottom-navigation-bar-using-flutter-d3c5086fbcdc
(ی چیزم توی پرانتز بگم که سعی کنید موارد و چالش هایی که براتون پیش میاد با کمترین کد و البته ساده حل کنید، دنبالش باشید که راه حل ساده پیدا بشه ؛)
https://medium.com/@Mr_Pepe/nested-navigation-with-a-bottom-navigation-bar-using-flutter-d3c5086fbcdc
Medium
Nested navigation with a bottom navigation bar using Flutter
Learn how to avoid pitfalls when implementing bottom navigation in your Flutter app
Forwarded from Pavel Durov
🎂 As I am turning 37, I put together a list of 3 undervalued and 7 overvalued things in life.
3️⃣ Undervalued
1. Sleep. Sleep gives a boost to immunity, creativity and psychological well-being.
2. Nature. Nature is the environment that we are biologically designed to feel good in.
3. Solitude. Being alone offers the freedom to make spiritual and intellectual breakthroughs.
7️⃣ Overvalued
1. Big cities. Big cities are sources of pollution, crime and noise. It's good to have access to their resources, but advisable to live outside their borders.
2. Restaurants. Restaurants offer the slowest and least efficient way to eat. Cooking at home allows for healthier diets and more control over ingredients.
3. Hot weather. Sunny weather can bring about not only a lax attitude, but also a risk of cancer and faster aging. Colder temperatures, on the contrary, clarify spirit, body and mind.
4. Fashion. The endless quest to conform with ever-changing trends is expensive and unnecessary. Focusing on comfortable clothes makes life simpler and frees space for things that matter.
5. Real estate. Buying real estate often limits one's choices and is a questionable investment. Renting gives more freedom to move and explore different locations.
6. Social media. The incessant flow of junk cluttering our minds from social media decreases our happiness and creativity. Disconnecting from these internet services is the best thing we can do on any given day.
7. Celebrity advice. Famous people often give unwarranted advice outside their fields of expertise. For all important things in life, it's best to rely on hard science and expert opinion.
3️⃣ Undervalued
1. Sleep. Sleep gives a boost to immunity, creativity and psychological well-being.
2. Nature. Nature is the environment that we are biologically designed to feel good in.
3. Solitude. Being alone offers the freedom to make spiritual and intellectual breakthroughs.
7️⃣ Overvalued
1. Big cities. Big cities are sources of pollution, crime and noise. It's good to have access to their resources, but advisable to live outside their borders.
2. Restaurants. Restaurants offer the slowest and least efficient way to eat. Cooking at home allows for healthier diets and more control over ingredients.
3. Hot weather. Sunny weather can bring about not only a lax attitude, but also a risk of cancer and faster aging. Colder temperatures, on the contrary, clarify spirit, body and mind.
4. Fashion. The endless quest to conform with ever-changing trends is expensive and unnecessary. Focusing on comfortable clothes makes life simpler and frees space for things that matter.
5. Real estate. Buying real estate often limits one's choices and is a questionable investment. Renting gives more freedom to move and explore different locations.
6. Social media. The incessant flow of junk cluttering our minds from social media decreases our happiness and creativity. Disconnecting from these internet services is the best thing we can do on any given day.
7. Celebrity advice. Famous people often give unwarranted advice outside their fields of expertise. For all important things in life, it's best to rely on hard science and expert opinion.
Forwarded from Pure Coder
⚡️⚡️یه نکته ⚡️⚡️
🔥توی هر function کدهای بعد از return اجرا نمیشن.
String getName() {
return 'mohammad';
}
🤔🤔حالا اگه یه موقعی خواستیم یه کدی بعد از return بنویسیم و اجرا شه باید چکار کنیم؟
😍با یک ترفند خیلی ساده.
String getName() {
try{
return 'Mohammad';
}finally{
print('something') ;
}
}
🔥از بلوک try... finaly استفاده میکنیم
کد های اصلی رو داخل try مینویسیم و return رو هم همون جا قرار میدیم و کدهایی که میخایم بعد return اجرا شن رو توی بلوک finaly میگذاریم 🤪
🔥توی هر function کدهای بعد از return اجرا نمیشن.
String getName() {
return 'mohammad';
}
🤔🤔حالا اگه یه موقعی خواستیم یه کدی بعد از return بنویسیم و اجرا شه باید چکار کنیم؟
😍با یک ترفند خیلی ساده.
String getName() {
try{
return 'Mohammad';
}finally{
print('something') ;
}
}
🔥از بلوک try... finaly استفاده میکنیم
کد های اصلی رو داخل try مینویسیم و return رو هم همون جا قرار میدیم و کدهایی که میخایم بعد return اجرا شن رو توی بلوک finaly میگذاریم 🤪
Forwarded from IranCoderz (Farid Ghaderi)
آپدیت 1.61 VS Code یکی از قابلیتهای خوبی که اضافه کرده، Bracket pair guides هستش که کار اکستنشنهایی مثل Bracket pair colorizer رو انجام میده و دیگه نیازی به اونها ندارید. به گفته خود مایکروسافت، الگوریتمهای به کار برده شده تو این قابلیت 10,000 برابر سریعتر از بقیه اکستنشنها هست.
برای فعال کردنش کافیه تو settings.json برنامه، مقدار editor.guides.bracketPairs رو برابر true قرار بدید.
https://code.visualstudio.com/updates/v1_61
🆔 @IranCoderz | 👩💻🧑💻
برای فعال کردنش کافیه تو settings.json برنامه، مقدار editor.guides.bracketPairs رو برابر true قرار بدید.
https://code.visualstudio.com/updates/v1_61
🆔 @IranCoderz | 👩💻🧑💻
Forwarded from آموزش برنامه نویسی فلاتر Flutter
▪️ از امروز محیط توسعه آنلاین DartPad از bloc و flutter_bloc پشتیبانی میکنه و میتونید بدون مشکل استفاده کنید
⚜️اولین مرجع فارسی فلاتر @flutter_learn_ir
⚜️اولین مرجع فارسی فلاتر @flutter_learn_ir
Forwarded from Pure Coder
⚡️⚡️Function⚡️⚡️
1⃣
🔥توی دارت هر function خودش یه آبجکت به حساب میاد.
یعنی چی؟
✅یعنی دقیقن مثل وقتی که یک کلاس داریم و از اون کلاس یه آبجکت (نمونه /شی) میسازیم :
class User{}
var user = User() ;
یا وقتی که به عدد صحیح تعریف میکنیم :
int a = 2;
و a یه ابجکت از کلاس int به حساب میاد.
دقیقن همین اتفاق هم برای function ها میوفته.
🔥توی دارت یه کلاس داریم به اسم
Function
همه function هایی که میسازیم یه ابجکت (نمونه) از این کلاس به حساب میان.
void myFunc() {}
print(myFunc is Function) //true
🔥پس وقتی که یه function مینویسیم، دارت واسمون یه ابجکت جدید از کلاس Function ایجاد میکنه و اسمی که ما برای اون function گذاشتیم مثل اسم یه متغیر هست (که یه رفرنس از اون ابجکت توی حافظه هست)
پس توی مثال بالا یه ابجکت از کلاس Function ایجاد میشه و myFunc یه متغیری هست که رفرنس اون ابجکت رو نگه میداره (دقیقن مثل قضیه کلاس ها)
#function
1⃣
🔥توی دارت هر function خودش یه آبجکت به حساب میاد.
یعنی چی؟
✅یعنی دقیقن مثل وقتی که یک کلاس داریم و از اون کلاس یه آبجکت (نمونه /شی) میسازیم :
class User{}
var user = User() ;
یا وقتی که به عدد صحیح تعریف میکنیم :
int a = 2;
و a یه ابجکت از کلاس int به حساب میاد.
دقیقن همین اتفاق هم برای function ها میوفته.
🔥توی دارت یه کلاس داریم به اسم
Function
همه function هایی که میسازیم یه ابجکت (نمونه) از این کلاس به حساب میان.
void myFunc() {}
print(myFunc is Function) //true
🔥پس وقتی که یه function مینویسیم، دارت واسمون یه ابجکت جدید از کلاس Function ایجاد میکنه و اسمی که ما برای اون function گذاشتیم مثل اسم یه متغیر هست (که یه رفرنس از اون ابجکت توی حافظه هست)
پس توی مثال بالا یه ابجکت از کلاس Function ایجاد میشه و myFunc یه متغیری هست که رفرنس اون ابجکت رو نگه میداره (دقیقن مثل قضیه کلاس ها)
#function
A fully-functional video streaming app made in Flutter using Custom Nodejs backend
https://github.com/Hritik-Chaurasia/Lavender
https://github.com/Hritik-Chaurasia/Lavender
Pure Coder
⚡️⚡️Function⚡️⚡️ 1⃣ 🔥توی دارت هر function خودش یه آبجکت به حساب میاد. یعنی چی؟ ✅یعنی دقیقن مثل وقتی که یک کلاس داریم و از اون کلاس یه آبجکت (نمونه /شی) میسازیم : class User{} var user = User() ; یا وقتی که به عدد صحیح تعریف میکنیم : int a = 2; و a یه…
جوین شید تو این چنل عه 😐
https://t.me/flutter_challenges
https://t.me/flutter_challenges
Build your first API with Dart | Dart server with gRPC Complete course 2021
https://github.com/Santos-Enoque/dart-grpc-server-course
https://www.youtube.com/watch?v=DzelfUzjVMk
https://github.com/Santos-Enoque/dart-grpc-server-course
https://www.youtube.com/watch?v=DzelfUzjVMk
Style: Incoming backend framework project for Dart
https://medium.com/@mehmet_76940/style-incoming-backend-framework-for-dart-d544bdb78a36?source=email-4bcbe0699430-1633993638159-digest.reader-5b301f10ddcd-d544bdb78a36----0-58------------------461c6dca_119f_44d1_8d23_1f13abf9cb26-1-8a1de519_3c49_416b_92ac_a1588def8c08
https://medium.com/@mehmet_76940/style-incoming-backend-framework-for-dart-d544bdb78a36?source=email-4bcbe0699430-1633993638159-digest.reader-5b301f10ddcd-d544bdb78a36----0-58------------------461c6dca_119f_44d1_8d23_1f13abf9cb26-1-8a1de519_3c49_416b_92ac_a1588def8c08
Forwarded from DevTwitter | توییت برنامه نویسی
یک اشتباه متداول در بین برنامه نویس ها این هست که به در تمام زبان ها با یک سبک کد میزن.
به این معنا که اگر فرد اولین زبان برنامه نویسی که یاد گرفته باشد جاوا یا... باشد
در زبان بعدی برای مثال پایتون یا همان طرز فکر کد میزند!
یادگیری یک زبان جدید چیزی فراتر از یادگیری سیتکس جدید هست :)
هر زبان برنامه نویسی برای هدفی به وجود اومده و سبک و ساختار مخصوص خود را دارد.
نحوه نام گذاری متغییر ها از هر زبان به زبان دیگر میتواند متفاوت باشد و حتی این نام گذاری ها روی معنا و رفتار نیز متاثر هستن.
برای مثال در زبان go ما اگر متغییر (یا اسم تابع) رو با حروف بزرگ شروع کنیم باعث میشود از خارج از Package اش بهش دسترسی داشته باشیم درحالی که اگر با حروف کوچک شروع شود از خارج از پکیج به آن دسترسی نداریم .
حتی قوائد و ساختار چیدمان کد در هر زبان متفاوت هست.
پس بهتر است قبل از شروع به کد نویسی در زبان جدید برای جلوگیری از ایجاد کد های بی کیفیت ابتدا چند نمونه پروژه OpenSource خوب از زبان مطالعه کنیم.
@DevTwitter | <MAHDI AKBARI/>
به این معنا که اگر فرد اولین زبان برنامه نویسی که یاد گرفته باشد جاوا یا... باشد
در زبان بعدی برای مثال پایتون یا همان طرز فکر کد میزند!
یادگیری یک زبان جدید چیزی فراتر از یادگیری سیتکس جدید هست :)
هر زبان برنامه نویسی برای هدفی به وجود اومده و سبک و ساختار مخصوص خود را دارد.
نحوه نام گذاری متغییر ها از هر زبان به زبان دیگر میتواند متفاوت باشد و حتی این نام گذاری ها روی معنا و رفتار نیز متاثر هستن.
برای مثال در زبان go ما اگر متغییر (یا اسم تابع) رو با حروف بزرگ شروع کنیم باعث میشود از خارج از Package اش بهش دسترسی داشته باشیم درحالی که اگر با حروف کوچک شروع شود از خارج از پکیج به آن دسترسی نداریم .
حتی قوائد و ساختار چیدمان کد در هر زبان متفاوت هست.
پس بهتر است قبل از شروع به کد نویسی در زبان جدید برای جلوگیری از ایجاد کد های بی کیفیت ابتدا چند نمونه پروژه OpenSource خوب از زبان مطالعه کنیم.
@DevTwitter | <MAHDI AKBARI/>
This media is not supported in your browser
VIEW IN TELEGRAM
Animated Segmented Tab Control
A customizable segment tab control. Can be used with or without TabView.
https://pub.dev/packages/animated_segmented_tab_control
A customizable segment tab control. Can be used with or without TabView.
https://pub.dev/packages/animated_segmented_tab_control