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

How to showcase your app development projects?
As a web developer you can just host your site on github. I'm learning app development and I want to showcase whatever I do somewhere for free to my friends. How do I do it?

July 01, 2020 at 03:06PM by Zangruver
https://ift.tt/38mbgzt
New post on Flutter Dev Google group:

Unable to run tests using Test package in flutter, Android Studio
Here are the details to my question. Any help you be great! Here is my link to SO: https://ift.tt/3geWqNT

July 01, 2020 at 04:12PM by savarav abhirham
https://ift.tt/3gjDwWu
New tweet from FlutterDev:

Announcing...
🥳The Flutter @CodePen Challenge, starting July 6th!

A month-long challenge to show off your amazing #FlutterPen designs to CodePen’s community of over a million designers and coders.

Learn more here → https://t.co/bTPEWALQRs pic.twitter.com/t7bOtqOujB— Flutter (@FlutterDev) July 1, 2020

July 01, 2020 at 05:07PM
http://twitter.com/FlutterDev/status/1278344584716627968
New post on /r/flutterdev subreddit:

<b>Does anyone here not use ThemeData for colors and font styles?</b>
There are a few issues I've been having, and I'd like to know if any of you face the same issues and what to you do to fix them:<strong>It's unclear what each color in in ColorScheme changes</strong>. There are <a href="https://api.flutter.dev/flutter/material/ColorScheme-class.html">so many properties</a>, but I feel that the documentation is not very clear. (<a href="https://github.com/flutter/flutter/issues/36624">related issue</a>)For example, for primaryVariant, the docs say "A darker version of the primary color", but it doesn't mention which widgets specifically use them. Are we supposed to use trial and error to find out?<strong>It feels a little limiting at times</strong>. In TextTheme, there's a property for button. It's great that you can set a single style for all your buttons. But what if you have to introduce another button of a different style? I know copyWith is available, but that requires me to define my text styles in two different places (some are in ThemeData.textTheme, some are not)<strong>I feel like I'm "defining what I don't want" rather than stating what I want</strong>. So to make a ColorScheme, all (16?) properties are required, and I don't know exactly what each of them does. The default accent (or is it primary?) color is blue, and I wanted to change that. I changed primary, accent, and secondary thinking that the focus color of a textfield would change, but it didn't, so it's obviously another property that controls this.<strong>Hot reload</strong>. Hot reload works, but the ThemeData has to come from a getter. I learned this the hard way. (Not sure if this is really an issue though)<strong>My solution</strong>Define all text styles in a file (<a href="https://github.com/ninest/Shots/blob/master/lib/src/styles/text_styles.dart">example</a>)Define all colors in another file (<a href="https://github.com/ninest/Shots/blob/master/lib/src/styles/colors.dart">example</a>): This has the added advantage of adding as many colors as I want, which I can give custom names (if secondary, secondary variant, surface, on surface don't make sense to me)esOnly use ThemeData to set defaults, like the default font (when style is not provided) (<a href="https://github.com/ninest/Shots/blob/master/lib/src/styles/theme.dart">example</a>).<strong>Another solution of text styles and colors:</strong>Here's my app colors dart file:<pre>import 'package:center/src/services/theme_service.dart'; import 'package:center/src/state/settings_state.dart'; import 'package:center/src/utils/theme_enum/theme_enum.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; AppColors(BuildContext context) { // get theme from state (using provider) final settingsState = context.watch<SettingsState>(); final currentTheme = settingsState.themeEnum; switch (currentTheme) { case ThemeEnum.light: { return ColorSet( background: Colors.white, heading: Colors.black, body: Colors.black87, ); } case ThemeEnum.dark: { return ColorSet( background: Colors.black, ); } case ThemeEnum.blue: { return ColorSet( background: Colors.blue, ); } case ThemeEnum.red: { return ColorSet( background: Colors.red, ); } } } class ColorSet { ColorSet({ // defaults this.background, this.heading = Colors.white, this.body = Colors.white70, this.error = Colors.red, }); Color background; Color heading; Color body; Color error; } </pre>Basically, what's happening is it's returning a custom object I made (ColorSet) which has properties such as background, body, and heading.Then my text styles dart file looks something like this:<pre>import 'package:center/src/state/settings_state.dart'; import 'package:center/src/styles/colors.dart'; import 'package:center/src/styles/values.dart'; import 'package:center/src/utils/theme_enum/theme_enum.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; class Styles { static get…
New post on /r/flutterdev subreddit:

How to install Runner.app/ipa from Codemagic.io on iPhone?
Created sample demo app with Android Studio (i'm on Windows, don't have mac), pushed to gitlab, started build on codemagick, got email with Runner.app file, exctracted it, put in inside Payload folder, then made an IPA from it by zipping it.uploaded ipa to these sites and tried to install on my iPhonehttps://www.installonair.com/ — app is downloading, but then "unable to install"
https://www.diawi.com/ — "4001009: Invalid .ipa file: missing embedded mobileprovision" getting this after uploading my ipa

July 01, 2020 at 05:26PM by ReglrErrydayNormalMF
https://ift.tt/31vY4qt
New post on /r/flutterdev subreddit:

Cubit is a lightweight state management solution. It is a subset of the bloc package that does not rely on events and instead uses methods to emit new states.
https://ift.tt/3cwe1yH

July 01, 2020 at 08:18PM by EngineerScientist
https://ift.tt/2AkGtXg
New post on /r/flutterdev subreddit:

Tell us your journey with flutter
This question is mainly addressed, but not limited, to flutter developpers with no app development background whatsoever, for the reasons below.As you might have guessed it, I have no background in app development, and even though I am learning more and more about the technology, I am still afraid to bump into some unforeseen obstacle that would make me quit.I would like, through this discussion, to gather people like me, so that it inspires other and myself to keep going forward and have an idea of what lies ahead.Please, do not spare the details, may you be remembered by all of us.

July 01, 2020 at 08:17PM by yandelyano
https://ift.tt/2VxCHBe
New post on /r/flutterdev subreddit:

Is it possible for the back button to have the same behaviour as the appbar's back arrow?
Hi guys ! I found a nice example on the internet of an app. It's about navigation between widgets.​article: https://medium.com/flutter/getting-to-the-bottom-of-navigation-in-flutter-b3e440b9386​full code: https://gist.github.com/HansMuller/b189642d10fd236a41044fdf7626f7b0How can I get the back button to have the same behaviour as the back arrow of the Appbar. The latter just returns to the previous screen. The backbutton exits the app entirely.​I managed to add WillPopScope at the root of the tree widget of HomePage:
WillPopScope( onWillPop: (){ //return Navigator.of(context).maybePop<bool>(false); Navigator.pushNamed(context, "/"); return Future.value(false); }, 
this works, but returns to the first tab of the bottomNavigationBar even if you have others selected. It still doesn't behave like the back arrow of the AppBar.​I tried replacing in the onWillPop callback with :
Navigator.of(context).maybePop<bool>(false); 
but with no success, it results in an endless loop. Even though the appbar actually calls this function.​What do you guys think of this?

July 01, 2020 at 08:36PM by 0x7ED
https://ift.tt/3gdYW7a
New post on Flutter Dev Google group:

Flutter 1.17.5 hotfix released to stable.
Hi, Flutter 1.17.5 has been released to stable. This is a hotfix release on the 1.17 branch and has no Dart update (it remains on 2.8.4). Changes for this build are listed below and are available on the Flutter Wiki here: Hotfixes to the Stable Channel
New post on /r/flutterdev subreddit:

I created a GitHub repo w/ useful references to Flutter
Hi guys.I just created a repo to take note about every useful package, lesson, guide and article that I find on the web. I'll update it every time I find something new. Feel free to suggest guides and stuff you think can improve the list.Link to the repository: GitHub

July 01, 2020 at 09:50PM by SaltySpag
https://ift.tt/2ZwHuUC
New post on /r/flutterdev subreddit:

What’s it like to get started with Flutter coming from a native developer background? What about moving from native languages to Dart? A look at Flutter from a native developer:
https://ift.tt/2nfV283

June 30, 2020 at 09:02PM by MechaSnowflake
https://ift.tt/2ZHujR9
New post on Flutter Dev Google group:

Flutter-VideoPlayer not working with m3u8 files
Hi Everyone, I am trying to play a Video with m3U8 extension using the video_player plugin. But the video is not getting played. Can anyone help me in this regard, please? My video file is; https://ift.tt/3il60k9 maf/159185187810

July 02, 2020 at 03:54AM by Renjith AK
https://ift.tt/3ggptkk
New post on /r/flutterdev subreddit:

I can't run my Flutter code using an iOs simulator using xcode
Hi guys, I just wanted to ask if how can I run a flutter code on my vscode using iOS simulator? I run my flutter doctor and here is the error. " ✗ Flutter requires a minimum Xcode version of 11.0.0. ✗ CocoaPods not installed. Is it really required to have the latest Xcode version? I am on Mojave and I can't run the latest Xcode version. :(

July 02, 2020 at 06:07AM by samclavaton
https://ift.tt/3ilo5i1