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

App Feedback Thread - June 16, 2020
This thread is for getting feedback on your own apps.Developers:must provide feedback for othersmust include Play Store, App Store, GitHub, GitLab, or BitBucket linkmust make top level commentmust make effort to respond to questions and feedback from commentersmay be open or closed sourceCommenters:must give constructive feedback in replies to top level commentsmust not include links to other appsTo cut down on spam, accounts who are too young or do not have enough karma to post will be removed. Please make an effort to contribute to the community before asking for feedback.As always, the mod team is only a small group of people, and we rely on the readers to help us maintain this subreddit. Please report any rule breakers. Thank you.- r/FlutterDev Mods

June 16, 2020 at 02:33PM by AutoModerator
https://ift.tt/2BglBAM
New post on /r/flutterdev subreddit:

How to make a custom canvas and pass it around as an widget?
I have been trying to develop a drawing app and all the example codes including the one's from The Boring Flutter Development Show don't translate well into real-world usage.The main problem being that CustomPaint's paint operation is too expensive and re-draws every point, every frame. And as the points increase the flutter app's render time per frame increases significantlyFrom the time I spent finding a solution to this problem, I found theseRepaintBoundaryCustom Widget using SingleChildRenderObjectWidget and RenderProxyBoxI don't think any of the above solutions work well for my needs: smooth canvas drawing operations without re-paint. I even tried simplifying the points and that didn't work either because of the inherent mechanism of CustomPaintIf there was a way to pass a canvas as a widget and attaching a controller it'll be easy to store the captured points and use basic canvas operations like canvas.drawPath() or canvas.drawLine() much efficientlyLike:-class ControlledCanvas extends StatlessWidget{
 `Canvas canvas;` `CanvasBloc controller;` 
...`Any suggestions would be greatly helpful as I spent the last month trying to figure this out.

June 16, 2020 at 04:34PM by TUGTEN
https://ift.tt/3fvloIB
New post on /r/flutterdev subreddit:

Flutter set as wallpaper intent
Hi,
I want to set wallpaper from my app using the android native intent like in the picture. How can i do this in flutter ?
I want to send my picture in intent and use native android wallpaper action .
Thanks

June 16, 2020 at 05:44PM by imran__nadeem
https://ift.tt/2Y6tbGT
New post on Flutter Dev Google group:

IMPOSSIBLE TO BUILD Flutter Android APK - PLEASE HELP ME
Bonjour. *I NEED YOUR HELP ABOUT PROBLEM TO BUID APK. PLEASE !!!* I have been trying since yesterday to build the *APK* of my FLUTTER Application to no avail (without any success). It becomes a headache for me. Below you have the results of the "*flutter doctor*" command in *ANDROID-STUDIO*

June 16, 2020 at 05:20PM by Marc-Aurèle Chegnimonhan AYAOVI
https://ift.tt/2B9MKFk
New tweet from FlutterDev:

💡 3 strategies for perceived performance

Perceived performance is how fast an application feels to the user. @perclasson goes over how to improve the experience with image placeholders, precaching, and disabled navigation transitions.

Details here → https://t.co/Uy2vdxy23x pic.twitter.com/tRNF8SInVp— Flutter (@FlutterDev) June 16, 2020

June 16, 2020 at 06:16PM
http://twitter.com/FlutterDev/status/1272925910098833408
New post on Flutter Dev Google group:

Exchange data between the Dart runtime and native components
Hi community ! I have a question to ask you but let's present you the context first. The context : I am developing a SDK for mobile devices. The objective of this SDK is to manage the bluetooth pairing and communication with a specific connected device, and synchronize information. Constrain

June 16, 2020 at 06:29PM by Thibaut Gauthier
https://ift.tt/2YDdC8I
New post on Flutter Dev Google group:

How to remove some String data
Dear Team, This is my JSON response String: " */Content/Images/Parent/Full/600bda93-d144-480f-991c-8eb9b764ab83.jpg*" I just want only "600bda93-d144-480f-991c-8eb9b764ab83.jpg". How this can be implemented? I just checked Some String methods like split(). Kindly advise me which method will

June 16, 2020 at 06:38PM by Ram Kumar
https://ift.tt/2zDwhZJ
New post on /r/flutterdev subreddit:

Releasing your Flutter desktop application - what are your choices?
https://ift.tt/3frVbL5

June 16, 2020 at 07:53PM by Gigatronbot
https://ift.tt/2YF8QYl
New tweet from FlutterDev:

Need for speed (and performance) ⚡️

Learn how to improve the initial load time for your Flutter web application by minimizing the JavaScript bundle with tree shaking and deferred loading.

Read the blog by @perclasson ↓https://t.co/TFHXxVzF8Z— Flutter (@FlutterDev) June 16, 2020

June 16, 2020 at 08:11PM
http://twitter.com/FlutterDev/status/1272954874309701632
New post on /r/flutterdev subreddit:

<b>Adapt to different screen size- Flutter ( just copy-paste the code and chill ;) )</b>
<pre>import 'package:flutter/material.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart'; double defaultScreenWidth = 400.0; double defaultScreenHeight = 810.0; double screenWidth = defaultScreenWidth; double screenHeight = defaultScreenHeight; class Sizes { static double s0 = 0.0; static double s1 = 1.0; static double s2 = 2.0; static double s3 = 3.0; static double s4 = 4.0; static double s5 = 5.0; static double s6 = 6.0; static double s8 = 8.0; static double s10 = 10.0; static double s12 = 12.0; static double s14 = 14.0; static double s15 = 15.0; static double s16 = 16.0; static double s18 = 18.0; static double s20 = 20.0; static double s25 = 25.0; static double s30 = 30.0; static double s40 = 40.0; static double s50 = 50.0; static double s60 = 60.0; static double s70 = 70.0; static double s80 = 80.0; static double s100 = 100.0; static double s120 = 120.0; static double s150 = 150.0; static double s165 = 165.0; static double s200 = 200.0; static double s300 = 300.0; static double s500 = 500.0; /*Image Dimensions*/ static double defaultIconSize = 25.0; static double defaultImageHeight = 100.0; static double defaultCardHeight = 120.0; static double defaultImageRadius = 40.0; static double snackBarHeight = 50.0; static double texIconSize = 30.0; static double circularImageRadius = 36.0; /*Default Height&Width*/ static double defaultIndicatorHeight = 5.0; static double alertHeight = 200.0; static double appBarHeight = 235.0; static double minWidthAlertButton = 70.0; /*EdgeInsets*/ static EdgeInsets spacingAllDefault = EdgeInsets.all(s8); static EdgeInsets spacingAllSmall = EdgeInsets.all(s10); static EdgeInsets spacingAllExtraSmall = EdgeInsets.all(s10); static Future setScreenAwareConstant(context) async { screenWidth = MediaQuery.of(context).size.width; screenHeight = MediaQuery.of(context).size.height; getSize() async { if (screenWidth == 0 || screenHeight == 0) { screenWidth = MediaQuery.of(context).size.width; screenHeight = MediaQuery.of(context).size.height; await Future.delayed(Duration(milliseconds: 300)); await getSize(); } } await getSize(); if (screenWidth > 300 && screenWidth < 500) { defaultScreenWidth = 450.0; defaultScreenHeight = defaultScreenWidth * screenHeight / screenWidth; } else if (screenWidth > 500 && screenWidth < 600) { defaultScreenWidth = 500.0; defaultScreenHeight = defaultScreenWidth * screenHeight / screenWidth; } else if (screenWidth > 600 && screenWidth < 700) { defaultScreenWidth = 550.0; defaultScreenHeight = defaultScreenWidth * screenHeight / screenWidth; } else if (screenWidth > 700 && screenWidth < 1050) { defaultScreenWidth = 800.0; defaultScreenHeight = defaultScreenWidth * screenHeight / screenWidth; } else { defaultScreenWidth = screenWidth; defaultScreenHeight = screenHeight; } print(''' ========Device Screen Details=============== screenWidth: $screenWidth screenHeight: $screenHeight defaultScreenWidth: $defaultScreenWidth defaultScreenHeight: $defaultScreenHeight '''); ScreenUtil.init( context, width: defaultScreenWidth, height: defaultScreenHeight, allowFontScaling: true, ); FontSize.setScreenAwareFontSize(); /*Padding & Margin Constants*/ s1 = ScreenUtil().setWidth(1.0); s2 = ScreenUtil().setWidth(2.0); s3 = ScreenUtil().setWidth(3.0); s4 = ScreenUtil().setWidth(4.0); s5 = ScreenUtil().setWidth(5.0); s6 = ScreenUtil().setWidth(6.0); s8 = ScreenUtil().setWidth(8.0); s10 = ScreenUtil().setWidth(10.0); s12 = ScreenUtil().setWidth(12.0); s14 = ScreenUtil().setWidth(14.0); s15 = ScreenUtil().setWidth(15.0); s16 = ScreenUtil().setWidth(16.0); s18 = ScreenUtil().setWidth(18.0); s20 = ScreenUtil().setWidth(20.0); s25 = ScreenUtil().setWidth(25.0); s30 = ScreenUtil().setWidth(30.0); s40 = ScreenUtil().setWidth(40.0); s50 = ScreenUtil().setWidth(50.0); s60 = ScreenUtil().setWidth(60.0); s70 = ScreenUtil().setWidth(70.0); s80 = ScreenUtil().setWidth(80.0);…
New post on Flutter Dev Google group:

flutter/firestore
i want to retrieve a variable from my firestore data base and store it in a variable (double) to use it later any help!

June 17, 2020 at 12:10AM by mohamed chirchi
https://ift.tt/2zEohrp
New post on /r/flutterdev subreddit:

Does using BLOC pattern saves development and production time? What is the key benefits from it?
Hi, I have been learning BLOC pattern in Flutter. I know it's about moving business logic and separating it from UI. But apart from this, what are the benefits? I have to create many extra files, and create BLOC there.I also feel that it is a lot of extra work as well as it's hard to switch files again and again from widget to bloc file to look what logic I have implemented inside bloc file. Does BLOC pattern reduces the development time of an app? What are it's benefits in a long term?

June 17, 2020 at 04:50AM by milanpoudel
https://ift.tt/3ftUXTE
New post on Flutter Dev Google group:

Can we check the device to be smartphone or other device by using bluetooth in flutter?
*The issue is when my flutter app is in bluetooth scanning mode it is detecting all the bluetooth devices so i need only smartphone bluetooth devices to detect using my app and other devices like smarTv,smartwatch and bands and headphones i need to reject them in my flutter app* *Is there any

June 17, 2020 at 07:43AM by yashwanth balanagu
https://ift.tt/2US2O5t
New post on /r/flutterdev subreddit:

Github Workflow for Building, Releasing Flutter web app to Github Pages and Firebase Hosting
https://ift.tt/3hxRQfb

June 17, 2020 at 08:31AM by ayushpguptaapgapg
https://ift.tt/3ea2arz
New post on Flutter Dev Google group:

Url_launcher Error While Building Apk
*Hello,* `import‘ package: url_launcher / url_launcher.dart '; class CallsAndMessagesService { void sendEmail (String email) => launch (“mailto: $ email”); } ` *By using this structure, I provide guidance for sending mail when the incoming email address is clicked.* flatbutto the (

June 17, 2020 at 08:50AM by Gökçen Merve Horuk
https://ift.tt/3eaE1RY