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

Double SliverAppBar in Flutter!
Hey guys,after a huge success in releasing my brand new Flutter app, I've got tons of enquiries on how did I do this custom double appbar in Flutter. Therefore I've decided to write a quick tutorial on how to make it!https://medium.com/@aurimas.deimantas/double-sliver-appbar-in-flutter-95d94627db07​Share your thoughts and struggles on what you'd like me to cover next! :) Hope it helps to boost creation of more beautiful Flutter apps!

December 22, 2019 at 05:53AM by Deimantasa
https://ift.tt/2Zczl7e
New post on /r/flutterdev subreddit:

Android studio emulator isn't showing the colors properly.
The Android studio emulator is not showing the colors specified properly, instead its showing the color lighter then the original color. But if I run it in a physical device , then the color is properly shown.This is an screenshot for comparison between my emulator color and the original color https://ibb.co/tm2sGps .This is the code i used https://ibb.co/fCCp48b .Help me with this issue.

December 22, 2019 at 05:45AM by kisansakthi
https://ift.tt/2sWSEp1
New post on /r/flutterdev subreddit:

Get Assets root path??
Hi, i'm developing an app where you can download images with its url and I want to save this images in the assets to later display them with a webview which is also inside the assets folder, but I need to get the path of the folder, how can I do this??

December 22, 2019 at 05:33AM by fmaldonado6
https://ift.tt/2rimHY1
New post on Flutter Dev Google group:

Gradle build failed to produce an .apk file
After upgrading Flutter from 1.9.7 to v1.12.13+hotfix.5 my application build failed. I got the following exception, However when i open my application in Android module in Android Studio then it runs fine but when i tried to run with Flutter i got that error. [ +5 ms] > Task :draw:assembleFos

December 22, 2019 at 09:58AM by Kamran Ali
https://ift.tt/34L3bkB
New post on /r/flutterdev subreddit:

FlutterForce — Week 57
https://ift.tt/35PBVTh

December 22, 2019 at 12:37PM by flutterist
https://ift.tt/34LfDAW
New post on /r/flutterdev subreddit:

Hive v1.2.0 supports relationships, inheritance and more.
I just published a new version of Hive (key value database for Flutter) and wanted to show you how relationships work:
class Person extends HiveObject { String name; HiveList<Person> friends; Person(this.name); } void main() { var persons = Hive.box<Person>('persons'); var mario = Person('Mario'); var luna = Person('Luna'); var alex = Person('Alex'); persons.addAll([mario, luna, alex]); mario.friends = HiveList(persons); // Create a HiveList mario.friends.addAll([luna, alex]); // Add Luna and Alex to Mario's friends mario.save(); // Persist the changes print(mario.friends); // [Luna, Alex] luna.delete(); // Remove Luna from Hive print(mario.friends); // [Alex] (HiveList updates automatically) } 
You can also find this example in the documentation.The new version also allows abstract HiveObjects and supports inheritance between HiveObjects.

December 22, 2019 at 03:31PM by leisim
https://ift.tt/2So39N7
New post on /r/flutterdev subreddit:

Just pushed get_it V3.1.0
Just pushed get_it V3.1.0 with some bug fixes for edge cases and a new function to reset LazySingletonshttps://pub.dev/packages/get\_itBtw you can now like packages you like :-)

December 22, 2019 at 04:43PM by escamoteur
https://ift.tt/370MLpA
New post on /r/flutterdev subreddit:

Shifting career to CS
Hello wonderful people, I got here asking for an advice from people who work in the industry rn, so as a beginner I only know java now and I just started android/java tutorial by google on Udacity a couple weeks ago and I don't wanna waste time on just android learning Java and then learning Kotlin as it's google's main language now which is a long process, and i wanna do mobile Dev, i asked some people who work in the field and in the market right now and they highly recommend Dart/flutter as they told me it's the future for mobile dev and soon web and desktop, so as a beginner just started in the field and only know java and basic android dev with java, should i just go with Flutter right away right now and master it and don't waste my time with Java android then Kotlin, or keep doing what I am doing with android/java to get some experience and after i do some apps with java move to Dart/flutter?if you're wondering what my goal is, so my goal is landing a job as soon as possible and do some freelance, so time is a main factor for me cause i quit my job to shift my career

December 22, 2019 at 06:02PM by hamohuh
https://ift.tt/2ZgCCCG
New post on /r/flutterdev subreddit:

Flutter: Animate the Container
https://youtu.be/-PzD4Ey_WgA

December 22, 2019 at 07:57PM by codeify2019
https://ift.tt/2SkqvCX
New post on /r/flutterdev subreddit:

Flutter Web for production
Hi guys. Is there an expected date for Flutter Web to be production ready? I'm starting a project now that should be deployed by June 2020 ish. Should I invest in Flutter? Or won't it be production ready by then? For now the only major problem I see are the load times... I don't care about SEO and I don't need distinct URLs for different pages either, Flutter would fit like a glove.Thanks in advance!

December 22, 2019 at 08:26PM by Zizico2
https://ift.tt/2PMFDay
New post on /r/flutterdev subreddit:

I've created Data Class generator
The dataclass_generator generates base class with methods:operator==hashCodetoStringcopyWith​https://github.com/jarekb123/dart_dataclassLet me know what your thoughts about the package.

December 23, 2019 at 12:04AM by jarekb123
https://ift.tt/2EQdf0V
New post on /r/flutterdev subreddit:

cli tool to update dart imports.
As a user of visual code, refactoring source files (moving/renaming) is a pain as visual code doesn't update import statements.To solve this problem, until vscode provides a fix, I've built a cli tool that is able to move/rename dart libraries and will update any import statements so they point to the new path.You need to install the package globally so run:pub global activate drtimportYou can then move a single dart library or an entire folder by running:drtimport move lib/myfile.dart lib/src/myfile.dartordrtimport move lib/scripts lib/src/scriptsIf you have already moved the file and your imports are screwed you can run the patch commanddrtimport patch scripts src/scriptsThis will find all import and export statements which contain the string 'scripts' and change it to 'scr/scripts'.Check the readme for details on using the app.I strongly recommend committing your code into git before running drtimport.We use it on a mid size project and it works nicely.https://pub.dev/packages/drtimportI hope you find it useful.

December 23, 2019 at 02:49AM by bsutto
https://ift.tt/36T4KOS
New post on /r/flutterdev subreddit:

Flutter Pro Tip: Prefer Discrete GPU For Smoother Testing FPS
If you are on MacOS running the iOS simulator for testing, and your Mac has a discrete GPU, you can choose to prefer that GPU. It will significantly increase frames per second. My 2018 MBP with Vega 16 discrete graphics was defaulting to the integrated Intel graphics. The frame rate was choppy and slow even on a basic app with just the default material transitions. Switching to discrete feels more like how it does on a real device (even an iPhone SE is smoother than the integrated GPU). A much nicer experience.With Simulator Open: File -> GPU Selection -> Prefer Discrete GPU

December 23, 2019 at 06:42AM by boon4376
https://ift.tt/35QZnzp
New post on Flutter Dev Google group:

Can't build anything after updating Android Studio & Flutter
Hi, I'm new to developing Apps, but had everything running until I allowed Android Studio to update to the latest version yesterday (v3.5.3). Everything now looks to be updated, but nothing will build, even if I create a new Flutter project it fails. A new project fails on build with the

December 23, 2019 at 10:19AM by Ross Cooper-Smith
https://ift.tt/396tRQf
New post on /r/flutterdev subreddit:

Very few supported devices of my Flutter app on PlayConsole
Its been a very fun adventure with Flutter so far and my app just got published in PlayStore but I have 2 problemsIts not visible on most devicesThe supported devices is VERY FEW (25 only)How do I increase the supported versions of Androids? Like from Jellybean to latest?​​My code for app-level build.gradle is below:​
android { compileSdkVersion 28 sourceSets { main.java.srcDirs += 'src/main/kotlin' } lintOptions { disable 'InvalidPackage' } defaultConfig { // TODO: Specify your own unique Application ID (https://developer.android.com/studio/build/application-id.html). applicationId "com.hivemanila.syncshop_webview" minSdkVersion 16 targetSdkVersion 28 versionCode flutterVersionCode.toInteger() versionName flutterVersionName testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" multiDexEnabled true } signingConfigs { release { keyAlias keystoreProperties['keyAlias'] keyPassword keystoreProperties['keyPassword'] storeFile file(keystoreProperties['storeFile']) storePassword keystoreProperties['storePassword'] } } buildTypes { release { signingConfig signingConfigs.release minifyEnabled true useProguard true proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' } } } flutter { source '../..' } dependencies { implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version" testImplementation 'junit:junit:4.12' androidTestImplementation 'androidx.test:runner:1.1.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0' } 


December 23, 2019 at 12:21PM by cosmoph
https://ift.tt/2ShWJPh