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

type int is not a subtype of type widget
hi guys. been trying to return this _weekNumber(DateTime date) { int dayOfYear = int.parse(DateFormat("D").format(date)); return ((dayOfYear - date.weekday + 10) / 7).floor(); } and something goes wrong , getting the error above. anyone knows what i am doing wrong? child: Container(

May 08, 2020 at 01:23PM by Error Place
https://ift.tt/2yG8d7P
New post on /r/flutterdev subreddit:

About flutter app and flickering
Hi I am working on Flutter and developing few apps. I have not tested on real device....Just using Genymotion emulator.The problem is whenever UI of my app updates (I developed a quiz app), I see that previous UI pr element (question) moving on the screen and another one coming. Does this happen?I don't think it is cool to see flickering. Does it happen just in emulator or it is how flutter app works?

May 08, 2020 at 02:44PM by milanpoudel
https://ift.tt/2WAl3wo
New post on /r/flutterdev subreddit:

Stuck at Running Gradle task 'assembledebug' .....
So i am getting this on android studio , when trying to run the main.dart file .

May 08, 2020 at 03:25PM by whitewolf890
https://ift.tt/35OcHFF
New post on Flutter Dev Google group:

geolocation with firebase/ firestore
hi guys. has anyone used the geolocation packages before? i am stuck here. i Am getting the lat & lng of Chosenplace but i cant write it inside Database. this is my serachMapPlaceWidget SearchMapPlaceWidget( darkMode: true, placeType: PlaceType.establishment, language: 'se', apiKey:

May 08, 2020 at 03:37PM by Error Place
https://ift.tt/3cgIphk
New post on Flutter Dev Google group:

Flutter refresh list calling function from other class
Hello I want to build comments with refresh indicator but I get the below error, I am calling the function from class modalcomments.dart and the fuction is in the home.dart, if I try to add the full function in the modalcomments.dart again I get the below error home.dart getComments(postid)

May 08, 2020 at 04:51PM by Evripides Kyriacou
https://ift.tt/2zjTdMX
New post on /r/flutterdev subreddit:

<b>Pass Args to Widget Build</b>
Hey all, first post and started with flutter yesterday.I have created the below which I call using; ProductTile()The code renders a box that contains product information, an image etc, along with an increment counter which adjusts itself as buttons - or + are pressed. (this will eventually be quantity to add to basket).My problem is that it is all hard coded, I need to figure out how to make this dynamic.Am i not able to force this to take an argument and pass the argument when i call the function / builder (not sure). i.e..ProductTile(<Product>)<Product> Would be json format? Is this doable or am i barking up the wrong tree with Flutters workings?<pre>import 'package:flutter/material.dart'; class ProductTile extends StatefulWidget { @override _ProductTileState createState() => _ProductTileState(); } class _ProductTileState extends State<ProductTile> { int _counter = 0; void _incrementAdd() { setState(() { _counter++; }); } void _incrementSubtract() { setState(() { if (_counter > 0) { _counter--; } }); } void _basketAdd() { setState(() { _counter = 0; }); } @override Widget build(BuildContext context) { return Padding( padding: EdgeInsets.only(bottom: 10.0), child: Container( padding: const EdgeInsets.all(10), height: 350, decoration: BoxDecoration( color: Colors.white, borderRadius: BorderRadius.all(Radius.circular(15)), boxShadow: [ BoxShadow( color: Colors.grey, offset: Offset(-1, 1), blurRadius: 5, ), ], ), child: Column( children: <Widget>[ Container( height: 20, decoration: const BoxDecoration(color: Colors.transparent), child: Row( children: [ Container( child: Row( mainAxisAlignment: MainAxisAlignment.start, children: [ Text( '£', style: TextStyle( fontSize: 12, ), ), Text( '199', style: TextStyle( fontWeight: FontWeight.bold, fontSize: 16, ), ), Text( '99', style: TextStyle( fontSize: 12, ), ), ], ), ), SizedBox( width: 10, ), Container( child: Text( 'Product Offer', style: TextStyle( fontWeight: FontWeight.bold, fontSize: 16, ), ), ), ], ), ), SizedBox(height: 5), Material( elevation: 2.0, borderRadius: BorderRadius.all(Radius.circular(10)), child: Container( height: 250, decoration: const BoxDecoration( color: Colors.deepOrange, borderRadius: BorderRadius.all(Radius.circular(10))), child: Image(image: AssetImage('assets/echo.jpg')), ), ), SizedBox(height: 7.25), SizedBox( width:double.infinity, height: 0.5, child: const DecoratedBox( decoration: const BoxDecoration( color: Colors.grey ), ), ), SizedBox(height: 7.25), Container( height: 40, decoration: const BoxDecoration(color: Colors.transparent), child: Row( mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[ Material( elevation: 2.0, color: Colors.deepOrange, child: InkWell( splashColor: Colors.white70, onTap: _incrementSubtract, child: Container( width: 30, height: 30, child: Padding( padding: EdgeInsets.all(1.0), child: const Icon( Icons.remove, color: Colors.white, ), ), ), ), ), SizedBox(width: 5.0), Material( elevation: 2.0, borderRadius: BorderRadius.all(Radius.circular(20)), child: Container( width: 50, height: 50, decoration: BoxDecoration( border: Border.all(width: 2, color: Colors.deepOrange), borderRadius: BorderRadius.all(Radius.circular(20)), color: Colors.white), child: Center( child: Text( '$_counter', style: TextStyle( fontWeight: FontWeight.bold, fontSize: 18, ), ), ), ), ), SizedBox(width: 5.0), Material( elevation: 2.0, color: Colors.deepOrange, child: InkWell( splashColor: Colors.white70, onTap: _incrementAdd, child: Container( width: 30, height: 30, child: Padding( padding: EdgeInsets.all(1.0), child: const Icon( Icons.add, color: Colors.white, )), ), ), ), SizedBox(width: 20.0), Material( elevation: 2.0, color: Colors.deepOrange, borderRadius: BorderRadius.all(Radius.circular(5)), child: InkWell( splashColor: Colors.white70, onTap: _basketAdd, child: Row( children: <Widget>[ Container( width: 20, height: 30, child: Padding( padding: EdgeInsets.all(1.0), child:…
New post on /r/flutterdev subreddit:

Flutter Dependency Hell
Every time I introduce a dependency into Flutter, my entire project blows up.For example, just now, I added https://pub.dev/packages/firebase_uiAnd suddenly now I need to update all my other firebase dependencies, and the app mysteriously crashes. I am still trying to fix. It's probably yet again a dependency I am using which is not compatible. This is just my latest example. This happens nearly every time I add a new dependency.This happened with https://pub.dev/packages/rxdart a few months ago too etc.Does anyone have a solution or a way they work with this?

May 08, 2020 at 05:06PM by dolanmiu
https://ift.tt/3fvOlVw
New post on /r/flutterdev subreddit:

Codepen Challange Rocket Challange - not only for Vue.js
The CodePen Challenge this week was only for Vue.js, so I decided to recreate their starter pen, that we can all participate in the fun. So if you are interested, feel free to join.CodePen Challange - https://codepen.io/challenges/2020/may/
Rocket Challenge Starter - https://codepen.io/md-weber/pen/wvKpRXJ

May 08, 2020 at 05:59PM by MyracleDesign
https://ift.tt/2WCPAtv
New tweet from FlutterDev:

What day is it? 🤷&zwj;♀️#FlutterFriday!

Want to know how much to trust a new package?

💡Start with Flutter Favorites -- these are packages by verified publishers and have been checked for good runtime behavior.

💡Look at a package's score on pub -- the closer to 100, the better! pic.twitter.com/iKOJjVo6oa— Flutter (@FlutterDev) May 8, 2020

May 08, 2020 at 06:21PM
http://twitter.com/FlutterDev/status/1258794205393981442
New post on /r/flutterdev subreddit:

Is it worth learning flutter (career wise) if you have no experience of native application development?
I'm a web developer but flutter really looks cool nd I'm interested in learning/developing apps in it nd might consider switching to flutter development full time if got the right opportunity. But I have 0 experience of developing apps so I want to know if it's wroth learning flutter, career wise, if you have no experience in Android or iOS development? Can one possibly gets a job without native application development? I consider myself mid-level developer with 3 years of experience. I don't wanna get hired as freshie.

May 08, 2020 at 07:17PM by one_lame_programmer
https://ift.tt/3fw6bb8
New post on /r/flutterdev subreddit:

Why does Flutter style widgets structurally?
Newbie to Flutter and curious why Flutter expresses styles structurally. The Center and Padding, etc. widgets remind me of the <center>, <font>, <big>, etc tags in HTML that have been replaced by CSS styles. So why did Flutter take this approach?

May 08, 2020 at 07:06PM by JianingTX
https://ift.tt/2zixvcn
New post on /r/flutterdev subreddit:

Todo – really simple one-liner package for using Kotlin-style TODO()
https://ift.tt/2YI8Ok9

May 08, 2020 at 07:36PM by MarcelGarus
https://ift.tt/2WfZemU