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

Install Flutter & Android Studio - Ubuntu 20.04
tl;dr
sudo apt install openjdk-14-jdk sudo snap install flutter --classic sudo snap install android-studio --classic flutter doctor ----android-licenses flutter doctor 
Install Flutter & Dart plugins in Android StudioStudio: Settings -> Language & Frameworks -> Flutter -> SDKSet to /home/{user}/snap/flutter/common/flutterStudio: Project Settings -> Project -> Project SDKSet to Android API---------------------------------My first time going through the official setup (https://flutter.dev/docs/get-started/install/linux) I had issues with flutter doctor complaining about Java and the Android SDK paths.The linked instructions don't cover installing everything needed to get up and running (including java, installing Android Studio from snap, flutter from snap , while also not having a physical android device to run code, and getting the emulator to work properly from the IDE).Specifically:The sections `Update your path` and `Update path directly` don't apply when installing from snap.Android Studio setup wants you to download from Oracle if you don't have java, but that's not actually required and you can use openjdk.Android Studio section doesn't specify where snap Flutter SDK is installed.Android Studio section assumes you have a physical phone connected.I ended giving up in frustration for a few days. The following got me up and running and is a concise and condensed version of the first three pages of the Getting Started section as well as a couple stackoverflow answers.Hopefully others (and future me) will find this useful.
Technically this post is in violation of rule #9. However as mentioned the official getting started doc was not entirely productive for me. 
Steps I went through to get up and running finally:Do we have Java installed?which javaReturns /usr/bin/javajava --versionThis tells me it's the OpenJDK versionIf you need to install javasudo apt install openjdk-14-jdkOr goto Oracle and download the equivalentsudo snap install flutter --classicsudo snap install android-studio --classicmkdir -p ~/Projects/Android/Sdk # I installed mine thereecho 'export ANDROID_SDK_ROOT="/home/{user}/Projects/Android/Sdk"' >> ~/.bashrcbashflutter doctor --android-licensesKeep clicking yes to acceptflutter doctorEverything should be okay - I get the following output​
Doctor summary (to see all details, run flutter doctor -v): [✓] Flutter (Channel stable, 1.20.3, on Linux, locale en_US.UTF-8) [✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2) [✓] Android Studio (version 4.0) [!] Connected device ! No devices available ! Doctor found issues in 1 category. 
​Open Android StudioGo through initial setupFile -> Settings -> PluginsInstall Flutter and Dart pluginsProject Settings -> Project -> Project SDKMake sure it's pointed to the Android API SDK (allows to run emulator from IDE)Open AVD manager (should already have the Pixel 3 in there)Click the green play button and wait for the emulator to fire upcd ~/Projects/flutterflutter create test_appcd test_appflutter run (demo should be working in the emulator now)​Edit - formatting

September 15, 2020 at 06:49AM by not-bot-3000
https://ift.tt/3iwtlix
New post on /r/flutterdev subreddit:

Should I learn Dart/Flutter or Kotlin?
/r/Kotlin/comments/it4lpf/should_i_learn_dartflutter_or_kotlin/

September 15, 2020 at 10:13AM by Administrator101
https://ift.tt/2H2Z9xN
New post on Flutter Dev Google group:

How to use dart:web_audio
Good day, I am currently trying to use the dart:web_audio library to detect persons speaking in a video conference, but I am facing challenges importing it. I understand it’s a core module in dart but not enabled as part of the flutter SDK but is there anyway of force enabling it? PS :: I

September 15, 2020 at 12:06PM by Ty Chikondo
https://ift.tt/2ZGyT2F
New post on /r/flutterdev subreddit:

Downloading multiple files using Dio Package in Flutter
I am trying to download multiple files using dio package. From this git issue I found out that future.wait can be used to achieve this task, though I am able to update multiple files concurrently but cannot update the database. Here's the downloading code snippet
 download(Attachment attachment) => work(context, () async { final dio = Dio(); final path = await getLocalFilePath(attachment); var downloadRequest = dio.download( attachment.url, path, deleteOnError: true, onReceiveProgress: (count, total) { setState( () { _downloadProgress[attachment.url] = count / total; print(_downloadProgress[attachment.url]); }, ); }, ).then( (value) async { await ReviewDownloadsDB().add({ 'id': attachment.id, 'name': attachment.name, 'url': attachment.url, 'path': path }); }, ); Future.wait([downloadRequest]); }); 
Can someone tell me where I'm going wrong and how can I add the downloaded item to my ObjectDB database after it's downloaded. The complete Code for the screen is present here.

September 15, 2020 at 12:10PM by ApricotAdmirable8748
https://ift.tt/2Rvagl7
New post on /r/flutterdev subreddit:

Audio Playback library for Flutter Desktop
I made an 🎵️ audio playback module for Flutter Desktop.Add in your pubspec.yaml:dependencies:flutter_audio_desktop: ^0.0.5Documentation: GitHub​Consider dropping a star if you wanna show your support.As Flutter for Desktop is growing, I decided to make a plugin for playing audio files in Flutter Desktop because there wasn't any yet.Feel free to use in your flutter app! It supports only Linux at the moment.​(I'll try to increase the supported formats with time. I'm just 17 right now so can't do too much.)

September 15, 2020 at 01:24PM by alexmercerIND
https://ift.tt/33srZ2d
New post on /r/flutterdev subreddit:

App Feedback Thread - September 15, 2020
This thread is for getting feedback on your own apps.Developers:must provide feedback for othersmust include Play Store, App Store, GitHub, GitLab, or BitBucket linkmust make top level commentmust make effort to respond to questions and feedback from commentersmay be open or closed sourceCommenters:must give constructive feedback in replies to top level commentsmust not include links to other appsTo cut down on spam, accounts who are too young or do not have enough karma to post will be removed. Please make an effort to contribute to the community before asking for feedback.As always, the mod team is only a small group of people, and we rely on the readers to help us maintain this subreddit. Please report any rule breakers. Thank you.- r/FlutterDev Mods

September 15, 2020 at 02:33PM by AutoModerator
https://ift.tt/3cc60Rb
New post on /r/flutterdev subreddit:

Pros & Cons: Flame vs Stack & Animated Builders?
What would the differences be if I decided to make a game from using a stack with animated builders instead of Flame? What makes flame special and preferred for game development with Flutter?

September 15, 2020 at 05:16PM by mrgnhnt96-dev
https://ift.tt/33taGhv
New post on /r/flutterdev subreddit:

Hello World!!! I built a Course on Udemy where I teach you how to implement CNN’s, NLP algorithms, and GANs in a Flutter Application! Learn how to build 6 cutting-edge A.I. apps!
In this course I will teach youA simple Neural Network that can understand Sign LanguageA simple Neural Network that can detect Dogs and CatsHow to build a Neural Network in Python that can detect Flowers and export it into Flutter Application with 92% accuracyHow to build a Neural Network in Python that can detect 131 Fruits & Vegetables and export into Flutter App!How to build an app that can perform Sentiment Analysis, aka an A.I. that can understand emotions behind a text!How to build an A.I. that can understand an image and generate a sentence that represents the image! (Image-To-Text, this app is very useful for blind people!)An app that can Generate a realistic looking shoe based off a Shoe Sketch the user draws in a Flutter Application! (Pix2Pix, Youtubers like PewDiePie have made videos on it! Really cool algorithm)If you are passionate about deep learning and want to apply deep learning algorithms to mobile apps then this course is perfect for you!https://www.udemy.com/course/flutter-deeplearning-course/?referralCode=4F58AD6BCBBFA35E99A6

September 15, 2020 at 05:03PM by samboylansajous
https://ift.tt/3koDNsT
New post on /r/flutterdev subreddit:

Using both Mac and Windows Computer for flutter project
Hey I just bought a Macbook and I was wondering what I should do if I want to work on the same flutter project on my Macbook and windows computer. Should I use github or something else? what files should I ignore?

September 15, 2020 at 04:58PM by simp_police
https://ift.tt/3itlz9f
New post on /r/flutterdev subreddit:

Flutter Firebase full stack freelancer needed
Looking for full stack developer with experience in flutter, stripe payment gateway, google cloud functions and firebase. Thanks!

September 15, 2020 at 04:54PM by ranbagga11
https://ift.tt/3iy9MGB
New post on /r/flutterdev subreddit:

Flutter in the web app development. Is it production-ready?
Hey!Do you have any experience with flutter in web app development?
I'm wondering if it is feasible to use flutter on the web or should I use some js framework?
How it is working? Is the development process simple as for mobile? Is everything is working?

September 15, 2020 at 06:21PM by saymmic
https://ift.tt/2RrkLpB
New post on /r/flutterdev subreddit:

New scoping functions in GetIt V5.0.0
*I just pushed V5.0.0 of get_it https://pub.dev/packages/get_it * It has some minor changes so please check the changelog. The most interesting new feature is support of scoping:ScopesWith V5.0 of GetIt it now supports hierarchical scoping of registration. What does this mean? You can push a new registration scope like you push a new page on the Navigator. Any registration after that will be registered in this new scope. When accessing an object with get GetIt first checks the topmost scope for an registration and then the ones below. This means you can register the same type that was already registered in a lower scope again in a scope above and you will always get the latest registered object.Imagine an app that can be used with or without a login. On App start-up a DefaultUser object is registered with the abstract type User as singleton. As soon as the user logs in, a new scope is pushed and a new LoggedInUser object again with the User type is registered that allows more functions. For the rest of the App nothing has changed as it still accesses User objects through GetIt. As soon as the user Logs off all you have to do is pop the Scope and automatically the DefaultUser is used again.Another example could be a shopping basket where you want to ensure that not a cart from a previous session is used again. So at the beginning of a new session you push a new scope and register a new cart object. At the end of the session you pop this scope again.

September 15, 2020 at 07:04PM by escamoteur
https://ift.tt/32xV3pN
New post on /r/flutterdev subreddit:

Dart made it to TIOBE top 20 programming languages list
https://www.tiobe.com/tiobe-index/

September 15, 2020 at 08:15PM by Hiwa_47
https://ift.tt/35KooPT