New post on Flutter Dev Google group:
Add the colour of structure link to make it more visualised
[image: Screenshot 2019-05-04 at 11.47.57 PM.png] I like the design of the link between structure, it can be improved by designing for different color to make the developer can identify the structure easily by looking at different color of the link. Hope you guys can understand what I mean.
May 04, 2019 at 05:51PM by OK
http://bit.ly/2H1JBGH
Add the colour of structure link to make it more visualised
[image: Screenshot 2019-05-04 at 11.47.57 PM.png] I like the design of the link between structure, it can be improved by designing for different color to make the developer can identify the structure easily by looking at different color of the link. Hope you guys can understand what I mean.
May 04, 2019 at 05:51PM by OK
http://bit.ly/2H1JBGH
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:
Animations while switching tabs in BottomNavigationBar
Hey Flutter devs!I was wondering if it would be possible to add animations or transitions while switching tabs, using a BottomNavigationBar widget.Thanks!
May 04, 2019 at 05:27PM by jesusrp98
http://bit.ly/2H0BdHP
Animations while switching tabs in BottomNavigationBar
Hey Flutter devs!I was wondering if it would be possible to add animations or transitions while switching tabs, using a BottomNavigationBar widget.Thanks!
May 04, 2019 at 05:27PM by jesusrp98
http://bit.ly/2H0BdHP
reddit
r/FlutterDev - Animations while switching tabs in BottomNavigationBar
0 votes and 0 comments so far on Reddit
New post on /r/flutterdev subreddit:
How to add music / audio to your Flutter app
http://bit.ly/2LBFaIz
May 04, 2019 at 05:23PM by MarkOSullivan
http://bit.ly/2VdrCHn
How to add music / audio to your Flutter app
http://bit.ly/2LBFaIz
May 04, 2019 at 05:23PM by MarkOSullivan
http://bit.ly/2VdrCHn
Medium
How to add music / audio to your Flutter app
Wanting to add music or audio to your Flutter app? Look no further! I’ve detailed all of the ways you can do this in one entire write up!
New post on /r/flutterdev subreddit:
flutter app lifecycle
I want to delete the content of shared preferences whenever the app is killed, but I can't find something equivilant to onDestroy() method found in native android, the only thing i found was the dispose() method, if i used it on the root route would it work as onDestroy or not ? if not is there any alternative approach ?*another question: how does route tree work in flutter ? is it just like in android where there would be a stack of activities on top of each other with the first one being the root ?
May 04, 2019 at 08:33PM by byshy
http://bit.ly/2PJ4AST
flutter app lifecycle
I want to delete the content of shared preferences whenever the app is killed, but I can't find something equivilant to onDestroy() method found in native android, the only thing i found was the dispose() method, if i used it on the root route would it work as onDestroy or not ? if not is there any alternative approach ?*another question: how does route tree work in flutter ? is it just like in android where there would be a stack of activities on top of each other with the first one being the root ?
May 04, 2019 at 08:33PM by byshy
http://bit.ly/2PJ4AST
reddit
r/FlutterDev - flutter app lifecycle
0 votes and 0 comments so far on Reddit
New post on /r/flutterdev subreddit:
UI-As-Code: Ideas on how to improve Flutter UI coding
Hi,After playing with Flutter for a little while I got some ideas on how UI coding with imperative language (Dart) could be modernized and improved.As a native developer (Kotlin & Swift) , I could present you a large list of features I would like Dart to have. However, since nobody likes to read long boring articles, I'm going to describe just a couple of thoughts that popped into my head while I was trying to construct UI with Flutter.Okay, let's go. Given the following very very basic block of code:
May 04, 2019 at 11:40PM by stuffokator
http://bit.ly/2GX8S4V
UI-As-Code: Ideas on how to improve Flutter UI coding
Hi,After playing with Flutter for a little while I got some ideas on how UI coding with imperative language (Dart) could be modernized and improved.As a native developer (Kotlin & Swift) , I could present you a large list of features I would like Dart to have. However, since nobody likes to read long boring articles, I'm going to describe just a couple of thoughts that popped into my head while I was trying to construct UI with Flutter.Okay, let's go. Given the following very very basic block of code:
return Container( constraints: BoxConstraints.expand( width: 200.0 ), margin: EdgeInsets.only(left: 50.0, right: 50.0), child: Column( children: [ Text('Hello'), Row( children: [ Text('there'), Text('world!’, style: style), ], ), ], ), );what can we improve here?First of all, what do you think of these child and children parameter names? For me they seem to be redundant. It is already obvious that the nested elements are children, so, in my opinion, these parameters needlessly increase the code size. We could get rid of them if Dart supported optional positional and optional named arguments. However, the following issue is still open (wow, dates back to 2012): https://github.com/dart-lang/sdk/issues/7056Now take a closer look at the square brackets. Wouldn't it be great to be able to just pass the child elements as normal arguments instead of arrays? I think, it would. Surprisingly, this is currently not possible because Dart doesn't support varargs (wow, dates back to 2014): https://github.com/dart-lang/sdk/issues/16253Another amazing feature Dart could borrow from Swift is Visual Format. This could greatly simplify constraints & margins coding. The relevant link: https://developer.apple.com/library/archive/documentation/UserExperience/Conceptual/AutolayoutPG/VisualFormatLanguage.htmlMaybe it's just my personal preference, but I think that extensions in Swift are a piece of art. As a quick example, with extensions it would be possible to write something like this 'my_amazing_text'.withStyle(style). It's sad Dart still doesn't support it: https://github.com/dart-lang/language/issues/41If we stop here, take a deep breath, and apply these suggestions to the above-mentioned code here is the result we will be able to achieve:
return Container( layout: ‘|-50-200-50-|’, Column( 'Hello’, Row('there', 'world!'.withStyle(style) ) ) );I would also remove the trailing semicolon, but that's enough for today. I guess, I already earned a bunch of downvotes for the above little critique of Dart. However, please don't get me wrong - I just felt the urge to share these thoughts with the community for our common benefit.Happy coding!
May 04, 2019 at 11:40PM by stuffokator
http://bit.ly/2GX8S4V
GitHub
Allow both optional positional and optional named arguments in the same function signature. · Issue #7056 · dart-lang/sdk
Dart functions currently can have only either optional named parameters or optional positional parameters, but not both. While developing libraries repeatedly run into cases where this restriction ...
New post on /r/flutterdev subreddit:
Flutter Photo View & Gallery – Resize & Rotate + Image Carousel
http://bit.ly/2Lnypde
May 05, 2019 at 01:49AM by Purple_Pizzazz
http://bit.ly/2VEPQK8
Flutter Photo View & Gallery – Resize & Rotate + Image Carousel
http://bit.ly/2Lnypde
May 05, 2019 at 01:49AM by Purple_Pizzazz
http://bit.ly/2VEPQK8
Reso Coder
Flutter Photo View & Gallery – Resize & Rotate + Image Carousel
Images speak louder than words. Having a good image is just half of the battle though. If the image is non-responsive, non-resizeable and, overall, the user experience is not all that great, your a…
New post on /r/flutterdev subreddit:
New to Dart. What does this line of code mean?
This is the whole line:
May 05, 2019 at 02:28AM by outtascope
http://bit.ly/2V1r7Lt
New to Dart. What does this line of code mean?
This is the whole line:
Function(String) get changeEmail => _emailController.sink.add;I'm trying to learn how BLoC and rxdart works. I'm confused about the left part of this line.
Function(String) get changeEmail =>I understand that get is a shortcut for creating a getter function. My understanding of Function(String) is that it's a lexical closure and it might be using get changeEmail as part of its lexical scope.I'm confused because I find it strange that a getter is doing something that results in a mutation. My instincts say that it's wrong, but I'm almost sure that I'm wrong. Can anyone break this down for me? Also, is there another way to write this code?
May 05, 2019 at 02:28AM by outtascope
http://bit.ly/2V1r7Lt
reddit
r/FlutterDev - New to Dart. What does this line of code mean?
0 votes and 3 comments so far on Reddit
New post on Flutter Dev Google group:
How to navigate to the home page after check the valid token from storage.
Hi everybody, I check the user authorization token at the HomePage Constructor, so if token is present and valid, i will call the Navigator pushAndRemoveUntil method to redirect to my dashboard. But pushAndRemoveUntil method needs context parameter, is that mean i just call it on build method?
May 05, 2019 at 04:42AM by favr...@gmail.com
http://bit.ly/2Vgd0qP
How to navigate to the home page after check the valid token from storage.
Hi everybody, I check the user authorization token at the HomePage Constructor, so if token is present and valid, i will call the Navigator pushAndRemoveUntil method to redirect to my dashboard. But pushAndRemoveUntil method needs context parameter, is that mean i just call it on build method?
May 05, 2019 at 04:42AM by favr...@gmail.com
http://bit.ly/2Vgd0qP
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:
BLoC vs MobX: Which would you recommend for large and complex Flutter apps?
Thoughts?Bonus: Which state management architecture will likely stick around in the long run and act as the industry standard?There are no right answers.
May 05, 2019 at 05:16AM by SocialMammoth
http://bit.ly/2GWMLvv
BLoC vs MobX: Which would you recommend for large and complex Flutter apps?
Thoughts?Bonus: Which state management architecture will likely stick around in the long run and act as the industry standard?There are no right answers.
May 05, 2019 at 05:16AM by SocialMammoth
http://bit.ly/2GWMLvv
reddit
r/FlutterDev - BLoC vs MobX: Which would you recommend for large and complex Flutter apps?
0 votes and 2 comments so far on Reddit
New post on /r/flutterdev subreddit:
Particle Animations with Flutter
http://bit.ly/2J0yhOz
May 05, 2019 at 09:06AM by felixlein
http://bit.ly/2JfVvjb
Particle Animations with Flutter
http://bit.ly/2J0yhOz
May 05, 2019 at 09:06AM by felixlein
http://bit.ly/2JfVvjb
Medium
Particle Animations with Flutter
Today I want to show you a way of creating a beautiful particle animation with Flutter. It’s based on the latest features of the Simple…
New post on /r/flutterdev subreddit:
FlutterForce — Week 25
http://bit.ly/2V1cTud
May 05, 2019 at 10:47AM by flutterist
http://bit.ly/2DPdKIu
FlutterForce — Week 25
http://bit.ly/2V1cTud
May 05, 2019 at 10:47AM by flutterist
http://bit.ly/2DPdKIu
Medium
FlutterForce — #Week 25
Weekly Flutter Resources
New post on /r/flutterdev subreddit:
Question about app business logic in BLoC pattern
I decided to figure out how to use BLoC pattern for my flutter app. The sources that I used were medium article by Sagar Suri and documentation of BLoC library by Felix Angelov. Both sources suggest the similar architecture:uiScreen <-----> bloc <-----> repository <-----> dataThey say the purpose of the BLoC is to decouple ui and business logic.But I still feel that the whole layer is missing between bloc and repository. Every bloc is mapped to a screen so it is more like controller of ui state and not the business logic of the application because app's business logic is often ui agnostic. So basically if you handle your app's business logic inside bloc you just failed the only task BLoC had. Because now business logic is coupled with particular screen. And what will happen if for example you moved a button that initiated some processing from one screen to another? I guess you would have to move the part of business logic from one bloc to another.So I feel the real need to introduce something like services or interactors layer, where I would do the REAL business logic processing(some calculations, ML stuff, processing data from sensors or system broadcasts or whatever) which I would be able to use in blocs in case I need to show something to user or get input from user.The question is if it ok to do like this? And if yes how would I pass data from services to ui? In native Android ViewModel(some kind of alternative to bloc) could just pass observables from data layer to ui. But in BLoC pattern the stream which is passed to ui is stream of states not of data. And service layer should not know about states of some screen. So do I just await asynchronous services operations inside blocs and then convert this data to streams of states?Any help would be appreciated.
May 05, 2019 at 12:42PM by jeaced
http://bit.ly/2DQU8DW
Question about app business logic in BLoC pattern
I decided to figure out how to use BLoC pattern for my flutter app. The sources that I used were medium article by Sagar Suri and documentation of BLoC library by Felix Angelov. Both sources suggest the similar architecture:uiScreen <-----> bloc <-----> repository <-----> dataThey say the purpose of the BLoC is to decouple ui and business logic.But I still feel that the whole layer is missing between bloc and repository. Every bloc is mapped to a screen so it is more like controller of ui state and not the business logic of the application because app's business logic is often ui agnostic. So basically if you handle your app's business logic inside bloc you just failed the only task BLoC had. Because now business logic is coupled with particular screen. And what will happen if for example you moved a button that initiated some processing from one screen to another? I guess you would have to move the part of business logic from one bloc to another.So I feel the real need to introduce something like services or interactors layer, where I would do the REAL business logic processing(some calculations, ML stuff, processing data from sensors or system broadcasts or whatever) which I would be able to use in blocs in case I need to show something to user or get input from user.The question is if it ok to do like this? And if yes how would I pass data from services to ui? In native Android ViewModel(some kind of alternative to bloc) could just pass observables from data layer to ui. But in BLoC pattern the stream which is passed to ui is stream of states not of data. And service layer should not know about states of some screen. So do I just await asynchronous services operations inside blocs and then convert this data to streams of states?Any help would be appreciated.
May 05, 2019 at 12:42PM by jeaced
http://bit.ly/2DQU8DW
reddit
r/FlutterDev - Question about app business logic in BLoC pattern
0 votes and 0 comments so far on Reddit
New post on /r/flutterdev subreddit:
avataaar_image | Flutter Package
http://bit.ly/2Lo9OVG
May 05, 2019 at 01:00PM by tomwyr
http://bit.ly/2VOCaMw
avataaar_image | Flutter Package
http://bit.ly/2Lo9OVG
May 05, 2019 at 01:00PM by tomwyr
http://bit.ly/2VOCaMw
Dart packages
avataaar_image | Flutter Package
Flutter wrapper widget for Avataaars API allowing to generate and display avatar images.
New post on /r/flutterdev subreddit:
how to get gallery screen on my app
Not like an image picker where you pick images from the gallery but an app that opens up to a gallery screen with all images from gallery. From here i need to select the image i want to do some processing on the server side and get it back.
May 05, 2019 at 02:37PM by flutterman98
http://bit.ly/2J2LyGG
how to get gallery screen on my app
Not like an image picker where you pick images from the gallery but an app that opens up to a gallery screen with all images from gallery. From here i need to select the image i want to do some processing on the server side and get it back.
May 05, 2019 at 02:37PM by flutterman98
http://bit.ly/2J2LyGG
reddit
r/FlutterDev - how to get gallery screen on my app
0 votes and 0 comments so far on Reddit
New post on /r/flutterdev subreddit:
Integration tests involving google login
HiHas anyone written integration tests for an app involving any OAuthProvider Login?
May 05, 2019 at 03:49PM by harishreddym
http://bit.ly/2LqWijV
Integration tests involving google login
HiHas anyone written integration tests for an app involving any OAuthProvider Login?
May 05, 2019 at 03:49PM by harishreddym
http://bit.ly/2LqWijV
reddit
r/FlutterDev - Integration tests involving google login
0 votes and 1 comment so far on Reddit
New post on /r/flutterdev subreddit:
Library for animating Path objects in a drawing-like fashion (+ SVG support)
http://bit.ly/2VLD24H
May 05, 2019 at 03:11PM by fluutter
http://bit.ly/2ZZwfDx
Library for animating Path objects in a drawing-like fashion (+ SVG support)
http://bit.ly/2VLD24H
May 05, 2019 at 03:11PM by fluutter
http://bit.ly/2ZZwfDx
GitHub
biocarl/drawing_animation
A Flutter library for gradually painting SVG path objects on canvas (drawing line animation). - biocarl/drawing_animation
New tweet from FlutterDev:
Star Wars text crawl written in Dart and Flutter. The Force is strong with this one :) https://t.co/YMGO8ZjSbR #MayThe4thBeWithYou @dart_lang @FlutterDev #flutterdev pic.twitter.com/6eBY1LywUF— Matt Sullivan (@mjohnsullivan) May 3, 2019
May 05, 2019 at 07:35PM
http://twitter.com/FlutterDev/status/1125091552718512128
Star Wars text crawl written in Dart and Flutter. The Force is strong with this one :) https://t.co/YMGO8ZjSbR #MayThe4thBeWithYou @dart_lang @FlutterDev #flutterdev pic.twitter.com/6eBY1LywUF— Matt Sullivan (@mjohnsullivan) May 3, 2019
May 05, 2019 at 07:35PM
http://twitter.com/FlutterDev/status/1125091552718512128
GitHub
mjohnsullivan/flutter-by-example
A collection of simple, bare-bones Flutter apps that each demonstrate a concept - mjohnsullivan/flutter-by-example
New post on /r/flutterdev subreddit:
Spent a couple days with Flutter, here is my experience
I don't see a lot of beginner feedback posts around here, so I'd like to make one.So I've spent my last couple days with Flutter and I thought I would share a couple things I've encountered and the first impression I've gotten.Okay, so here they are:Declarative UI is awesome indeed. Flutter got it right I guess. It is the very same thing that React has with components, but styling is so much better done this way.
May 05, 2019 at 10:02PM by NotSoIncredibleA
http://bit.ly/2DRFY5x
Spent a couple days with Flutter, here is my experience
I don't see a lot of beginner feedback posts around here, so I'd like to make one.So I've spent my last couple days with Flutter and I thought I would share a couple things I've encountered and the first impression I've gotten.Okay, so here they are:Declarative UI is awesome indeed. Flutter got it right I guess. It is the very same thing that React has with components, but styling is so much better done this way.
redux
fits nicely with the architecture, would not do the UI any other way.Hot reload is awesome.UI errors are not descriptive enough. You get an error with a failed assertion somewhere and good luck trying to figure out what Widget composition caused the error. Though given the hot reload, you can build up everything iteratively. So like a good 100 times faster compared to native Android development.Android Studio has no working autocomplete. (I cannot emphasize how painful that is.) If you type in the class entirely, you can press Alt + Enter
to import it. Though it works with VS Code, which is a joke. Dart alone by itself used in IntelliJ Ultimate on the other hand has the Java-like autocomplete you would expect (it is even enough writing only the uppercase letters). If I open Flutter project in IntelliJ, autocomplete stops working.About Dart:Dart is bad, coming from Kotlin or TypeScript. It has all the downsides with generating toString
endlessly for dto classes (and also named parameter constructors have to written by hand, there is no shortcut). The built_value
generator is too difficult to set up, it would take yet a couple hours again.mixin
s, aka 'classy multiple inheritance' makes me fear what it would like to work on the code with other people.factory
constructors do not make much sense, implicit interface seems less descriptive and there is yet another new way to type lambda expressions.dynamic
and noSuchMethod
is just funny, given that it also has reified generics.there are no libraries. Get used to use libraries with 100 stars or less. (With web, I would not even touch anything below 2000 stars.) Everything seems hacky and there is no clear-cut way. Sqlite is also more verbose, given that there is no Room.Overall, there are sooo many weird things in the dart language itself and it's a very unpleasant experience. It looks like what I gain on hot reload I lose on writing repetitive code, which I hope to be able to reduce a lot.May 05, 2019 at 10:02PM by NotSoIncredibleA
http://bit.ly/2DRFY5x
reddit
r/FlutterDev - Spent a couple days with Flutter, here is my experience
0 votes and 9 comments so far on Reddit
New post on /r/flutterdev subreddit:
Flutter game app with Firebase leaderboard
http://bit.ly/2Jp2hTX
May 06, 2019 at 12:48AM by yum650350
http://bit.ly/2LrU040
Flutter game app with Firebase leaderboard
http://bit.ly/2Jp2hTX
May 06, 2019 at 12:48AM by yum650350
http://bit.ly/2LrU040
Medium
Flutter game app with Firebase leaderboard
Sharing how I made a leaderboard for Fl