Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
New post on /r/flutterdev subreddit:

Tell me why would I have to use a third party package to handle the state
Don't get me wrong, I'm not challenging anyone, it's just that I've heard of so many libraries to handle the state that so far I don't find them very useful, they contaminate the code at the end it seems that you weren't coding for Flutter.
// Global App State class AppState extends ChangeNotifier { AppState(); bool _isInitializing = true; User user; // ..... } // Use this to manipulate state to prevent rebuilds. class AppScope extends InheritedWidget { const AppScope({ Key? key, required this.state, required this.service, required Widget child, }) : super(key: key, child: child); final AppState state; final AppService service; static AppScope of(BuildContext context) { final result = context.dependOnInheritedWidgetOfExactType<AppScope>(); assert(result != null, 'No AppScope found in context'); return result!; } @override bool updateShouldNotify(AppScope oldWidget) => false; } // If I need an updated reference, every time the state changes I can get the last value class AppNotifier extends InheritedWidget<AppState> { const AppNotifier({ Key? key, AppState? notifier, required Widget child, }) : super(key: key, child: child, notifier: notifier); static AppState of(BuildContext context) { final result = context.dependOnInheritedWidgetOfExactType<AppNotifier>(); assert(result != null, 'No AppNotifier found in context'); return result!.notifier!; } } 


January 24, 2022 at 07:36PM by andrefedev
https://ift.tt/3ogc2Yf
New post on /r/flutterdev subreddit:

How to increase app speed
I'm new to Mobile app development and I created my first app. It's just a simple app that basically just fetches data from my WordPress blog. Currently, I'm hosting my WordPress blog on Hostinger and paying Web Hosting Premium plan (https://www.hostinger.com/pricing)Let's say I release the app on App Store and play store and got a lot of Users. I heard that when there are a lot of users using the app at the same time, the data might be slow and it might crash the app so I'm just wondering how to prevent that or handle it immediately when it happens in the future.If data is taking too long to load on the app for every user then, can I just go to Hostinger and upgrade a plan?. Do you know if this going to fix this kind of issue?I'm just wondering what kind of scenario should I be expecting to happen and how to be ready to fix those kind of issue.

January 24, 2022 at 11:42PM by aase_nomad
https://ift.tt/347GAUs
New post on /r/flutterdev subreddit:

Ashlar Code Editor - made with Flutter
Announcement: Ashlar Code - an editor made with Flutter. Compatible with most Visual Studio Code textmate-based syntax or language grammars and themes.Please support the Android app. It has basic GIT integration with SFTP coming next.https://play.google.com/store/apps/details?id=com.munchyapps.ashlarFree versions are available. Opensource variants of the app are also available:https://github.com/icedman/ashlar-code/Some nice features:Minimap - which make a lot of sense in mobile devices.Multi-Cursor editingUses Flutter API - with heavy Native::FFI. Uses no webkit, no electron, or cordova.Can open sqlite3.c (200K lines of code)

January 25, 2022 at 11:34AM by 1cedm4n
https://ift.tt/3IENwrt
New post on /r/flutterdev subreddit:

Flutter Challenges: Challenge 04
https://ift.tt/3AvvwwI

January 25, 2022 at 02:04PM by __RGgt__
https://ift.tt/3Atcfw1
New post on /r/flutterdev subreddit:

How to use Flutter feature flags to release a feature without risk [with open source tools]
https://ift.tt/3qV1yPv

January 25, 2022 at 02:52PM by dabeeeenster
https://ift.tt/3nWlG1K
New post on /r/flutterdev subreddit:

What you wish you have known when you staretd learning flutter/started working with flutter?
I am curious for advice from experienced developers.

January 25, 2022 at 09:54PM by veenliege
https://ift.tt/3rTimpi
New post on /r/flutterdev subreddit:

best flutter course to do with my girlfriend?
Hello everyone, do you have any course that you recommend (free or paid)? to complete with my girlfriend, before the pandemic I finished angela yu's course and since I haven't used flutter for a long time, I have no problem starting over (from 0) since the important thing here is for my girlfriend to learn something new ( since she comes from pure university study of computer science and wants to take her first online course), she would prefer a fairly new course that is not outdated. maybe with flutter 2.5 . Btw don't suggest me the amazing flutter documentation since it's not fun to do it with my girlfriend.

January 25, 2022 at 11:06PM by EmmaNoodle98
https://ift.tt/3tYxGni