Forwarded from IranCoderz (Farid Ghaderi)
Create Responsive Flutter Apps with Minimal Effort
https://resocoder.com/2021/10/03/create-responsive-flutter-apps-with-minimal-effort/
https://www.youtube.com/watch?v=bXwK1Lrfihw
https://resocoder.com/2021/10/03/create-responsive-flutter-apps-with-minimal-effort/
https://www.youtube.com/watch?v=bXwK1Lrfihw
Reso Coder
Create Responsive Flutter Apps with Minimal Effort - Reso Coder
The biggest appeal of Flutter is being able to create apps that can run on multiple devices with just a single codebase. With the stable release of Flutter for the web, the apps you create become even more accessible.Even though the apps you create will run…
Search Bar in Flutter – Logic & Material UI
https://resocoder.com/2021/01/23/search-bar-in-flutter-logic-material-ui/
https://youtu.be/26aYqtOTRU4
https://resocoder.com/2021/01/23/search-bar-in-flutter-logic-material-ui/
https://youtu.be/26aYqtOTRU4
Reso Coder
Search Bar in Flutter – Logic & Material UI - Reso Coder
Searching through all kinds of various content in your Flutter app is something you'll likely have to implement one day. A successful search implementation needs basically two things - a usable search history and also the search bar widget. Now, we're going…
Pavel Durov
صاحاب تلگرام میگه دیروز 70 میلیون کاربر جدید وارد تلگرام شدن! 😳
عاشق مدیریت این تیمم 😍
https://t.me/durov/170
صاحاب تلگرام میگه دیروز 70 میلیون کاربر جدید وارد تلگرام شدن! 😳
عاشق مدیریت این تیمم 😍
https://t.me/durov/170
Telegram
Pavel Durov
Yesterday Telegram experienced a record increase in user registration and activity.
The daily growth rate of Telegram exceeded the norm by an order of magnitude, and we welcomed over 70 million refugees from other platforms in one day. I am proud of how…
The daily growth rate of Telegram exceeded the norm by an order of magnitude, and we welcomed over 70 million refugees from other platforms in one day. I am proud of how…
Forwarded from Pure Coder
⚡️⚡️InheritedWidget⚡️⚡️
2⃣
وقتی که از stateful استفاده میکینم بعد از setState فقط متد build کلاس state یک بار دیگه اجرا میشه و باعث میشه که کل درختی که زیر مجموعه اون هست یک بار دیگه ساخته و کانفیگ بشه.
🔥ولی قابلیتی که inheritedWidget ارائه میده این هست که با استفاده از اون میشه هر قسمت دلخواهی از درخت رو که خواستیم (به صورت دقیق تر هر قسمت درخت که به inheritedWidget مربوطه وابسته بود) آپدیت (rebuild) کنیم.
✅برای این منظور یک InheritedWidget در راس درخت مورد نظر قرار میگیره.
از اونجایی که InheritedWidget یک پروکسی هست یک ویجت به عنوان child میگیره و با اون child زیر درخت اون ساخته میشه.
علاوه بر اون یک سری data هم میتونه داشته باشه و ویجت های زیر مجموعه با استفاده از دستور
widgetName.of(context)
میتونن به اون دیتا که داخل inheritedWidget هست دسترسی پیدا کنن.
🔥حالا نکته مهم اینجاست که هر موقع که inheritedWidget مربوطه اپدیت بشه و دیتاش تغییر کنه هر ویجتی که توی زیر درختش با استفاده از متد
.of
بهش وابسته شده باشه rebuild میشه و ویجت هایی که بهش وابسته نشدن rebuild نمیشن.
😍😍یعنی یک rebuild کاملن هوشمند.
🔥فقط اون هایی که بهش وابسته شدن rebuild میشن.
#inherited_widget
#widgets
2⃣
وقتی که از stateful استفاده میکینم بعد از setState فقط متد build کلاس state یک بار دیگه اجرا میشه و باعث میشه که کل درختی که زیر مجموعه اون هست یک بار دیگه ساخته و کانفیگ بشه.
🔥ولی قابلیتی که inheritedWidget ارائه میده این هست که با استفاده از اون میشه هر قسمت دلخواهی از درخت رو که خواستیم (به صورت دقیق تر هر قسمت درخت که به inheritedWidget مربوطه وابسته بود) آپدیت (rebuild) کنیم.
✅برای این منظور یک InheritedWidget در راس درخت مورد نظر قرار میگیره.
از اونجایی که InheritedWidget یک پروکسی هست یک ویجت به عنوان child میگیره و با اون child زیر درخت اون ساخته میشه.
علاوه بر اون یک سری data هم میتونه داشته باشه و ویجت های زیر مجموعه با استفاده از دستور
widgetName.of(context)
میتونن به اون دیتا که داخل inheritedWidget هست دسترسی پیدا کنن.
🔥حالا نکته مهم اینجاست که هر موقع که inheritedWidget مربوطه اپدیت بشه و دیتاش تغییر کنه هر ویجتی که توی زیر درختش با استفاده از متد
.of
بهش وابسته شده باشه rebuild میشه و ویجت هایی که بهش وابسته نشدن rebuild نمیشن.
😍😍یعنی یک rebuild کاملن هوشمند.
🔥فقط اون هایی که بهش وابسته شدن rebuild میشن.
#inherited_widget
#widgets
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