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

Flutter BLoC: A better way to Handle navigation
https://ift.tt/2Y55ewj

July 21, 2019 at 03:35AM by PedroMassango
https://ift.tt/2YnVtNY
New post on /r/flutterdev subreddit:

Creating a Countdown Timer using Animation in Flutter
https://ift.tt/2Y7LA2Q

July 22, 2019 at 03:43PM by ashishrawat2911
https://ift.tt/2YhXXO2
New post on /r/flutterdev subreddit:

What do each of the colors in ColorScheme() do?
I'm using ColorScheme() to theme my app and set some colors. Here's my code for the theme:``` colorScheme: ColorScheme( primary: Colors.red, onPrimary: Colors.black, primaryVariant: Colors.orange,background: Colors.red, onBackground: Colors.black,secondary: Colors.red, onSecondary: Colors.white, secondaryVariant: Colors.deepOrange,error: Colors.black, onError: Colors.white,surface: Colors.white, onSurface: Colors.black,brightness: Brightness.light, ),// this is the only code in ThemeData.light().copyWith() ```Here's the relevant documentation: ColorScheme classSo what do these properties change the color of? Is there a list of which colors affect which widgets?By looking at the source of a FAB, I found out that colorScheme.secondary changes its background color, and that colorScheme.onSecondary should change the icon color, although it's not (what's up with that?). Here's what I found:// floating_action_button.dart final Color foregroundColor = this.foregroundColor // <-- colorScheme.onSecondary does NOT change FAB icon color ?? floatingActionButtonTheme.foregroundColor ?? theme.accentIconTheme.color ?? theme.colorScheme.onSecondary; final Color backgroundColor = this.backgroundColor // <-- colorScheme.secondary changes FAB background color ?? floatingActionButtonTheme.backgroundColor ?? theme.colorScheme.secondary; Edit: I also made an issue #36624

July 22, 2019 at 05:49PM by themindstorm
https://ift.tt/2StZmM5
New post on /r/flutterdev subreddit:

Tips for creating a really basic 2D game
Hi,I've been working with flutter for 9 months, approximately one year and a half ago. It was a fresh framework back then, and I've discovered the devs added lots of new features. I was wondering if it would be possible to create a really basic game, with these attributes:- The game should have a character-customization part (not a complex one, just a cartoon avatar with a half-torso and a head)- The game simply gives the players in the lobby some cards every x minutes: the players don't have to do anything besides chatting- Drawing cards animations would be great- There should be a graphically rich UI, take for example the Clash Royale menuIs this possible?Having read the subreddit rules i would like to specify that i'm not looking for specific support but for a discussion about the potential of this new tool in the gamedev field

July 22, 2019 at 07:24PM by -gaab-
https://ift.tt/2M7veVt
New post on /r/flutterdev subreddit:

The complete series "Architect your Flutter project using BLoC pattern"
So the series "Architect your Flutter project using BLoC" has come to an end. I have shown you what it takes to architect a Flutter app from the ground up. I have covered the following important topics in the series:Repository and BLoC patternSeparating UI and business logicDependency InjectionUnit and Integration testingHere are the links of all the articles that were part of the series:Part 1: https://medium.com/flutterpub/architecting-your-flutter-project-bd04e144a8f1Part 2: https://medium.com/flutterpub/architect-your-flutter-project-using-bloc-pattern-part-2-d8dd1eca9ba5Part 3: https://blog.usejournal.com/compile-time-dependency-injection-in-flutter-95bb190b4a71Part 4: https://medium.com/@sagarsuri56/integration-and-unit-testing-in-flutter-f08e4bd961d5Let me know what are the other topics you would like me to write on.

July 22, 2019 at 03:54PM by sagarsuri56
https://ift.tt/32Kdfuk
New post on Flutter Dev Google group:

Problem using my own local dart package
I am trying to setup a common local library to be used by multiple projects, and have tried [I think] everything to no avail. OS: Windows 10 In the common test library project which I have in *N:\proj\dart_libs\db2 *I have the following pubspec.yaml: name: db2 > description: A starting point

July 22, 2019 at 11:49PM by nat101
https://ift.tt/2xZfQ5x
New post on /r/flutterdev subreddit:

What is the map solution for Flutter Web?
Asking for a needy friend who is shy and likes cheetos and pizza

July 23, 2019 at 03:03AM by Dazza5000
https://ift.tt/32CcLGu
New post on /r/flutterdev subreddit:

Local Styling, global, styling, and custom widgets
To theme/style my apps, I try to use global styling as much as possible, similar to this:
// ThemeData.light().copyWith() primaryColor: Colors.black, accentColor: Colors.orange, appBarTheme: AppBarTheme( textTheme:TextTheme(title: TextStyle( fontWeight: FontWeight.w900, fontSize: 25, letterSpacing: 1.0 )) ), buttonTheme: ButtonThemeData( buttonColor: Colors.blue, textTheme: ButtonTextTheme.primary, // textTheme: ButtonTextTheme.accent, padding: EdgeInsets.symmetric(horizontal: 17, vertical: 12), shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(10.0)) ), floatingActionButtonTheme: FloatingActionButtonThemeData( backgroundColor: Colors.red, foregroundColor: Colors.white ) 
In a majority of the cases, this works fine. However, not all widgets (such as the popup/context menu) can be styled here.​In these cases, is it suggested to use Custom Widgets or local styling? By local styling I mean writing the styles in a separate file, then importing them every time I have to use them.

July 23, 2019 at 05:42AM by themindstorm
https://ift.tt/32MrnD8
New post on /r/flutterdev subreddit:

Flutter app publishing
how long did it take your app to get published after rolling it out ?I'm stuck on pending publish for 6 hours now, it's my first app and my developer account was registered yesterday (payed for it yesterday)

July 23, 2019 at 06:18AM by byshy
https://ift.tt/32KyyMf
New post on Flutter Dev Google group:

install new version can not create project in flutter
getting below Log. Flutter crash report; please file at https://ift.tt/2rosCVB. ## command flutter --no-color create --template app --description A new Flutter application. --org com.example --android-language kotlin flutter_temp ## exception FileSystemException:

July 23, 2019 at 10:03AM by Gayatri Darji
https://ift.tt/2OegfvL
New post on /r/flutterdev subreddit:

flutter_paytm_clone: A sample application to show Paytm Flutter Clone | E-commerce payment system and digital wallet app UI.
https://ift.tt/30Wug2N

July 23, 2019 at 09:52AM by Flutter-Devs
https://ift.tt/2y719x6
New post on /r/flutterdev subreddit:

Because you can't stay mad at a guy with this kind of talent
I uh, made an app https://github.com/LarsDu/OminousBeepingAppNo one release this one, it's mine.

July 23, 2019 at 09:45AM by Fathomx1
https://ift.tt/30ZulCX
New post on Flutter Dev Google group:

Animate an Icon view
Hi, Pls help. Im trying to animate the Cart Icon to the top-right (as indicated in the image) when its tap. And when it reaches the top-right, it will disappear. and returns to its original location. [image: Screen Shot 2019-07-23 at 4.04.45 PM.png]

July 23, 2019 at 10:12AM by Sherwin de Jesus
https://ift.tt/2GqiaXG