New post on /r/flutterdev subreddit:
BLoC users, how do you scope your blocs ?
I have been using BLoC for more than 2 years on side projects, but I never used it in a real professional project, how do you scope your BLoC logic ? Do you scope that per use case, per page or per widget ? Something else ?Iβm really curious and Iβm always hesitant when starting a new project, I have a Android background with a strong experience of MVVM and MVP using the Clean Architecture principles as much as I can.Usually my ViewModels or my Presenters are scoped based on the page (screen) purpose, so it includes everything needed for that page and it exposes 1 or a few ViewStates (depending on the layout and fragments structure).If I create feature scoped blocs, I start to do over engineering while trying to make it as reusable as I can, if I do page scoped blocs, it becomes heavy and hard to manage.Any advice or experience is welcome :)View Poll
November 08, 2021 at 10:28PM by New-Muffin-5863
https://ift.tt/3o9thcP
BLoC users, how do you scope your blocs ?
I have been using BLoC for more than 2 years on side projects, but I never used it in a real professional project, how do you scope your BLoC logic ? Do you scope that per use case, per page or per widget ? Something else ?Iβm really curious and Iβm always hesitant when starting a new project, I have a Android background with a strong experience of MVVM and MVP using the Clean Architecture principles as much as I can.Usually my ViewModels or my Presenters are scoped based on the page (screen) purpose, so it includes everything needed for that page and it exposes 1 or a few ViewStates (depending on the layout and fragments structure).If I create feature scoped blocs, I start to do over engineering while trying to make it as reusable as I can, if I do page scoped blocs, it becomes heavy and hard to manage.Any advice or experience is welcome :)View Poll
November 08, 2021 at 10:28PM by New-Muffin-5863
https://ift.tt/3o9thcP
New post on /r/flutterdev subreddit:
Coming back from a long break, what have I missed?
Hi! I've taken a break from flutter app development for about a year and a half, before null safety was introduced. Starting to develop apps again. What are some of the cool new features been added since I've been away?
November 08, 2021 at 11:33PM by Potat0Sa1ad
https://ift.tt/3khx5r8
Coming back from a long break, what have I missed?
Hi! I've taken a break from flutter app development for about a year and a half, before null safety was introduced. Starting to develop apps again. What are some of the cool new features been added since I've been away?
November 08, 2021 at 11:33PM by Potat0Sa1ad
https://ift.tt/3khx5r8
reddit
Coming back from a long break, what have I missed?
Hi! I've taken a break from flutter app development for about a year and a half, before null safety was introduced. Starting to develop apps...
New post on /r/flutterdev subreddit:
New `SharedAppData` widget
Looking through Flutter's commit messages, I noticed that a new widget was added to Flutter master which allows to easily share data between widgets. In this respect, it is similar to the hundreds of other state management libraries.Here's a simple example using the widget. By default, the MaterialApp already provides a SharedAppData scope to the context. Descendants of that widget can then share data identified by some key. I chose the class object Counter in my example. The getValue call will automatically register the provided context as a dependency and therefore a rebuild is trigged if the value is changed.
November 08, 2021 at 11:25PM by eibaan
https://ift.tt/303tLsZ
New `SharedAppData` widget
Looking through Flutter's commit messages, I noticed that a new widget was added to Flutter master which allows to easily share data between widgets. In this respect, it is similar to the hundreds of other state management libraries.Here's a simple example using the widget. By default, the MaterialApp already provides a SharedAppData scope to the context. Descendants of that widget can then share data identified by some key. I chose the class object Counter in my example. The getValue call will automatically register the provided context as a dependency and therefore a rebuild is trigged if the value is changed.
class Counter extends StatelessWidget { const Counter({Key? key}) : super(key: key); @override Widget build(BuildContext context) { final count = SharedAppData.getValue(context, Counter, () => 0); return Scaffold( body: Center(child: Text('$count')), floatingActionButton: FloatingActionButton( onPressed: () => SharedAppData.setValue(context, Counter, count + 1), ), ); } }Of course, it is possible to wrap that method calls to abstract the key into something that looks like a "Provider". Here is my 3 minutes adhoc "framework":
class Provider<T> { Provider(this.create); final T Function() create; T watch(BuildContext context) => SharedAppData.getValue(context, this, create); void Function(BuildContext) set(T value) => (context) => SharedAppData.setValue(context, this, value); void Function(BuildContext) update(T Function(T) update) => (context) => set(update(watch(context))); } final counterProvider = Provider(() => 0);The build method now looks a bit nicer:
Widget build(BuildContext context) { return Scaffold( body: Center(child: Text('${counterProvider.watch(context)}')), floatingActionButton: FloatingActionButton( onPressed: () => counterProvider.update(increment)(context), ), ); }The new widget isn't a solution for everything but a nice addition and enough for small and medium sized application, I think. Notice that the above approach isn't as efficient as provider or riverpod would be, but it doesn't need external libraries and might be good enough.
November 08, 2021 at 11:25PM by eibaan
https://ift.tt/303tLsZ
reddit
New `SharedAppData` widget
Looking through Flutter's commit messages, I noticed that a new widget was added to Flutter `master` which allows to easily share data between...
New post on /r/flutterdev subreddit:
What underlying windowing library or framework does Flutter use?
GLFW, wxWidgets, GTK, SDL, QT, something else?Any pointers to the implementation?
November 09, 2021 at 02:52AM by bmitc
https://ift.tt/3D0mWGD
What underlying windowing library or framework does Flutter use?
GLFW, wxWidgets, GTK, SDL, QT, something else?Any pointers to the implementation?
November 09, 2021 at 02:52AM by bmitc
https://ift.tt/3D0mWGD
reddit
What underlying windowing library or framework does Flutter use?
GLFW, wxWidgets, GTK, SDL, QT, something else? Any pointers to the implementation?
New post on /r/flutterdev subreddit:
How do you handle errors?
I recently started to work with flutter and in the last days I struggled a lot to find some information about handling errors and displaying messages to users.I am right now using riverpod with statenotifier and I was thinking a good way to do it is to create some intermediate state classes like StateInit, StateLoading, StateSuccess, StateError and in every screen to check the state instance and render a widget accordingly, but it is getting pretty repetitive since I want to display the same error type or loading, but with different messages.Anyway, how do you handle your app errors?
November 09, 2021 at 12:14PM by Exorcistoo
https://ift.tt/3bW75gA
How do you handle errors?
I recently started to work with flutter and in the last days I struggled a lot to find some information about handling errors and displaying messages to users.I am right now using riverpod with statenotifier and I was thinking a good way to do it is to create some intermediate state classes like StateInit, StateLoading, StateSuccess, StateError and in every screen to check the state instance and render a widget accordingly, but it is getting pretty repetitive since I want to display the same error type or loading, but with different messages.Anyway, how do you handle your app errors?
November 09, 2021 at 12:14PM by Exorcistoo
https://ift.tt/3bW75gA
reddit
How do you handle errors?
I recently started to work with flutter and in the last days I struggled a lot to find some information about handling errors and displaying...
New post on /r/flutterdev subreddit:
Pro Tip: enableDithering property
My gradients weren't looking smooth, so i googled it and came across this stackoverflow answer: https://stackoverflow.com/a/64807773/13972151It made my gradients way more smooth, color stops are way less visible now. I saw that this property isn't mentioned much; so i thought it could be useful to some.
November 09, 2021 at 05:50PM by ercantomac
https://ift.tt/3qnrJ1h
Pro Tip: enableDithering property
My gradients weren't looking smooth, so i googled it and came across this stackoverflow answer: https://stackoverflow.com/a/64807773/13972151It made my gradients way more smooth, color stops are way less visible now. I saw that this property isn't mentioned much; so i thought it could be useful to some.
November 09, 2021 at 05:50PM by ercantomac
https://ift.tt/3qnrJ1h
Stack Overflow
Flutter - Smooth transition color for LinearGradient
Hellow!
Is there a solution for creating a LinearGradient that has a smooth transition between start and ens color?
new Container(
decoration: new BoxDecoration(
gradient: new
Is there a solution for creating a LinearGradient that has a smooth transition between start and ens color?
new Container(
decoration: new BoxDecoration(
gradient: new
New post on /r/flutterdev subreddit:
HTTP GET and POST are very slow in IOS compared to Android
I recently knew about a problem in Flutter in IOS physical devices, which is mainly (HTTP GET and POST are very slow in IOS compared to android) I'm starting a project that depends heavily on the back-end, so I'd like to hear from people having the same case and went to production. Do you have this issue? Is it fixed in Flutter 2.5?
November 09, 2021 at 05:41PM by Own-Fact-778
https://ift.tt/3kmyHjs
HTTP GET and POST are very slow in IOS compared to Android
I recently knew about a problem in Flutter in IOS physical devices, which is mainly (HTTP GET and POST are very slow in IOS compared to android) I'm starting a project that depends heavily on the back-end, so I'd like to hear from people having the same case and went to production. Do you have this issue? Is it fixed in Flutter 2.5?
November 09, 2021 at 05:41PM by Own-Fact-778
https://ift.tt/3kmyHjs
reddit
HTTP GET and POST are very slow in IOS compared to Android
A subreddit for Google's portable UI framework.
New tweet from FlutterDev:
π¦ Chapter 5: Pop Quiz! Which of the following widgets is essentially a Column or Row that can scroll? #flutterapprenticeβ Flutter (@FlutterDev) Nov 9, 2021
November 09, 2021 at 06:05PM
https://twitter.com/FlutterDev/status/1458118663710466048
π¦ Chapter 5: Pop Quiz! Which of the following widgets is essentially a Column or Row that can scroll? #flutterapprenticeβ Flutter (@FlutterDev) Nov 9, 2021
November 09, 2021 at 06:05PM
https://twitter.com/FlutterDev/status/1458118663710466048
Twitter
Flutter
π¦ Chapter 5: Pop Quiz! Which of the following widgets is essentially a Column or Row that can scroll? #flutterapprentice
New post on /r/flutterdev subreddit:
Top 5 Hybrid App Frameworks To Consider In 2021-2022
https://ift.tt/30cqhEg
November 09, 2021 at 06:57PM by iwsstechnolab
https://ift.tt/3mYLlqz
Top 5 Hybrid App Frameworks To Consider In 2021-2022
https://ift.tt/30cqhEg
November 09, 2021 at 06:57PM by iwsstechnolab
https://ift.tt/3mYLlqz
IWSS
Use Any Of These 5 Hybrid Mobile App Frameworks To Build Multiple Apps At Once
Want To Choose The Best Hybrid App Frameworks? Check These Top 5 Hybrid Frameworks like React Native, Flutter, Ionic,, Xamarin, PhoneGap.
New post on /r/flutterdev subreddit:
Actual State of the Art of Flutter framework
I would like what is the state of the art framework written in dart for flutter. In particular, there is currently a framework that speeds up the development of the flutter app for many platforms?βThanks
November 09, 2021 at 08:07PM by crazyjoker96
https://ift.tt/3EXeTLt
Actual State of the Art of Flutter framework
I would like what is the state of the art framework written in dart for flutter. In particular, there is currently a framework that speeds up the development of the flutter app for many platforms?βThanks
November 09, 2021 at 08:07PM by crazyjoker96
https://ift.tt/3EXeTLt
reddit
Actual State of the Art of Flutter framework
A subreddit for Google's portable UI framework.
New post on /r/flutterdev subreddit:
I was trying to use withConverter firestore to display data. It display nothing
Is it just me or you guys facing it tooo??
November 09, 2021 at 09:35PM by redHero0010
https://ift.tt/3wDdvKX
I was trying to use withConverter firestore to display data. It display nothing
Is it just me or you guys facing it tooo??
November 09, 2021 at 09:35PM by redHero0010
https://ift.tt/3wDdvKX
reddit
I was trying to use withConverter firestore to display data. It...
A subreddit for Google's portable UI framework.
New post on /r/flutterdev subreddit:
What are common practices in Flutter
Atm, I'm one month into Flutter and as stated in the title, I would like to know, what are the best or common practices in Flutter regarding things like the project structure, files naming, placing widgets as functions etc. Also how do you decide if u want to use stateless or statefull widget. How do you decide when to extract a widget to a separate file and inject/import it where & when needed.I haven't really watched any tutorials or taken any courses when learning Flutter, I mostly followed Flutter documentation as much as I could.
November 09, 2021 at 11:05PM by donzavo
https://ift.tt/3H3parg
What are common practices in Flutter
Atm, I'm one month into Flutter and as stated in the title, I would like to know, what are the best or common practices in Flutter regarding things like the project structure, files naming, placing widgets as functions etc. Also how do you decide if u want to use stateless or statefull widget. How do you decide when to extract a widget to a separate file and inject/import it where & when needed.I haven't really watched any tutorials or taken any courses when learning Flutter, I mostly followed Flutter documentation as much as I could.
November 09, 2021 at 11:05PM by donzavo
https://ift.tt/3H3parg
reddit
What are common practices in Flutter
Atm, I'm one month into Flutter and as stated in the title, I would like to know, what are the best or common practices in Flutter regarding...
New post on /r/flutterdev subreddit:
Flutter State Managers: Do big companies/projects rather use GetX, BLOC, or Provider?
Hi, I'm new to flutter and I want to know which state manager is more useful to learn. I've had some experience in all 3, but not sure what big companies or projects use. Or do they use a combination?Do they use the Provider package cause its the most popular one? Or do they use BLOC, which is complex for beginners. Or do they use GetX which I don't know why but I have seen more Youtube tutorials using it nowadays.Thanks!
November 09, 2021 at 11:55PM by sailllyon
https://ift.tt/3odifDp
Flutter State Managers: Do big companies/projects rather use GetX, BLOC, or Provider?
Hi, I'm new to flutter and I want to know which state manager is more useful to learn. I've had some experience in all 3, but not sure what big companies or projects use. Or do they use a combination?Do they use the Provider package cause its the most popular one? Or do they use BLOC, which is complex for beginners. Or do they use GetX which I don't know why but I have seen more Youtube tutorials using it nowadays.Thanks!
November 09, 2021 at 11:55PM by sailllyon
https://ift.tt/3odifDp
reddit
Flutter State Managers: Do big companies/projects rather use GetX,...
Hi, I'm new to flutter and I want to know which state manager is more useful to learn. I've had some experience in all 3, but not sure what big...
New post on /r/flutterdev subreddit:
Push Notification In Flutter and Firebase | Advance Tutorial 2021
https://youtu.be/PpAoCXEnvvM
November 10, 2021 at 08:03AM by backslashflutter
https://ift.tt/3H7MqVe
Push Notification In Flutter and Firebase | Advance Tutorial 2021
https://youtu.be/PpAoCXEnvvM
November 10, 2021 at 08:03AM by backslashflutter
https://ift.tt/3H7MqVe
reddit
Push Notification In Flutter and Firebase | Advance Tutorial 2021
Posted in r/FlutterDev by u/backslashflutter β’ 20 points and 3 comments
New post on /r/flutterdev subreddit:
Securing socket connection in flutter
I was working with socket io and was wondering if there was any way to make sure that the data getting passed is coming from an authenticated user.
November 10, 2021 at 10:54AM by abdimussa87
https://ift.tt/3EZcIXK
Securing socket connection in flutter
I was working with socket io and was wondering if there was any way to make sure that the data getting passed is coming from an authenticated user.
November 10, 2021 at 10:54AM by abdimussa87
https://ift.tt/3EZcIXK
reddit
Securing socket connection in flutter
I was working with socket io and was wondering if there was any way to make sure that the data getting passed is coming from an authenticated user.
New post on /r/flutterdev subreddit:
Bot submissions on Flutter Web Forms
What are you using to prevent/minimize bot form submissions on flutter web? Pub.dev doesn't appear to have a solution out of the box on first glance. I know I can do some arithmetic validation like "answer 3+5", but a more robust solution would be great.
November 10, 2021 at 01:37PM by sonicworkflow
https://ift.tt/3quAg2R
Bot submissions on Flutter Web Forms
What are you using to prevent/minimize bot form submissions on flutter web? Pub.dev doesn't appear to have a solution out of the box on first glance. I know I can do some arithmetic validation like "answer 3+5", but a more robust solution would be great.
November 10, 2021 at 01:37PM by sonicworkflow
https://ift.tt/3quAg2R
Dart packages
The official repository for Dart and Flutter packages.
Pub is the package manager for the Dart programming language, containing reusable libraries & packages for Flutter and general Dart programs.
New post on /r/flutterdev subreddit:
We made a package to add passwordless auth into your Flutter apps
Hello Flutter Devs,We at Magic recently released a new Flutter package for adding passwordless authentications to your applications.https://pub.dev/packages/magic_sdkNow it's super easy to onboard users without passwords.Read the docs to get started in minutes. And we look forward to seeing your apps using this package and want to hear your integration stories.
November 10, 2021 at 04:00PM by alamshahbaz
https://ift.tt/3krxlDY
We made a package to add passwordless auth into your Flutter apps
Hello Flutter Devs,We at Magic recently released a new Flutter package for adding passwordless authentications to your applications.https://pub.dev/packages/magic_sdkNow it's super easy to onboard users without passwords.Read the docs to get started in minutes. And we look forward to seeing your apps using this package and want to hear your integration stories.
November 10, 2021 at 04:00PM by alamshahbaz
https://ift.tt/3krxlDY
Magic
Magic Labs | The best way to build onchain
We've onboarded 40 million people to the world's leading apps. We're trusted by over 190,000 developers. We're Magic.
New post on /r/flutterdev subreddit:
A Package for Undo/Redo Support in StateNotifier
https://pub.dev/packages/history_state_notifierHistory State NotifierThis package offers an extension on state_notifier to add a full history support with undo/redo functionality.Featuresβ©οΈ Add undo() and redo() to StateNotifierπ Limit the size of your historyπ Offers both a mixin that can be added to your existing StateNotifiers and an abstract class that you can extendπͺΆ No dependencies on flutter or any other packages and super lightweight.π Choose which states get stored to the historyπ Transform states before applying them from the history
November 10, 2021 at 04:19PM by nameausstehend
https://ift.tt/30ge7ug
A Package for Undo/Redo Support in StateNotifier
https://pub.dev/packages/history_state_notifierHistory State NotifierThis package offers an extension on state_notifier to add a full history support with undo/redo functionality.Featuresβ©οΈ Add undo() and redo() to StateNotifierπ Limit the size of your historyπ Offers both a mixin that can be added to your existing StateNotifiers and an abstract class that you can extendπͺΆ No dependencies on flutter or any other packages and super lightweight.π Choose which states get stored to the historyπ Transform states before applying them from the history
November 10, 2021 at 04:19PM by nameausstehend
https://ift.tt/30ge7ug
Dart packages
history_state_notifier | Dart Package
Extends state_notifier to add a history feature that allows for undo/redo operations.
New tweet from FlutterDev:
π π₯ DartPad support is here! Making it easier to write code with Firebase and Flutter together. Tune in to #FirebaseSummit to ask the team your questions live β https://t.co/7QGJ2SSna4 https://t.co/fXiBE0bFIPβ Flutter (@FlutterDev) Nov 10, 2021
November 10, 2021 at 07:10PM
https://twitter.com/FlutterDev/status/1458497358270844931
π π₯ DartPad support is here! Making it easier to write code with Firebase and Flutter together. Tune in to #FirebaseSummit to ask the team your questions live β https://t.co/7QGJ2SSna4 https://t.co/fXiBE0bFIPβ Flutter (@FlutterDev) Nov 10, 2021
November 10, 2021 at 07:10PM
https://twitter.com/FlutterDev/status/1458497358270844931
Firebase
Firebase Summit 2022
Learn how to accelerate app development, run your app with confidence, and deliver a high quality user experience at Firebase Summit 2022.
New tweet from FlutterDev:
B. ListView is the correct answer! π₯³β Flutter (@FlutterDev) Nov 10, 2021
November 10, 2021 at 08:30PM
https://twitter.com/FlutterDev/status/1458517389876756483
B. ListView is the correct answer! π₯³β Flutter (@FlutterDev) Nov 10, 2021
November 10, 2021 at 08:30PM
https://twitter.com/FlutterDev/status/1458517389876756483
Twitter
Flutter
B. ListView is the correct answer! π₯³
New post on /r/flutterdev subreddit:
Firebase Auth/CloudStore support for DartPad
Earlier today on the Firebase Summit keynote, they mentioned that <dartpad.dev> now supports
November 10, 2021 at 11:17PM by eibaan
https://ift.tt/3wxs7LQ
Firebase Auth/CloudStore support for DartPad
Earlier today on the Firebase Summit keynote, they mentioned that <dartpad.dev> now supports
firebase_auth
und cloud_firestore
. I'm not sure whether this is useful beyond simple examples but still, it's nice, and perhaps more packages (like provider etc.) will be supported in the future.https://twitter.com/FlutterDev/status/1458497358270844931November 10, 2021 at 11:17PM by eibaan
https://ift.tt/3wxs7LQ
Twitter
Flutter
π π₯ DartPad support is here! Making it easier to write code with Firebase and Flutter together. Tune in to #FirebaseSummit to ask the team your questions live β g.co/firebasesummit