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

In Flutter web can you use any Flutter package?
Or are there special flutter web packages?Also, are the UX elements you get really limited to Material stuff only? Thats the vibe i get from looking at projects online and it seems kinda ugly.

October 30, 2020 at 04:11PM by dynamobb
https://ift.tt/35Mw7Lv
New post on /r/flutterdev subreddit:

Dart serialization
/r/dartlang/comments/jkysum/dart_serialization/

October 30, 2020 at 04:26PM by erdeicodrut
https://ift.tt/37XbkI2
New tweet from FlutterDev:

✳️ Early access to features like HotUI and `pub outdated` support!

The #FlutterFriday trick: use the dev channel of the IntelliJ plugin! It's a weekly build with all the latest features and fixes.

Learn to install → https://t.co/8pQVtqj6lG pic.twitter.com/0Z8F5BqIi4— Flutter (@FlutterDev) October 30, 2020

October 30, 2020 at 05:03PM
http://twitter.com/FlutterDev/status/1322207542735491073
New post on /r/flutterdev subreddit:

Navigator 2.0 architecture advice/feedback
I've decided to hook up my app with Navigator 2.0 and Router since declarative routing seems natural to me coming from web (I'm new to Flutter). Router API seems quite low level and the documentation does't mention how all of this should come together in an app, so I managed to get it working but I'm not happy with what I have and I hope someone here has more experience/feedback on a better approach.Right now I'm using a BLoC and store "RoutePath" derived objects in a list/stack - so this is basically a parsed route stack stored in a BLoC and for the simple use case it works well - but the tricky part is when I want to have the same page in multiple states represented by router (eg. tabs, or multiple steps in bottom sheet of a page). My approach is to create a RoutePath for each page state but since I only want one instance of Page in Pages (eg. Home has 3 tabs, so you have home/map/step1, home/chats, home/settings - I want all 3 routes to be represented by a single Page instance ), this means when I build Pages from RoutePaths I remove all but the last instance of RoutePath and this works but just feels wrong :)Am I missing something with my approach - do you guys have any examples of a good router usage for non-trivial apps ?

October 30, 2020 at 05:02PM by rubber_duckzz
https://ift.tt/31Tlx4c
New tweet from FlutterDev:

Flutter Vadodara has some amazing news for you all!🥁
🥁

We'll be having @jryanio with us at "Let's Contribute to Flutter" with some surprise announcement to make! 🎉💯

RSVP for the event on our Meetup page & join our Discord Server:https://t.co/FSR3qSfSv8#flutterdev #flutter— Flutter Vadodara (@fluttervadodara) October 29, 2020

October 30, 2020 at 05:54PM
http://twitter.com/FlutterDev/status/1322220318111379458
New post on Flutter Dev Google group:

Flutter 1.22.3 hotfix released to the stable channel.
Hello, Flutter 1.22.3 has been released to stable. This is a hotfix release on the 1.22 branch and also includes a hotfixed Dart 2.10.3 version. Changes for this build are listed below and are available on the Flutter Wiki here: Hotfixes to the Stable Channel
New post on Flutter Dev Google group:

Flutter IntelliJ Plugin M51 Release
Flutter IntelliJ Plugin M51 Release Issues Addressed Quite a few issues have been addressed in this release! The change log
New post on Flutter Dev Google group:

VS Code extensions v3.16.0
v3.16.0 of the Dart & Flutter VS Code extensions have been published. Release notes are below (and online ). Language Server Protocol Preview In an upcoming release Dart-Code will switch to using the Language Server Protocol
New post on /r/flutterdev subreddit:

Security between APP and API.
I think that i will create a tutorial to explain basic security between app and API communication. What do you think about it?

October 30, 2020 at 07:45PM by meinreno
https://ift.tt/3mJ2PEB
New post on /r/flutterdev subreddit:

Pros and cons of a community driven / open source project
Hi folks, I've created a 100% free / no-ad journal app that has some good traction. The intention is for it to always be free but I've found continuously supporting it and adding requested features is turning out to be a bigger task than imagined as the user base grows.Would you all recommend just making this project "open source" ... would people contribute? Or would it be better to just find individuals to work with? What has worked in your experience? Let me know!https://play.google.com/store/apps/details?id=com.lokjot.lock_journal&hl=en&gl=US

October 30, 2020 at 07:38PM by integrateus
https://ift.tt/2HSDhpv
New post on /r/flutterdev subreddit:

Best practice on app initialization
I'm writing an app which depends on a couple of API services. Currently if my widget requires a service, it accepts the service through it's constructor. These services all have an async initialization method.Right now my initial widget is a future builder, which displays a loader while the future is resolving (the futures resolves all services required.)Is this the way to go? It seems to be working fine at the moment, however I am afraid of hidden footguns. I come from a Rust background, where if it compiles, it works, but here I am not used to wiring dispose functions.

October 30, 2020 at 07:01PM by kaiserkarel
https://ift.tt/35NE03o
New post on Flutter Dev Google group:

Just updated Flutter from 1.22.2 from 1.22.3
Just updated Flutter from 1.22.2 from 1.22.3. My plugin "firebase_admob: ^0.10.1" is causing problems. It's now throwing errors like crazy and I don't have an answer on how to fix it. FYI; I have tested this plugin in several different basic examples and I get the same results. FYI 2: I have 25

October 31, 2020 at 12:18AM by jerry hamby
https://ift.tt/35OyMV9
New post on /r/flutterdev subreddit:

<b>What are your thoughts on Navigator 2.0? (And Flutter navigation in general?)</b>
I'm a React Native developer who's been learning flutter for about a week or so and I've got to say that I really love it. For the most part, it seems to do <strong>everything</strong> better than RN, and the static typing and structured widget arguments is soooo much nicer than JSX.That said, one area which I'm not so sure about is the navigation. In React Native, React-Navigation explicitly has multiple types of navigators (Stack, Tab, Drawer, Switch etc) and allows nesting them whilst also being able to call any navigator (without even having to specify which one, provided screen name are unique) within the stack from any screen/component. However, looking at Flutter's built-in Navigator I'm somewhat baffled by its design.Navigator 1.0Having <code>push</code>, <code>pop</code> seems to be a good start, but there's still essentially only one big stack, with limited ways of manipulating the stack (e.g. not being able to pop one below, clear entire stack except current).Navigator 2.0An explicit Navigator widget seems to be a good step in the right direction in my opinion, so that you can have multiple independent or nested navigators depending on which part of the app you're in. That said, I'm not entirely keen on the how the pages argument of the Navigator is used. From <a href="https://medium.com/flutter/learning-flutters-new-navigation-and-routing-system-7c9068155ade">this tutorial</a> I gather that you should have some sort of condition in your pages argument which checks if there should be a certain page a la <code>[ RootPage(), if (_book != null) BookPage(book) ]</code> but this seems terribly constricting due to the fact that now if I want to add another route for movies it would then be <code>[ RootPage(), if (_book != null) BookPage(book), if (_movie != null) MoviePage(movie) ]</code> , which means I can't have the following stack <code>[ Root, Movie, Book ]</code>. Or more importantly I can't have a stack of multiple different books (e.g. navigating through recommendations).The only way I can see to remedy this would then to have pages as <code>[ RootPage() ]</code>, then use the 1.0 navigator api to <code>push</code> and <code>pop</code> normally. That said, whilst I'm aware the 1.0 and 2.0 APIs can be used in conjunction I've yet to see any actual guides or documentation showing this case. One such scenario that isn't clear on is if I call <code>Navigator.push(AnotherRoute())</code> whilst I'm on <code>[ RootPage() ]</code>, what happens if within that new page I call a <code>setState</code> on that <code>_book</code>? Will my stack be <code>[ RootPage(), AnotherRoute(), BookPage() ]</code>, or <code>[ RootPage(), BookPage(), AnotherRoute() ]</code>?Named RoutesAnother aspect I'm not terribly fond of is the route naming convention (and the behaviour that it implies). There seems to be a very large effort in making navigation compatible with web URLs, but I'm baffled as to why this is the case when native application navigation and web URL navigation are fundamentally so different. For example, when I push the routes <code>Book</code>, <code>Movie</code>, <code>Book</code>, <code>Movie</code> in that order, is my URL now at <code>/book/movie/book/movie</code>? On the web, URL and history stack are two completely separate things yet I think I've skimmed over a good amount of documentation about how to parse this into a stack. Admittedly I haven't gone over the web/URL functionality much and could be entirely wrong about this, I just think its a strange route naming convention.The bigger problem I see is that named routes and are passed into <code>MaterialApp</code>, and not <code>Navigator</code>. Therefore I don't see how it's possible to use named routes in nested navigators (e.g. bottom tabs). In React-Navigation each navigator could register a number of screens, and doing <code>navigator.nav…
New post on /r/flutterdev subreddit:

Mobile Developers Cafe Weekly Issue #12 is out 🎉🎊
https://ift.tt/3earkHH

October 31, 2020 at 05:54AM by iranjith4
https://ift.tt/34Ko1Uc