Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
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…
New post on Flutter Dev Google group:

Instance member 'user' can't be accessed in an initializer
Hello, I am trying to pass the user.uid from the NavigationPage to ProfilePage, but I get this error message: "The instance member 'user' can't be accessed in an initializer. Try replacing the reference to the instance member with a different expression". I am using the following code: class

April 27, 2021 at 04:28PM by Alvaro Gonzalez Rico
https://ift.tt/3xt6b4F
New post on Flutter Dev Google group:

Selected Item in List-- show position
Hi Flutter Community, I posted a question yesterday and just realized I can do a better job at describing my issue, so here is a better description of it! I have ListView.builder with horizontal scrolling (a custom top navigation bar). As I scroll to the right, the 'selectedIndex' is changing,

April 27, 2021 at 06:09PM by Andrew Villegas
https://ift.tt/3viteNu
New post on /r/flutterdev subreddit:

Fixed/sticky header DataTable and PaginatedDataTable
https://pub.dev/packages/data_table_2This package extends Flutter's standard DataTable and PaginatedDataTable widgets with sticky/fixed header row (and paginator) capability. The new widgets are DataTable2 and PaginatedDataTable2, they provide same API as the originals, and can be in-place replacements.The widgets behave differently than originals - they always stretch to fill the container and spreaed avaialable space between columns (potentially clipping cells) - stock widgets build the table as big as needed to diaplay contents of all cells. DataColumn2 can be used instead of DataColumn to define relative sizes of columns (S, M, L). Table can have minWidth defined and itt will scroll horizaontaly if the container happens to be smaller. DataRow2 has row level tap events (originals have cell level taps) and right click events.

April 27, 2021 at 06:15PM by medicince
https://ift.tt/32Q7gWb
New post on /r/flutterdev subreddit:

Best Udemy course to learn Flutter
I am currently learning flutter. I know some dart and I'm trying to find the best Udemy course to take to help me build a finance app. (other resources would be helpful too).

April 27, 2021 at 06:57PM by youngpicassoo
https://ift.tt/3gEXMoN
New post on /r/flutterdev subreddit:

Database
Wath is the best database for flutter ? Sqflite to have its own database and not pay fees?

April 27, 2021 at 06:52PM by Creative-Ostrich7385
https://ift.tt/3noaGZI
New post on /r/flutterdev subreddit:

Flutter Developer Needed
Hello, I'm looking for a flutter developer with at least a year of experience. I run an education technology start-up and we need a developer position filled ASAP. Please reply if you would be interested.

April 27, 2021 at 06:50PM by SampleConscious7490
https://ift.tt/3sQWMQQ
New post on /r/flutterdev subreddit:

build a custom browser in Flutter - embedding a chromium webview
hiim looking to build a custom browser. Now I'm using a customised webview that I have built using the chromium source code.. but im not able to figure how to embed it in flutter ? Other than the webview, im looking to build everything in Flutter.Somewhat like https://github.com/pichillilorenzo/flutter_inappwebview, except that I want to use my own compiled webview.Android only for now.

April 27, 2021 at 07:47PM by sandys1
https://ift.tt/2R19lfk
New post on /r/flutterdev subreddit:

Verified Publisher : Can we have two different google account with same verified publisher
I have a question which i didn't find in the docs , can we have the same verified publisher for two different google account.​For example :I have two package both are on my different google account, can I publish them with different email account on pub.dev but the same publisher?OR both need to be published via one google account ?

April 27, 2021 at 07:24PM by jarvisatwork
https://ift.tt/3gJb1oA
New post on Flutter Dev Google group:

Problem with UI
Please explain me, how to create a page with multiple elements (from top to bottom) in Flutter. For example, a user's profile page (which contains user info, friendslist, and many other data that are bigger than screen height) I tried to create a ListView whose elements are Image, Text, ListView,

April 27, 2021 at 09:01PM by Steepe Hare
https://ift.tt/32ZObk9
New post on /r/flutterdev subreddit:

Access Native Settings using Flutter
https://ift.tt/3aHyIcM

April 27, 2021 at 08:17PM by Gags_21
https://ift.tt/3nsYUNr
New post on /r/flutterdev subreddit:

How do you remember Widgets ?
I am writing my first app after having done a couple tutorials, but it just seems like there are hundreds of Widgets and I never know which one to use. I got used to the basic ones (Row, Column, Container... etc) but there are some that are perfect in some less common situations.How do you remember the somewhat less common Widgets ?Which specific resources do you use to find that Widget you forgot about, but you know exists ?3.Which specific resources do you use to find out about Widgets you don't know ?Thanks !PS: I have decent programming experience so the problem is not the programming concepts themselves

April 27, 2021 at 10:06PM by joris_limonier
https://ift.tt/2Qt0tPJ
New post on /r/flutterdev subreddit:

Wifi direct in Flutter
Hello,I have been doing some research about adding wifi direct in my app instead of a regular bluetooth connection. Basically, my app (iOS and Android) will have to connect and send data to another Android app (via wifi). I found some things but I was curious to see if someone in this community implemented something of the sort using the Flutter framework. How was it ? Which library ?Thanks

April 27, 2021 at 10:00PM by patate_cool
https://ift.tt/3aJKSC7
New post on /r/flutterdev subreddit:

How to get cookies from HTML response?
Hi, this is marshall, I am sorry I am a newbie of coding, I am making my first application in my life to connect my vanilla forum to an mobile app. I do not need a full function. I just need the user the see the posts and comments, and login and post new discussions or comments. They are not managing their account on the mobile app. I managed to created a php file as an api, I created an admin token and stored in the php file. So the php can talk to the server with vanilla default apiV2.Things started well until I hit the wall of "Auth", I search in multiple forum html files and I managed to send the password and username to the website with the link of default submission. it returned an html. and some cookies.The userid token is emblemed in the html file , call "transient ID", I do not know how to capture this token from an returned html and store it in local store.I do not know how to save all those cookies (I do not know which one, there is like 10 keys) and use it to for another post request.so far I tested with postman, here is what I found:Post request on ../post/discussion work fine and successfully send a disccussion post to my forum with a 200 return, with 2 conditiona json file { "TransientID: "Value of TransientID (I manully copy from the html file and paste on this json)", item1":"item1-value","item2":"item2-value","item3":"item3-value",...}the cookies created after Login require (email & password)Any one can tell me how to capture the above 2 set of data with flutter plugin and code?or if you have any suggestion.. please let me know, I search for flutter project for 2 months... google show almost no useful information for forum, but only chat app. (and mostly firebase... I am using mysql database.)

April 27, 2021 at 09:16PM by Marshallmatta
https://ift.tt/3nrZyL9