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

Offline geolocation using flutter
Hello guys! so I am trying to get a flutter app to pretty much do what the geopoint-location lib does ( https://pub.dev/packages/geopoint_location ) only do it offline. that is - take device geolocation coordinates and output the region name. how would you suggest doing that?From what I understand this geopoint-location package uses some sort of web database to retrieve the region name, since it didn't work if the device is offline.My idea is perhaps try using this package, only connect it to a device storage database (perhaps not storing the entire database but only GETting small chunks of it from the server). since I am new in flutter / dart I'd love to get any input from you guys, thanks!edit: would be cool if you could direct me to resources on how to build / edit / find such a database that holds world regions names and perimeter (be it polygons or whatever).

December 17, 2019 at 09:53PM by BarbDart
https://ift.tt/35AWq64
New post on /r/flutterdev subreddit:

Dart extensions, generating `copyWith` methods
https://ift.tt/34uIUj1

December 17, 2019 at 10:20PM by numen31337
https://ift.tt/38Lgyo2
New tweet from FlutterDev:

🌎Around the world, around the world.🌍

We all have different inspirations. What do you use Flutter for?
#FlutterInteract → https://t.co/7agMfGCER2 pic.twitter.com/Nq7LhV36Ko— Flutter (@FlutterDev) December 17, 2019

December 18, 2019 at 12:34AM
http://twitter.com/FlutterDev/status/1207081764398612480
New post on /r/flutterdev subreddit:

What is the best backend for Flutter?
I'm doing a project to create a trading platform. After some research, I ended up agreeing on using flutter due to its performance. I was planning to use Laravel as the backend of my application, but it's quite hard because the user wants the application to be real-time.So is there any better backend framework/service for Flutter? I'm willing to learn other language.Thanks reddit, really need help here

December 18, 2019 at 05:18AM by gregory_sykes
https://ift.tt/36LAkxN
New post on /r/flutterdev subreddit:

Getting location while the screen is off.
Hey, I'm developing an app that needs to retrieve the users location and store it for later db writing while the screen is off. Is there any way to do this? Or do I have to do some funky native stuff?

December 18, 2019 at 04:57AM by Keatron--
https://ift.tt/2EvHdao
New post on Flutter Dev Google group:

google-sign_in throwing "Platform Exception" on Android.
Hi All, Did any one encounter this scenario with google_sign_in on Android where, after selecting one of the existing mail on Android device, soon it's throwing the platform exception. Currently we are using the "google_sign_in" plugin with 4.1.1 version. Any help on this is appreciated.

December 18, 2019 at 07:32AM by appctest mail7
https://ift.tt/2Z5o3BN
New post on Flutter Dev Google group:

Flutter View-ViewModel with Provider
I'm refactoring my Flutter code. By planning to separate the View and State Management in separate files. 1. Am I doing it right? I created a ViewModel class that inherits the ChangeNotifier class as follows. 2. my problem now is, every time I open the page. The state still stores the past state.

December 18, 2019 at 08:10AM by Black Clover
https://ift.tt/2PBdsvr
New post on Flutter Dev Google group:

Use setState in ListView
I trying to get data from two tables and display to ListView. child: Container( child: StreamBuilder
New post on /r/flutterdev subreddit:

<b>Why are we embracing Flutter in our team?</b>
Originally published <a href="https://www.sadmansamee.blog/why_embrace_flutter/">here</a>The Simple answer is <strong>to make our life easier</strong>, for details <strong>keep reading!</strong>I work at a start-up. And like any other start-up, it has that typical start-up workload and crazy requirements that we need to meet along withFaster Delivery.Lack of resources.Frequent feature request.Experimental features.And off-course, technical debt.we have two codebases for two platforms (Android, iOS) written in Objective-C, Java and partially(new features) Kotlin and Swift. And those legacy codebases are hard to manage, fix bugs or to modify. It is much easier for the team to write a new and better one than carrying on with the legacy code.For a fast delivery and frequent request for new features, there are some problems faced by all the start-up programs where people are usually working on different platforms. when two-person working on two different platform tries to develop the same feature, usually the features end up looking nonidentical. Most of the time these same features from different platforms don't get finished at the same time and fail to meet the deadlines, thus a delay in the release date! it's not that they lack very good communication, planning or a good amount of effort, still, it happens.here's why :Two solution always seems a bit different after implementation due to human biases.Two teams produce two different kinds of bugs.Individually they solve each bug, costing more time.QA team invests triple the effort on each platform to find bugs, test functionality, and match between the platform so check if both teams could achieve the same thing or not.That results in prolonged development time, delay in the release day (making the product and commercial team unhappy).The solutionA unified codebase that will serve both platforms so thatAll the team members can work on the single codebase to implement a single feature to avoid human biases reducing the number of bugs and feature mismatch.Lesser QA team effort.A lot less development time.A lot less effort on maintenance and bug fix.Fast feature request full-fill.But the question is, there are many options to choose from but which one should we choose?Ionic and Xamarin weren't a good candidate. We tried out React-native a bit last year and decided not to continue for the following reasons:Performance lag.Can't render complex shadows.Buggy ( at least it seemed to me).It's hard to write and debug JS code( for a dev who's background is Java, Swift or strongly typed language)Flutter to the rescue!!!I was skeptic at first but then did some demo project, read some case studies on other companies. Finally, embraced it and decided it's a perfect candidate.reasons are:Marvelous performance.Declarative UI code that helps in faster and easier implementation of modern reactive features.Great tooling.Able to add to existing Android and iOS projects as a third-party dependency.Fast development.UI rendering is awesome.How exactly will the transition follow? there will be three stages:<strong>Identification Stage:</strong> At first we need to identify which are the existing features that need to be written with Flutter (legacy code or the buggy ones). And off-course, new features that will be developed in Flutter.<strong>Transition Stage:</strong> At this stage, we will be converting legacy or buggy native codes to Flutter. In this stage, APK/IPA size might be a bit bigger because of many factors ( discussed in detail on my next blog). (duration: 3 - 6 months)<strong>Final Stage:</strong> At this stage, all the native codes will be converted to Flutter making all the codes to be dart code.
This is the initial plan, I'll write another technical blog after a few days about the progress and difficulties that we could face and how to solve them.Originally published <a href="https://www.sadmansamee.blo
New post on /r/flutterdev subreddit:

New to flutter
Vscode on my pc wont work -- it just appears as a dark window with none of the features not even the window bar present. I have uninstalled and installed different versions but still does not work. Please can you guys help me out ?

December 18, 2019 at 12:43PM by Mohammed_Nazideen
https://ift.tt/2Ercn2K
New post on /r/flutterdev subreddit:

<b>The method '>' was called on null.</b>
Im getting an error while executing some code from the Flutter CodeLabs Website&#8203;import 'dart:async';import 'package:flutter/material.dart';import 'package:flutter_test/flutter_test.dart';&#8203;class MyWidget extends StatelessWidget {u/overrideWidget build(BuildContext context) {return Row(children: [BlueBox(),BlueBox(),BlueBox(),],);}}&#8203;class BlueBox extends StatelessWidget {u/overrideWidget build(BuildContext context) {return Container(width: 50,height: 50,decoration: BoxDecoration(color: <a href="https://Colors.blue">Colors.blue</a>,border: Border.all(),),);}}&#8203;&#8203;&#8203;&#8203;Launching lib\main.dart on Android SDK built for x86 in debug mode...Initializing gradle...Resolving dependencies...Running Gradle task 'assembleDebug'...Built build\app\outputs\apk\debug\app-debug.apk.Installing build\app\outputs\apk\app.apk...Syncing files to device Android SDK built for x86...I/flutter ( 4050): &#9552;&#9552;&#9569; EXCEPTION CAUGHT BY RENDERING LIBRARY &#9566;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;&#9552;I/flutter ( 4050): The following assertion was thrown during performLayout():I/flutter ( 4050): Horizontal RenderFlex with multiple children has a null textDirection, so the layout order isI/flutter ( 4050): undefined.I/flutter ( 4050): 'package:flutter/src/rendering/flex.dart':I/flutter ( 4050): Failed assertion: line 439 pos 18: 'textDirection != null'I/flutter ( 4050):I/flutter ( 4050): Either the assertion indicates an error in the framework itself, or we should provide substantiallyI/flutter ( 4050): more information in this error message to help you determine and fix the underlying cause.I/flutter ( 4050): In either case, please report this assertion by filing a bug on GitHub:I/flutter ( 4050): <a href="https://github.com/flutter/flutter/issues/new?template=BUG.md">https://github.com/flutter/flutter/issues/new?template=BUG.md</a>I/flutter ( 4050):I/flutter ( 4050): User-created ancestor of the error-causing widget was:I/flutter ( 4050): MyWidget file:///C:/Users/rjsod/AndroidStudioProjects/flutter_app/lib/main.dart:5:23I/flutter ( 4050):I/flutter ( 4050): When the exception was thrown, this was the stack:I/flutter ( 4050): #2 RenderFlex._debugHasNecessaryDirections (package:flutter/src/rendering/flex.dart:439:18)I/flutter ( 4050): #3 RenderFlex.performLayout (package:flutter/src/rendering/flex.dart:638:12)I/flutter ( 4050): #4 RenderObject.layout (package:flutter/src/rendering/object.dart:1701:7)I/flutter ( 4050): #5 RenderView.performLayout (package:flutter/src/rendering/view.dart:152:13)I/flutter ( 4050): #6 RenderObject._layoutWithoutResize (package:flutter/src/rendering/object.dart:1578:7)I/flutter ( 4050): #7 PipelineOwner.flushLayout (package:flutter/src/rendering/object.dart:844:18)I/flutter ( 4050): #8 RendererBinding.drawFrame (package:flutter/src/rendering/binding.dart:341:19)I/flutter ( 4050): #9 WidgetsBinding.drawFrame (package:flutter/src/widgets/binding.dart:761:13)I/flutter ( 4050): #10 RendererBinding._handlePersistentFrameCallback (package:flutter/src/rendering/binding.dart:280:5)I/flutter ( 4050): #11 SchedulerBinding._invokeFrameCallback (package:flutter/src/scheduler/binding.dart:1033:15)I/flutter ( 4050): #12 SchedulerBinding.handleDrawFrame (package:flutter/src/scheduler/binding.dart:975:9)I/flutter ( 4050): #13 SchedulerBinding.scheduleWarmUpFrame.<anonymous closure> (package:flutter/src/scheduler/binding.dart:784:7)I/flutter ( 4050): #22 _Timer._runTimers (dart:isolate-patch/timer_impl.dart:382:19)I/flutter ( 4050): #23 _Timer._handleMessage (dart:isolate…
New post on /r/flutterdev subreddit:

MVP and Flutter
Hi all! I want to post here how I structure my Flutter apps using MVP architecture (that isn't listed on flutter.dev in state management approach) so I would like to know from your experiences if software code structured in this way is solid.I use this architecture with my Android apps so I bring that on Flutter. I know that most used Flutter architecture is BloC but with MVP it can be possible to separate logic from widget states to keep all simple and clean.I attach an example of MVP flutter app so you can review it.What do you think about it? 😉Futter MVP

December 18, 2019 at 11:54AM by tapeo
https://ift.tt/36Odjuo
New post on Flutter Dev Google group:

How to add text below the image in carousal slider and pass the text pagination
I have used carousal slider
New post on /r/flutterdev subreddit:

Semi circle navigation in Flutter
Hi everyone,
I want to do a semi circle navigation where I can drag and rotate the circle between tabs.
Someone asked this question 10 month ago, but all the links in the answers are now unavailable. https://www.reddit.com/r/FlutterDev/comments/aluwwt/how_can_i_make_a_semi_circle_navigation_in_flutter/I am far along in many ways, but I feel like I'm reinventing the wheel (pun intended).
Do you know of any good tutorials for rotating a circle with onPanUpdate?Can someone help me please? :)
Thanks!

December 18, 2019 at 02:59PM by auroralaufey
https://ift.tt/2S5zh7K
New post on /r/flutterdev subreddit:

Flutter with Oracle
Hello there Everyone!I am working on a project for my Course work in which we are instructed to build any web or app or desktop app via oracle as database but anything as Frontend.I just wanted to know that is it possible to use orcale with Flutter? If yes, can u please give me little guidance as I've left with 2 days only.I need the connection, where I can run queries and access database via flutter. I know flutter enough to make front end.Thanks a lot ❤️😊

December 18, 2019 at 04:11PM by m_hamzashakeel
https://ift.tt/2PzOooA