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

How stable is the flutter web?
I read that with flutter 2.0, flutter web has hit the stable milestone. I'm going to be working on a project that primarily runs on mobile apps, but I'll still be needing a website with all functionality. People who have used flutter web, how was your experience with it? What were the major problems you faced and are they any better now?

June 01, 2021 at 06:53PM by CaptainFerb
https://ift.tt/3uIwlhb
New post on /r/flutterdev subreddit:

Spacebetween 2 container not working help please!!!!
Basically what i'm tryin to achieve is, having each elements on the far right and left of the screen. but im using mainAxisAlignment: MainAxisAlignment.spaceBetween and its not working, i've also tried Space() still no luck.​Positioned(bottom: 10,child: Row(mainAxisAlignment: MainAxisAlignment.spaceBetween,children: <Widget>[Container(decoration: BoxDecoration(child: Padding(padding: EdgeInsets.all(5.0),child: Text(product.name,style: TextStyle(color: Colors.white,fontSize: 18.0,fontWeight: FontWeight.w300)))),​Container(decoration: BoxDecoration(color: Colors.white,border: Border.all(color: Colors.white),borderRadius: BorderRadius.circular(5.0)),child: Padding(padding: EdgeInsets.all(5.0),child: Text('${PriceConverter.convertPrice(context, _startingPrice, discount: product.discount, discountType: product.discountType, asFixed: 1)}''${_endingPrice != null ? ' - ${PriceConverter.convertPrice(context, _endingPrice, discount: product.discount, discountType: product.discountType, asFixed: 1)}' : ''}',style: TextStyle(fontSize: 18.0,fontWeight: FontWeight.normal))))],)),

June 01, 2021 at 11:26PM by jg_selisa
https://ift.tt/34ABtJt
New post on /r/flutterdev subreddit:

My First Ever Flutter package "Pinterest like bottom navigation bar"
https://ift.tt/3uGX0uE

June 02, 2021 at 03:41AM by NeatFastro
https://ift.tt/3uBU2aU
New post on /r/flutterdev subreddit:

Simple app for reading EU Digital COVID certificates in Flutter - WIP
Hey,I recently got my certificate for vaccination, but I wasn't able to read the QR code from it. I know that there is an official app in progress, but I wanted to see how difficult it is in Flutter. It took me just few hours, hovewer, it's really basic app right now. It should work on Android and iOS, and I would like to support web as well. If anyone wants to use it or to add translation, feel free to. I want to add verification of the QR code, as well as more informations, but as simple PoC, it works just fine.If anyone wants to learn more about EU certificates: https://ec.europa.eu/health/sites/default/files/ehealth/docs/digital-green-certificates_v1_en.pdfAnd here are some examples of QRs: https://dgc.a-sit.at/ehn/testsuite​And here is my app: https://github.com/lepsi-city/vacito, it's not on Store yet. (and I am not sure if there will be any market for it, after the offical apps get released, which should be in few days.)

June 02, 2021 at 05:05AM by pilsen_plex
https://ift.tt/3papaNw
New post on /r/flutterdev subreddit:

Flutter UI with Phoenix backend
Is this possible?If so, are there learning resouces or projects publicly available?

June 02, 2021 at 06:51AM by leliex
https://ift.tt/3g1NYTP
New post on /r/flutterdev subreddit:

How long will it take (in hours) to get familiar with Flutter for programmers? How many hours will it take to build a social media app with Flutter and Firebase (once I'm familiar with Flutter)? Estimates are perfect :)
Trying to come up with a timeline for developing this app.I'm familiar with Python and C.Thank you!!!

June 02, 2021 at 06:27AM by JustYourLocalDude
https://ift.tt/3yPeSqJ
New post on /r/flutterdev subreddit:

Firebase Cloud Messaging - How to effectively use `onBackgroundMessage` callback?
I'm fairly new to Flutter and mobile development so maybe some basic knowledge is missing and my question might seem illogical.I am trying to come up with a reasonable way to use `onBackgroundMessage` callback. The documentation states that the callback can be top level function or static method. This means it has no access to members of a class (when using static method) and can basically access other code via global scope.I might have application architecture where I'm passing instances (singletons) to Flutter widgets of services that might do network requests and update application state. Let's say I want to process data push notification while app is in background. Maybe the notification contains some payload, like event name. I do HTTP request with some payload, some data is returned to me and I want to update my application state with the results. To me it's basically not possible as I might already have services for fetching remote data instantiated as classes, for state management I might be using `flutter_bloc` so I need access to `context` to update my "BLoC".I think I get the point that there are limitations in place to abuse bad behaviour. Apps should not be doing stuff in background or maybe very conservatively. I assume that the background process runs in isolate and it's easier to release resources in dart code when it's just a function?How do people process data in background then? You would at least want to store data coming from data push notification somewhere. I can only think of one way. Creating a class that is instantiated via `factory` constructor where I could store such data so it would have its own internal state. With that I could get a reference to my singleton instance inside the callback and call some method. However I am using dependency injection in my code already and creation of singletons is handled in different way.

June 02, 2021 at 07:27AM by ondrejsy
https://ift.tt/3ifksN5
New post on Flutter Dev Google group:

is flutter.dev working?
Last several days I can't browse https://flutter.dev site: The connection has timed out The server at flutter.dev is taking too long to respond. Is the problem on my side (Kazakhstan) or something else?

June 02, 2021 at 02:44PM by Steepe Hare
https://ift.tt/3fFs7mi
New post on /r/flutterdev subreddit:

New app build with Flutter!
Hi guys, just wanted to show you the new app we made with Flutter!Let me know what you think.iOS -> https://play.google.com/store/apps/details?id=social.yutu.appAndroid -> https://play.google.com/store/apps/details?id=social.yutu.appOf course with null safety enabled!

June 02, 2021 at 01:55PM by adrian_antoci
https://ift.tt/3wLtOnG
New post on /r/flutterdev subreddit:

<b>Top 10 Features Of Flutter 2.2</b>
At the recent I/O conference, the flutter team confirmed that more than 200,000 apps are created with Flutter only in the Play Store. More than one in every eight new apps in Play store are built with Flutter. Popular companies like BMW, Shein, Tencent and new emerging companies use Flutter to create innovative apps. With Flutter 2.2, you get the way out for optimizing, polishing and improving iOS, Android, Web and <a href="https://solaceinfotech.com/blog/10-necessary-questions-to-ask-before-start-desktop-applications-development/">Desktop app</a> performance. Also there are more material icons, automatic scrolling behavior on mobile and desktop, improved text handling and lots of exciting features. Here we’ve curated some more new features of Flutter 2.2.Top 10 Features of Flutter 2.2-1. Dart 2.13-Dart also gets updated with new features accompanied by Flutter 2.2. It brings some new features to its FFI for calling C code, official Docker support and Google Cloud support for Dart backends. It also offers support type aliases that makes code easy to read and maintain.2. Performance Improvements-By using Dart’s split AOT compilation feature, Flutter team has built support for android apps to download modules ahead-of-time resource and code at runtime. They call these installable splits deferred components. It can reduce the initial app size and allow to download features and resources when a user needs them. Whereas, for ios, new update offers new tools to precompile shaders to remove or reduce the first-run jank. Jank occurs when the time to compile shaders goes beyond the time limit. These improved features of Android and iOS are now in preview mode.3. Type Alias-You can create a new name for any existing type and then that name can be used rather than an existing type. Prior to Dart 2.13 users can create a type alias for function now it’s extended to the variable type.For Example:<pre>typedef Length = double; final Length x = 4; Good thing about type alias is- it passes the type equality test also. You can legal to call the constructor on a type alias that names a class. Example: Void main() { debugPrint(double == Length); // True } Benefit of using type alias is that one can make it easy to read code to others. </pre>4. Dart Foreign Function Interface-<pre>FFI is a mechanism for calling C code. FFI has new feature through which users can wrap the inline array directly in dart. Example- class StructInlineArray extends Struct { @Array(8) external Array<Unit8> arr; } Rather than struct MyStruct { Unit8_t arr[8]; } One more improvement in FFI is that it now supports packed structs. And this help to avoid padding to lower overall memory consumption. For instance- @Packed(4) class TASKDIALOGCONFIG extends Struct { @Uint32() external int cbSize; @IntPtr() external int hwndParent; @IntPtr() external int hInstance; @Uint32() external int dwFlags; } </pre>5. Null Safety Update-<pre>Whenever you create a project with Flutter 2.2, it will by default generate a project with null safety. Most of the plugins are relieved to the null safety it is safe to migrate Flutter app to sound null safety. </pre>6. Custom Text Actions-<pre>With Flutter 2.2 users can completely customize the keystrokes associated with text actions. This feature serves lots of possibilities for Flutter developers. For instance, users can send message with ENTER Key while still allowing a new line to be inserted by Ctrl + ENTER. </pre>7. Mouse Cursor Over Text Spans-<pre>You might know that, TextSpan is not a widget. We can change the mouse cursor while hovering over a clickable widget except TextSpan. Now it’s a past with Flutter 2.2 when you are using TestSpan with GestureDetector user will get the corresponding mouse cursor. It supports onEnter and onExit events. </pre>8. Flutter Windows UWP Alpha-<pre>One more update with Flutter 2.2 is for desktop lovers, support for Windows UWP has moved to…
New post on /r/flutterdev subreddit:

Is there a straightforward way to create modal that gets dismissed when the user swipes down?
I know this is more of an iOS paradigm, but is there a way to create a modal in flutter that is dismisable by just dragging down that works on iOS and Android?Example: https://images.squarespace-cdn.com/content/v1/5963d59386e6c005a77134ba/1591209736852-OB5E0Z66EPT13070YU9A/ke17ZwdGBToddI8pDm48kGN-LNnhqarKX6pkakskNDZZw-zPPgdn4jUwVcJE1ZvWEtT5uBSRWt4vQZAgTJucoTqqXjS3CfNDSuuf31e0tVEWBN-lGAmflG_vA8pWdp2bIrZva-qkljkuSBI4mtasNx926scO3xePJoa6uVJa9B4/readit+multiple+modal+views.gif

June 02, 2021 at 04:52PM by purecoaster
https://ift.tt/34D8N2E