Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
New post on Flutter Dev Google group:

How to update State of parent widget?
I have a Scaffold that contains a *CustomScrollView* showing a list of items that the User has not tried (and another one that shows the items the User has tried). Using the fantastic package flutter_sticky_header
New post on /r/flutterdev subreddit:

dependency_validator
A tool to help you find missing, under-promoted, over-promoted, and unused dependencies.https://pub.dev/packages/dependency_validator

April 26, 2021 at 07:59PM by marsNemophilist
https://ift.tt/3sSsayt
New post on Flutter Dev Google group:

Custom Top Navigation Bar: Always show 'selectedTab' at the Center
Hi Community, I have a custom navigation Top Bar, consisting of 4 tabs, and it is linked to a PageView. When I tap on an item from the bar, or swipe left or right, the shown page is changed. Only 3 out of these 4 tabs are displayed at a time though, which means that let's say' I swipe/navigate

April 26, 2021 at 08:13PM by Andrew Villegas
https://ift.tt/2R3NjIw
New post on Flutter Dev Google group:

General question about model(s) for Flutter apps
I was reading the section in Flutter docs about creating model objects that inherit from a ChangeNotifier, and it raised a question in my mind more generally about how to approach model design in systems like Flutter (and React, etc.) The app I am about to build (starting with a Web app, but

April 26, 2021 at 09:01PM by Brad Aisa
https://ift.tt/3tY5cqX
New post on Flutter Dev Google group:

XmlHttpRequest error
Hi, I am using Django as backend and implemented CORS, it works in mobile version but it does not work in Web. What is the problem please help me I run Django on local and I also get this message when I try to run the app on web "POST /e_commerce/getproduct HTTP/1.1" 200 278 Error: XMLHttpRequest

April 26, 2021 at 09:11PM by Ilker Gul (Student)
https://ift.tt/3nkQd84
New post on /r/flutterdev subreddit:

Login with Telegram in Flutter App
Today I discovered that Telegram offers to developer also a “Login with Telegram” widget and I thought it would be really cool to add this in flutter apps.Sadly the official documentation only offers instructions for JavaScript (i think, I’m not sure 😅)Any ideas to use it in Flutter? Did anyone tried it so far?

April 26, 2021 at 09:25PM by Elodran
https://ift.tt/2S5tW2x
New post on /r/flutterdev subreddit:

Entry – Make your widgets come to life
https://pub.dev/packages/entryFlutter package that lets you simply animate a widget into a visible state.One widget to animate the opacity, scale, position and angle.You can combine multiple entries. It can be used to create a staggered effect with grid builders.

April 27, 2021 at 12:01AM by MickaelHrndz
https://ift.tt/3vknXFl
New post on Flutter Dev Google group:

custom appbar issue
Hi, I have written custom appbar and trying to use in different screens but then its colliding with notification bar of the mobile.... and there is no spacing between appbar and notification bar of the device ,when I tried to manage the height of the appbar with preferred size it showing like

April 27, 2021 at 03:35AM by vivek sompalli
https://ift.tt/3tX97UO
New post on /r/flutterdev subreddit:

Real world cryptocurrency apps that powered by flutter
Hello, I'm going to create an wallet app about btc, eth and its assets. I'm looking for some real world apps that developed by flutter, close source or open source, I wanna to prove with our team lead about cryptocurrency libs are ready for flutter to create real world app, not prototype or demo app.Thank you.

April 27, 2021 at 04:54AM by wintery2021
https://ift.tt/3xAaivZ
New post on Flutter Dev Google group:

Regarding Editing of Data
I am not able to edit value in TextBoxes. Please help me out. I am filling the value from SharedPreference into the textboxes. Now I want to edit it. But I am not able to do it. Here is my code /// import 'dart:ffi'; import 'package:conqer_music/App/navigationDrawer/navigationDrawer.dart';

April 27, 2021 at 05:54AM by HIMANSHU MISHRA
https://ift.tt/3aFsJFm
New post on /r/flutterdev subreddit:

Why would I want to use ChangeNotifierProxy provider?
I was reading the Provider documentation. I was specifically reading about the ChangeNotifierProxyProvider. It describes that its purpose is when one ChangeNotifier depends on another.Why do I need to use provider ChangeNotifierProxy when I can just do the following...
import 'package:flutter/widgets.dart'; 
class CounterModel extends ChangeNotifier { int count = 0; void increment() { count++; notifyListeners(); } }class OtherModel extends ChangeNotifier { final CounterModel _cm;OtherModel(this._cm) { _cm.addListener(() { // do stuff here. }); } }I can then construct my ChangeNotifiers in main.dart, and OtherModel will be updated of changes to its CounterModel.I assume there are some uses cases that I am missing. Can anyone enlighten me?

April 27, 2021 at 05:57AM by scorr204
https://ift.tt/334lkLX
New post on /r/flutterdev subreddit:

http vs dio
Which do you prefer, http package or dio package? What is difference between them? Why you prefer?

April 27, 2021 at 07:49AM by Old_Actuator_9043
https://ift.tt/3sTbXcf
New post on Flutter Dev Google group:

Access Flutter website
I have a problem in accessing flutter.dev, I tried to access from laptop and mobile and the same issue, I couldn't download the flutter sdk, please help. [image: flutter.dev.png]

April 27, 2021 at 09:50AM by Muhammad Hesham
https://ift.tt/3dWTQy2
New post on /r/flutterdev subreddit:

Is there a way in Flutter desktop to be able to listen for controller inputs?
Hi everyone!I know that it's possible to listen for keyboard activity. However with the advent of Flutter desktop, I can imagine that a lot of OS support still isn't quite covered yet.My idea was it would be cool to be able to visualize in Flutter a flight controller (Specifically i have the Saitek X52 Pro in this case).And i believe that I can bind all of the buttons and switches to key's on the keyboard, but I have no idea what to do with reading the analog signal from the flight stick and thrust controller.I would really love to create some cool sci-fi UI's in flutter that take advantage of custom controllers with analog inputs and thought it could be a fun project.Any ideas?

April 27, 2021 at 09:22AM by mcmalloy
https://ift.tt/3tRBXpI
New post on /r/flutterdev subreddit:

<b>Flutter as Web SPA framework: dare to use it instead of Angular or React?</b>
<strong>TL;DR</strong> it is doable, there're rough edges, Flutter is cleary not 'native' to the web world (unlike Angular) and not completely tailored to Desktop developmentIntroDuring a Flutter workshop that demonstrated how easy it is to build an app for 6 platforms we discussed the most common cases and concluded that the range of supported platforms is great, but not a killer feature. In a realistic scenarious one might need apps for Android and iOS (optionaly PWA) that have same UI. Then there should be an SPA Web app tailored to Desktop screens (and thus having different UI and richer features). There're tools that fit nicely both of the cases and having same tools used for both Mobile and Desktop development might not be that beneficial.A question emerged, if we used Flutter as a web framework to build SPA for desktop instead of Angular or React, what would it be like?Few weeks latter in my company we started a PoC rewriting small part of a legacy app (AngularJS, Node.js, OData) to a new tech stack (Blazor WASM, .NET 5, gRPC). I decided why not try my Flutter skills and build a second client PoC. Sharing my experiences here...DemoBelow are 2 links of the Flutter client I've built:HTML Renderer: <a href="https://maxim-saplin.github.io/flutter_web_spa_sample/html/#/">https://maxim-saplin.github.io/flutter_web_spa_sample/html/#/</a>CanvasKit Renderer: <a href="https://maxim-saplin.github.io/flutter_web_spa_sample/canvaskit/#/">https://maxim-saplin.github.io/flutter_web_spa_sample/canvaskit/#/</a>And the repo: <a href="https://github.com/maxim-saplin/flutter_web_spa_sample">https://github.com/maxim-saplin/flutter_web_spa_sample</a>The apps are built with Flutter beta 2.2.0-10.1.preFeaturesCustom data grid (based on extended stock DataTable) with sticky header, pagination, sorting and Excel like column filters (pop-ups appear when cliking on column headers)Right click context menu for rows via custom widgetA hack to silence browser's context menu when doing right clicksChanging visible columns and saving the configuration to shared_preferences (gear icon)Localization via i18n_extension packageRouting via top menu and sharing 'Master page' between different content pages (there're 4 routes)Layout with fixed header/footer and expanding content areaCustom icons in TTF font generated from SVG (via <a href="https://icomoon.io">icomoon.io</a>) and bundled in assetsPopover/popup for advanced search (magnifier button)Adv. search and filter are implemented via custom_pop_up_menu packageIoC (switching fakes/ gRPC implementations) via Provider state managementflutter_hooks as alternative to StatefulWidgetgRPC back-end intergations and auth via JWT (though not used in demo, fakes turned on)Conditional imports for gRPC client to allow different implementations in Web/Native (gRPC Web Proxy is required for browser clients)EffortIt took me ~7 days (~56 hours) to complete the PoC:First weekend (2 days) to create the layout and customize DataTable to support sticky headersSecond weekend (2 days) to complete the UI fucntionality with mocks and properyl structure the codeAnother 5 days integrating with gRPC, troubleshooting, presenting auth, tinkering with UI etc.Before starting the project I had ~8 months of casual experience with Dart/Flutter doing small projects, as well as some React/Redux experience in 2018/2019.The developer working on the Blazor side (with experience in .NET and React, but not Blazor) spent 3 weeks doing the same client, though not completing it (e.g. no selection of columns, no localization etc.).Subjectively, Flutter was percieved as a very productive tool.Impressions/IssuesDebguing using VSCode (on both Windows and macOS) is very troubling: breakpoints are not predictable (sometime they don't fire, they keep firing event when removed), VSCode debugger occasionally refuses to show variable values. Often…