New post on /r/flutterdev subreddit:
Usage of DIO in flutter
Does it make sence to declare Dio as an singleton? Coming from Android dev, we do this with our "dio". Didn't find this question online , so hope someone can elaborate.
September 11, 2019 at 07:23PM by skyyoo_
https://ift.tt/2UOyQxW
Usage of DIO in flutter
Does it make sence to declare Dio as an singleton? Coming from Android dev, we do this with our "dio". Didn't find this question online , so hope someone can elaborate.
September 11, 2019 at 07:23PM by skyyoo_
https://ift.tt/2UOyQxW
reddit
Usage of DIO in flutter
Does it make sence to declare Dio as an singleton? Coming from Android dev, we do this with our "dio". Didn't find this question online , so hope...
New post on /r/flutterdev subreddit:
Calling Widget function with subclass of generic type in State not possible
Today I fixed somebody's problem, but I am not really sure why it was a problem in the first time. I would like to know whether this was a mistake in the code or a bug in the Dart language.The question was posted on StackOverflow.The question is quite complex, but the idea is easy. The StateFullWidget gets a generic type T which extends ChangeNotifier, it gets a function which expects an object of type T.The State of the Widget creates the object T and passes it to the function of the Widget. In this example the T is OnBoardingViewModel, which does extends ChangeNotifier.The resulting error is:
September 11, 2019 at 07:22PM by ren3f
https://ift.tt/34DjwZz
Calling Widget function with subclass of generic type in State not possible
Today I fixed somebody's problem, but I am not really sure why it was a problem in the first time. I would like to know whether this was a mistake in the code or a bug in the Dart language.The question was posted on StackOverflow.The question is quite complex, but the idea is easy. The StateFullWidget gets a generic type T which extends ChangeNotifier, it gets a function which expects an object of type T.The State of the Widget creates the object T and passes it to the function of the Widget. In this example the T is OnBoardingViewModel, which does extends ChangeNotifier.The resulting error is:
type '(OnBoardingViewModel) => dynamic' is not a subtype of type '(ChangeNotifier) => dynamic'The short version of the code is:
class StateFullConsumerWidget<T extends ChangeNotifier> extends StatefulWidget{ StateFullConsumerWidget({,Key key,this.onPostViewModelInit}) : super(key : key); final Function(T viewModel) onPostViewModelInit; @override _StateFullConsumerWidgetState<T> createState() => _StateFullConsumerWidgetState<T>(onPostViewModelInit, builder); } class _StateFullConsumerWidgetState<T extends ChangeNotifier> extends State<StateFullConsumerWidget>{ T _viewModel; @override void initState() { _viewModel = GetIt.instance.get<T>(); widget.onPostViewModelInit(_viewModel); super.initState(); } }I suspect that under the hood the OnBoardingViewModel is passed as ChangeNotifier, but the function expects an OnBoardingViewModel.Checking the variables I would expect no problemsI fixed this by passing the function to the State and calling it from there. This works fine and is a solution, but I would like to know why this is a programming error or whether we should expect Dart to handle this normally.The resulting code that does work:
class StateFullConsumerWidget<T extends ChangeNotifier> extends StatefulWidget{ StateFullConsumerWidget({,Key key,this.onPostViewModelInit}) : super(key : key); final Function(T viewModel) onPostViewModelInit; @override _StateFullConsumerWidgetState<T> createState() => _StateFullConsumerWidgetState<T>(onPostViewModelInit, builder); } class _StateFullConsumerWidgetState<T extends ChangeNotifier> extends State<StateFullConsumerWidget>{ final Function(T viewModel) _onPostViewModelInit; T _viewModel; _StateFullConsumerWidgetState(this._onPostViewModelInit); @override void initState() { _viewModel = GetIt.instance.get<T>(); _onPostViewModelInit(_viewModel); super.initState(); } }
September 11, 2019 at 07:22PM by ren3f
https://ift.tt/34DjwZz
Stack Overflow
passing generic type by Function(T) in flutter
I'm trying to create a generic consumer widget that facilitates the ViewModel to its child. therefor I have two functions. one that has a function(T) after init of the ViewModel and the other for p...
New post on /r/flutterdev subreddit:
[question] Chat app with Flutter and firebase
hi all
I'm creating a chat app with flutter and firebase
how can order the contract list as who sends the last message goes to the top
as WhatsApp do
thanks
September 11, 2019 at 09:27PM by anonfantom
https://ift.tt/2I3hXe1
[question] Chat app with Flutter and firebase
hi all
I'm creating a chat app with flutter and firebase
how can order the contract list as who sends the last message goes to the top
as WhatsApp do
thanks
September 11, 2019 at 09:27PM by anonfantom
https://ift.tt/2I3hXe1
reddit
[question] Chat app with Flutter and firebase
A subreddit related to Google's new UI framework.
New post on /r/flutterdev subreddit:
Whats wrong with SQFlite and SharedPrefs?
I've heard a fair amount of criticism regarding the two mentioned packages but nobody seems to provide actual reasoning as to why they're seen as bad.I've been using both and haven't noticed any problems so far during dev. Am I going to be seeing issues after pushing to production or are the naysayers exaggerating?
September 11, 2019 at 09:23PM by notacooleagle
https://ift.tt/2UNVrLa
Whats wrong with SQFlite and SharedPrefs?
I've heard a fair amount of criticism regarding the two mentioned packages but nobody seems to provide actual reasoning as to why they're seen as bad.I've been using both and haven't noticed any problems so far during dev. Am I going to be seeing issues after pushing to production or are the naysayers exaggerating?
September 11, 2019 at 09:23PM by notacooleagle
https://ift.tt/2UNVrLa
reddit
Whats wrong with SQFlite and SharedPrefs?
I've heard a fair amount of criticism regarding the two mentioned packages but nobody seems to provide actual reasoning as to why they're seen as...
New post on /r/flutterdev subreddit:
How do you filter debug console output?
Is there any way to filter it in VS code? I see filter in Problems in new update but why it is not in debug console tab also?
September 11, 2019 at 10:18PM by alsetah
https://ift.tt/2LXFYV5
How do you filter debug console output?
Is there any way to filter it in VS code? I see filter in Problems in new update but why it is not in debug console tab also?
September 11, 2019 at 10:18PM by alsetah
https://ift.tt/2LXFYV5
reddit
How do you filter debug console output?
Is there any way to filter it in VS code? I see filter in Problems in new update but why it is not in debug console tab also?
New post on /r/flutterdev subreddit:
60 Days of Flutter : 'Building a Messenger from Scratch' : Day 24–26 : Building a Animated Progress Fab and the Contacts Bloc in Flutter
https://ift.tt/2LMtKye
September 11, 2019 at 10:56PM by aditya_gurjar
https://ift.tt/2LqyZod
60 Days of Flutter : 'Building a Messenger from Scratch' : Day 24–26 : Building a Animated Progress Fab and the Contacts Bloc in Flutter
https://ift.tt/2LMtKye
September 11, 2019 at 10:56PM by aditya_gurjar
https://ift.tt/2LqyZod
Medium
60 Days of Flutter :Building a Messenger : Day 24–26 : Building a Animated Progress Fab and the Contacts Bloc in Flutter
In last post we created the UI for the Contacts Page. Today we’ll be creating the UI for adding a new contact which includes a Animated…
New post on Flutter Dev Google group:
Expanded question
I have a widget that is showing the yellow and black striped error at the bottom of the screen, I tried wrapping it in Expanded but it caused another error. I think I’m doing it incorrectly. I have several of these errors when moving to a smaller screen. The following assertion was thrown
September 12, 2019 at 12:47AM by Sam Cromer
https://ift.tt/3085wUp
Expanded question
I have a widget that is showing the yellow and black striped error at the bottom of the screen, I tried wrapping it in Expanded but it caused another error. I think I’m doing it incorrectly. I have several of these errors when moving to a smaller screen. The following assertion was thrown
September 12, 2019 at 12:47AM by Sam Cromer
https://ift.tt/3085wUp
Google
Google Groups
Google Groups allows you to create and participate in online forums and email-based groups with a rich experience for community conversations.
New post on /r/flutterdev subreddit:
Tavern: A pub.dev client for searching and subscribing to package updates.
https://ift.tt/2LOgMQr
September 12, 2019 at 12:28AM by _thinkdigital
https://ift.tt/34FRMUr
Tavern: A pub.dev client for searching and subscribing to package updates.
https://ift.tt/2LOgMQr
September 12, 2019 at 12:28AM by _thinkdigital
https://ift.tt/34FRMUr
GitHub
ThinkDigitalSoftware/tavern
A pub.dev client for searching and subscribing to package updates. - ThinkDigitalSoftware/tavern
New post on /r/flutterdev subreddit:
Flutter for desktop?
I've looked into multiple different cross-platform solutions for my next app.I've looked at xamarin, flutter, and react native, and I'm leaning towards flutter.is flutter currently capable of building to desktop so that I can run my app on Windows Linux and Mac as well as Android and iPhone?Thank you.
September 12, 2019 at 05:31AM by suffering_is_magic
https://ift.tt/2Lr3EBP
Flutter for desktop?
I've looked into multiple different cross-platform solutions for my next app.I've looked at xamarin, flutter, and react native, and I'm leaning towards flutter.is flutter currently capable of building to desktop so that I can run my app on Windows Linux and Mac as well as Android and iPhone?Thank you.
September 12, 2019 at 05:31AM by suffering_is_magic
https://ift.tt/2Lr3EBP
reddit
Flutter for desktop?
I've looked into multiple different cross-platform solutions for my next app. I've looked at xamarin, flutter, and react native, and I'm leaning...
New post on /r/flutterdev subreddit:
Flutter Image / Video Picker — Flutter
https://ift.tt/2AfvTwU
September 12, 2019 at 04:29AM by KarthikPonnam
https://ift.tt/31ee5hG
Flutter Image / Video Picker — Flutter
https://ift.tt/2AfvTwU
September 12, 2019 at 04:29AM by KarthikPonnam
https://ift.tt/31ee5hG
Medium
Flutter Image / Video Picker — Flutter
We will see how to pick an Image and Video from gallery and camera using image_picker plugin
New post on Flutter Dev Google group:
Using "dart:html" in flutter 1.9+
The *dart:html* library was accessible in a flutter web applications prior to flutter 1.9 It's needed for important use cases like *file picker*, *drag and dropping files*, *cookies*, etc...(because *dart:io* cannot be used in flutter web apps) How is it possible to use the dart:html library in
September 12, 2019 at 09:09AM by Robin Maass
https://ift.tt/32wUauC
Using "dart:html" in flutter 1.9+
The *dart:html* library was accessible in a flutter web applications prior to flutter 1.9 It's needed for important use cases like *file picker*, *drag and dropping files*, *cookies*, etc...(because *dart:io* cannot be used in flutter web apps) How is it possible to use the dart:html library in
September 12, 2019 at 09:09AM by Robin Maass
https://ift.tt/32wUauC
Google
Google Groups
Google Groups allows you to create and participate in online forums and email-based groups with a rich experience for community conversations.
New post on Flutter Dev Google group:
Flutter Maps,
how to built a app which has live tracking...
September 12, 2019 at 09:40AM by Yash Savsani
https://ift.tt/309jGEE
Flutter Maps,
how to built a app which has live tracking...
September 12, 2019 at 09:40AM by Yash Savsani
https://ift.tt/309jGEE
Google
Google Groups
Google Groups allows you to create and participate in online forums and email-based groups with a rich experience for community conversations.
New post on /r/flutterdev subreddit:
Flutter Stripe's SCA Implementation
Hello everybody.Now then, have any of you managed to get the Stripe new SCA working with Flutter ? Our current payment flow is, we authenticate an X amount of money, which we charge later, after the user has used our services. I've read through the whole Stripe Docs, I really did, but I still have no idea how our team is going to implement this new regulation on the app and backend. Can anyone share some insight how to even achieve this ?Kind regards.
September 12, 2019 at 10:22AM by Podpli
https://ift.tt/34F1LJt
Flutter Stripe's SCA Implementation
Hello everybody.Now then, have any of you managed to get the Stripe new SCA working with Flutter ? Our current payment flow is, we authenticate an X amount of money, which we charge later, after the user has used our services. I've read through the whole Stripe Docs, I really did, but I still have no idea how our team is going to implement this new regulation on the app and backend. Can anyone share some insight how to even achieve this ?Kind regards.
September 12, 2019 at 10:22AM by Podpli
https://ift.tt/34F1LJt
reddit
Flutter Stripe's SCA Implementation
Hello everybody. Now then, have any of you managed to get the Stripe new SCA working with Flutter ? Our current payment flow is, we authenticate...
New post on Flutter Dev Google group:
Unable to run flutter GitHub project in Android Studio
Can someone help me to run flutter GitHub project in Android Studio?
September 12, 2019 at 11:25AM by rakesh lorentz
https://ift.tt/2AeV6HT
Unable to run flutter GitHub project in Android Studio
Can someone help me to run flutter GitHub project in Android Studio?
September 12, 2019 at 11:25AM by rakesh lorentz
https://ift.tt/2AeV6HT
Google
Google Groups
Google Groups allows you to create and participate in online forums and email-based groups with a rich experience for community conversations.
New post on Flutter Dev Google group:
My client wants to charge the app
Hey guys, I need to charge the user to use part of the app. He will be able to login and have access to some content, but if he pays the monthly fee, he will have all access to the content. However, i've never done that before. Anyone has done it or has some ideia on what's the best way to do
September 12, 2019 at 12:08PM by Bruno De Faria
https://ift.tt/2NaGx0K
My client wants to charge the app
Hey guys, I need to charge the user to use part of the app. He will be able to login and have access to some content, but if he pays the monthly fee, he will have all access to the content. However, i've never done that before. Anyone has done it or has some ideia on what's the best way to do
September 12, 2019 at 12:08PM by Bruno De Faria
https://ift.tt/2NaGx0K
Google
Google Groups
Google Groups allows you to create and participate in online forums and email-based groups with a rich experience for community conversations.
New post on Flutter Dev Google group:
Custom notificaiotn with channelId android 8 and 9
01. Integrating Firebase Cloud Messaging in Flutter. (firebase_messaging 5.1.4 : https://ift.tt/32eDXuS) 02. Notification Channels are introduced in Android 8.0 (Android Oreo & above), Refer : https://ift.tt/2HZUryo 03. But these
September 12, 2019 at 12:51PM by amitabh ranjan
https://ift.tt/31iTrgj
Custom notificaiotn with channelId android 8 and 9
01. Integrating Firebase Cloud Messaging in Flutter. (firebase_messaging 5.1.4 : https://ift.tt/32eDXuS) 02. Notification Channels are introduced in Android 8.0 (Android Oreo & above), Refer : https://ift.tt/2HZUryo 03. But these
September 12, 2019 at 12:51PM by amitabh ranjan
https://ift.tt/31iTrgj
Dart packages
firebase_messaging | Flutter package
Flutter plugin for Firebase Cloud Messaging, a cross-platform messaging solution that lets you reliably deliver messages on Android and iOS.
New post on /r/flutterdev subreddit:
Suggestions for Draft Forms
Can you help me out regarding a scenario of having a filled up form, and I want to draft it if I don't have a internet connection. Is it possible for flutter? Example, I have no internet connection and I created a new post in Facebook, it saves as draft, if I reconnect back again to the internet it will automatically be posted. Thanks!
September 12, 2019 at 01:27PM by bouncydragy
https://ift.tt/2ZSm2f8
Suggestions for Draft Forms
Can you help me out regarding a scenario of having a filled up form, and I want to draft it if I don't have a internet connection. Is it possible for flutter? Example, I have no internet connection and I created a new post in Facebook, it saves as draft, if I reconnect back again to the internet it will automatically be posted. Thanks!
September 12, 2019 at 01:27PM by bouncydragy
https://ift.tt/2ZSm2f8
reddit
Suggestions for Draft Forms
Can you help me out regarding a scenario of having a filled up form, and I want to draft it if I don't have a internet connection. Is it possible...
New post on /r/flutterdev subreddit:
Flutter vs React Native 2019 — Hybrid Programming Comparison | softwarebrothers.co blog
https://ift.tt/2ZNFFFd
September 12, 2019 at 01:02PM by SoftwareBrothers
https://ift.tt/306UCyh
Flutter vs React Native 2019 — Hybrid Programming Comparison | softwarebrothers.co blog
https://ift.tt/2ZNFFFd
September 12, 2019 at 01:02PM by SoftwareBrothers
https://ift.tt/306UCyh
Medium
Flutter vs React Native 2019 — Hybrid Programming Comparison
Every day companies face the arduous challenge of developing mobile apps for two different platforms. But why bother writing everything…
New post on /r/flutterdev subreddit:
with Floop — dynamic values for widgets
https://ift.tt/2NXnCpD
September 12, 2019 at 03:34PM by Elixane
https://ift.tt/2HYF5KD
with Floop — dynamic values for widgets
https://ift.tt/2NXnCpD
September 12, 2019 at 03:34PM by Elixane
https://ift.tt/2HYF5KD
Medium
with Floop — dynamic values for widgets
Simplify UI interactions, asynchronous data fetches, transitions and animations. Build a whole app using purely stateless widgets.
New post on /r/flutterdev subreddit:
PWA in Flutter
I've seen Flutter for web development news but is it possible a PWA in Flutter?
September 12, 2019 at 04:00PM by AlephC
https://ift.tt/3038gGM
PWA in Flutter
I've seen Flutter for web development news but is it possible a PWA in Flutter?
September 12, 2019 at 04:00PM by AlephC
https://ift.tt/3038gGM
reddit
PWA in Flutter
I've seen Flutter for web development news but is it possible a PWA in Flutter?
New post on /r/flutterdev subreddit:
Flutter Newbie
Hello everyone,I'm new to mobile app development and I have some questions, I'm sorry if these questions are stupid or unrelated.First of all I know Python, Java and some Kotlin. I started programming with Python and got really good with it, and then I started so search for mobile app development and found Android Studio and for that I learned Java and Kotlin. But recently I found Flutter which seems like a perfect framework for application development. I did some research so I know what is Flutter and who is behind Flutter etc.But as I said, I'm such a big noob when it comes to mobile app development and here is my questions:Should I focus on learning Android Studio or should I start with Flutter?How hard Dart programming language is? As I said I know some programming languages.With Flutter can I do back-end applications? Can I use Python for back-end and Dart for front-end? Like collecting data with app, processing data with Python and giving user this processed data.
Does Flutter requires same hardware power as Android Studio?Well these are my questions, again I'm sorry if these questions are stupid. I think Flutter is a game changer for mobile app development and that is why I'm willing to learn it.Thank you all for you answers! :)Note: I'm sorry if there is grammar mistakes, I'm not a native English Speaker.
September 12, 2019 at 04:47PM by gubuw
https://ift.tt/2I5SnVw
Flutter Newbie
Hello everyone,I'm new to mobile app development and I have some questions, I'm sorry if these questions are stupid or unrelated.First of all I know Python, Java and some Kotlin. I started programming with Python and got really good with it, and then I started so search for mobile app development and found Android Studio and for that I learned Java and Kotlin. But recently I found Flutter which seems like a perfect framework for application development. I did some research so I know what is Flutter and who is behind Flutter etc.But as I said, I'm such a big noob when it comes to mobile app development and here is my questions:Should I focus on learning Android Studio or should I start with Flutter?How hard Dart programming language is? As I said I know some programming languages.With Flutter can I do back-end applications? Can I use Python for back-end and Dart for front-end? Like collecting data with app, processing data with Python and giving user this processed data.
Does Flutter requires same hardware power as Android Studio?Well these are my questions, again I'm sorry if these questions are stupid. I think Flutter is a game changer for mobile app development and that is why I'm willing to learn it.Thank you all for you answers! :)Note: I'm sorry if there is grammar mistakes, I'm not a native English Speaker.
September 12, 2019 at 04:47PM by gubuw
https://ift.tt/2I5SnVw
reddit
Flutter Newbie
Hello everyone, I'm new to mobile app development and I have some questions, I'm sorry if these questions are stupid or unrelated. First of all...