Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
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
New post on /r/flutterdev subreddit:

Issue with different screen sizes
Hi there, I am new to flutter development and I bought udemy course in order to learn more about UI.I run into a problem with different screen sizes. I used iphone 11 pro max simulator for development and everything were fine until I started the app on my samsung s10e and found out that some things are not the same because I had to hardcode values of containers. This is screen on iphone and this is on android. The container dimension was set to 175.0 x 175.0.If i change the size to 150, it looks nice on andorid, but on iphone these rectangles seems to be little bit small.Does anybody have an idea how to fix this problem?thanks :)

December 18, 2019 at 05:08PM by lazarvgd
https://ift.tt/2sDH8yY
New post on /r/flutterdev subreddit:

Major setback with app release.
Hey everyone, I know this isn't a support forum rule 2, I have my issue tracked down and I just wanted to share my first major frustration with flutter. I'm trying to upload to the app store, I am on the stable branch updated to 1.12 last week and had my first flutter app for a client released on the app and play store! Well I'm trying to get an update out today and for some reason I am getting notified that my release build has the following issue!Non-public API usage - The app references non-public symbols in Frameworks/Flutter.framework/Flutter: _ptrace.This is crazy! I didn't touch any of my flutter or project settings and I'm really at a loss as to what to do next. I have tracked the issue down to this: https://github.com/flutter/flutter/issues/37850This is my first real issue with this framework, and having a client deadline I am really bummed I can't rely on flutter. Has anyone else had major road blocks like this? This is really making me rethink using flutter just because I can't rely on it to get my code out when my clients need it. I guess just be cautious when using the framework, and if you have money/ clients on the line native still might be the best option.

December 18, 2019 at 07:31PM by bigBearRat
https://ift.tt/38Tt056
New post on /r/flutterdev subreddit:

How to list the licenses from all 3rd party libraries I'm using?
I'm using a lot of 3rd party libraries and also illustrations in my app. Is there a simple way to display all these MIT/GNU/APACHE licenses in my app? I thought it might be possible to to fetch them automatically from pub.dev.I'd really appreciate any kind of insight!Thank you.

December 18, 2019 at 08:45PM by iamarr0gant
https://ift.tt/35BpZVc
New post on /r/flutterdev subreddit:

Modular, a smart project structure
Hello, guys, we are Flutterando Community created a package to help you structure your project(based on Modules).The Modular give us a bunch of adapted solutions for Flutter, such a dependency injection, routes controller and a "Disposable Singletons" System(When a code provider call automatically dispose and clear the injection). This adapted solutions increases up your project maintainability and reusability.Modular came up prepared for adapt to any state management approach to its smart injection system, managing the memory use of your application.It combined with Slidy CLI(https://pub.dev/packages/slidy) boost the speed of your development at the top.The Modular is under development and we appreciate your contribution/review.Link for Modular: https://pub.dev/packages/flutter_modular

December 18, 2019 at 09:45PM by irvine5k
https://ift.tt/2PXjPIl
New tweet from FlutterDev:

❤️💙A heartwarming story: Patch Me

When Aamani was born her father learned Flutter to create Patch Me, an app to help keep track of her eye patching. The app is available for iOS and Android, for all families to use. #FlutterInteract

See the story here&rarr;https://t.co/hYYDGt1Nil pic.twitter.com/ffKgjZdfX9— Flutter (@FlutterDev) December 18, 2019

December 18, 2019 at 09:51PM
http://twitter.com/FlutterDev/status/1207403117987299328
New post on /r/flutterdev subreddit:

Flutter + Firebase: Sign in with Apple
https://ift.tt/2Z2X2yN

December 18, 2019 at 10:35PM by Elixane
https://ift.tt/2EtYiSc
New post on Flutter Dev Google group:

How to make this animation?
Hi, I need some idea of ​​how to make the animation seen in the video. Please. Thank you

December 18, 2019 at 11:09PM by Jean Paul Gotopo Maldonado
https://ift.tt/35B1QOv