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

ListView Navigation
Hello everyone, how can I add a navigation route to each tile of the ExpansionTile, someone can help me?In the subtitles I want to add the navigation routes.
List<MyTile> listOfTiles = <MyTile>[ MyTile('El Triangulador', <MyTile>[ MyTile('● Definición'), MyTile('● Personas que intervienen'), MyTile('● Actitudes sanas para resolver'), ]), MyTile('El Frustrador', <MyTile>[ MyTile('● Definición'), MyTile('● Rasgos'), MyTile('● Actitudes frente a la frustración'), MyTile('● Criando hijos sanos'), ]), ] class ListViewHome extends StatelessWidget { @override Widget build(BuildContext context) { // TODO: implement build return ListView.builder( itemCount: listOfTiles.length, itemBuilder: (context, int index) { return StuffInTiles(listOfTiles[index]); }, ); } } class StuffInTiles extends StatelessWidget { final MyTile myTile; StuffInTiles(this.myTile); @override Widget build(BuildContext context) { // TODO: implement build return _buildTiles(myTile); } ///Second Heads Widget _buildTiles(MyTile t) { if (t.children.isEmpty) { return ListTile( title: Text( t.title, textScaleFactor: 1.2, style: listViewHome, ), ); } ///First Head return ExpansionTile( key: PageStorageKey<MyTile>(t), title: Text( t.title, textScaleFactor: 1.5, style: listViewHome, ), leading: CircleAvatar( backgroundColor: Colors.white, backgroundImage: AssetImage('assets/icons/toxic.png'), ), children: t.children.map(_buildTiles).toList(), ); } } class MyTile { String title; List<MyTile> children; MyTile(this.title, [this.children = const <MyTile>[]]); } 


October 16, 2019 at 04:28AM by tutegomeze
https://ift.tt/33yKlwL
New post on /r/flutterdev subreddit:

Flutter Design Patterns: An overview of Singleton design pattern and its implementation in Dart and Flutter
https://ift.tt/2oKL67e

October 16, 2019 at 08:32AM by mkobuolys
https://ift.tt/2VL7RUu
New post on /r/flutterdev subreddit:

Debug errors I can't understand
I'm currently learning Flutter and from some reasons when I've restarted my PC and tried to debug my app, I have the following errors:Compiler message: ../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/intl-0.15.8/lib/src/intl/bidi_formatter.dart: Error: A file can't be part of more than one library.Try moving the shared declarations into the libraries, or into a new library. ../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/intl-0.15.8/lib/intl.Dart: Context: Used as a part in this library.../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/intl-0.15.8/lib/intl.dart: Context: Used as a part in this library.../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/intl-0.15.8/lib/src/intl/bidi_utils.dart: Error: A file can't be part of more than one library.Try moving the shared declarations into the libraries, or into a new library. ../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/intl-0.15.8/lib/intl.Dart: Context: Used as a part in this library. ../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/intl-0.15.8/lib/intl.dart: Context: Used as a part in this library.../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/intl-0.15.8/lib/src/intl/compact_number_format.dart: Error: A file can't be part of more than one library. Try moving the shared declarations into the libraries, or into a new library. ../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/intl-0.15.8/lib/intl.Dart: Context: Used as a part in this library. ../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/intl-0.15.8/lib/intl.dart: Context: Used as a part in this library.../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/intl-0.15.8/lib/src/intl/date_format.dart: Error: A file can't be part of more than one library. Try moving the shared declarations into the libraries, or into a new library. ../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/intl-0.15.8/lib/intl.Dart: Context: Used as a part in this library.../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/intl-0.15.8/lib/intl.dart: Context: Used as a part in this library. ../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/intl-0.15.8/lib/src/intl/date_format_field.dart: Error: A file can't be part of more than one library. Try moving the shared declarations into the libraries, or into a new library.../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/intl-0.15.8/lib/intl.Dart: Context: Used as a part in this library. ../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/intl-0.15.8/lib/intl.dart: Context: Used as a part in this library. ../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/intl-0.15.8/lib/src/intl/date_format_helpers.dart: Error: A file can't be part of more than one library. Try moving the shared declarations into the libraries, or into a new library.../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/intl-0.15.8/lib/intl.Dart: Context: Used as a part in this library. ../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/intl-0.15.8/lib/intl.dart: Context: Used as a part in this library.../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/intl-0.15.8/lib/src/intl/number_format.dart: Error: A file can't be part of more than one library. Try moving the shared declarations into the libraries, or into a new library.../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/intl-0.15.8/lib/intl.Dart: Context: Used as a part in this library. ../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/intl-0.15.8/lib/intl.dart: Context: Used as a part in this library.../../../AppData/Roaming/Pub/Cache/hosted/pub.dartlang.org/intl-0.15.8/lib/intl.dart:115:3: Error: Type 'DateFormat' not found.Everything was working fine before.The import of intl.dart is correct.

October 16, 2019 at 09:23AM by Kadarach
https://ift.tt/2MjY9FF
New post on /r/flutterdev subreddit:

Flutter app stuck on white screen at start up in android
Hi guys,I am new to flutter,I do have experience in Nadroid development and have even published an apps on the play store. Lately I have been interested in flutter and even did a few introductory concepts on it (CRUD). I took an open source project from github and changed only the google .json file so as to use my fire base backend. The app launches on my android device but is stuck on white screen. I have searched everywhere for this issue but no solution. Its been three days and I am losing my mind. Can anyone help me out here.The open source project is called Fluttergram.

October 16, 2019 at 12:02PM by fireking09
https://ift.tt/33zKtft
New post on /r/flutterdev subreddit:

Part two of moving from React to Flutter Web
Hey Flutter community!
Some time has passed and due to high engagement and interest, I've just published second part from my mini series of moving from React to Flutter Web.Let me know your comments, ideas, suggestions - anything! Hope you can find it helpful.Cheers

October 16, 2019 at 11:30AM by Deimantasa
https://ift.tt/2ONwajo
New post on /r/flutterdev subreddit:

Java/Kotlin developer coming to dart or flutter? Swift/Go/Rust developer coming to dart or flutter? You want to run concurrent work in the background? Dart does not have thread but it has isolates, this package allow you to execute code into isolates using an api similar to Java executors.
https://ift.tt/2MO37cC

October 16, 2019 at 11:21AM by bitsydarel
https://ift.tt/2BeHOeW
New post on Flutter Dev Google group:

hi guys im using switch widget , i want when the application is loaded to get initial value(bool ) from firebase and update the value when toggled , please can anyone help me out


October 16, 2019 at 02:12PM by ibrahim shehu ibrahim
https://ift.tt/32kAdrt
New post on /r/flutterdev subreddit:

Free App Feedback for your Flutter Apps (in Munich)
We are trying out a new format which is called "App Advice" where we help different people in the community with their mobile apps. Besides Android and iOS, we also offer app advice for Flutter! 💪🏼
So if you are interested, take your laptop with your flutter project and we can sit together and look into your project. 😊We created a form where people can sign up.
https://quickbirdstudios.com/appadvice​If you don't live nearby you can just drop me a message with your repository and a few points where you want to have feedback (e.g. network layer, state management, tests, UI/Widgets)

October 16, 2019 at 02:44PM by julianlenz
https://ift.tt/2ppJOyq
New post on /r/flutterdev subreddit:

90Hz refresh rate support
There are android phones like OnePlus7 which have 90Hz screens. Today Google revealed Pixel 4 which has a 90Hz screen as well. Also afaik iPad Pro has a 120Hz screen.Do Flutter support these screens to their full potential? Or does the Skia engine cap the refresh rate at 60Hz? Or is there something we need to set in order to allow support for higher refresh rates?

October 16, 2019 at 03:29PM by aytunch
https://ift.tt/2ITqBfo
New post on Flutter Dev Google group:

Upgrade to 1.10.7 TextInput error.
Flutter clean and Flutter run fixes it sort of…. It works but debugging isn’t there when I do run…. When I Start with debugging it errors again… Any ideas what this is? ERROR - MissingPluginException(No implementation found for method TextInput.setEditibleSizeandTransform on channel flutter/te

October 16, 2019 at 07:20PM by Sam Cromer
https://ift.tt/33zUxoJ
New post on /r/flutterdev subreddit:

Got a live Flutter app? Are you an indie-developer, small startup or larger company?
I'm just curious to know what kind of developers and companies are using Flutter :)Myself: Startup with a team of 8. App has been live since May 2019 (moved from native).

October 16, 2019 at 07:58PM by loveyoghurt
https://ift.tt/2VWMMH7
New post on /r/flutterdev subreddit:

Do Android/iOS widgets work on Flutter web?
I am just starting out on Flutter Web and was trying to get one widget to work for a while until I ran across a comment asking if the widget supported Flutter web.My assumption was that they should work in all formats (that's the point is it not?).Do widgets need to be created specifically to work in Flutter web?

October 16, 2019 at 07:43PM by Elwar
https://ift.tt/2VKj9IQ
New post on Flutter Dev Google group:

Adding Banner Ads between Grid Items
Dear Flutter Developers, I'm new flutter developer. I want to add Google Banner ads between Grid Items like the following attachment. plz give me some idea to get.

October 16, 2019 at 09:15PM by Phyoe Ko Ko Lwin
https://ift.tt/31lUOdi
New post on Flutter Dev Google group:

TextFormField without underscore when typing
Hi, I am new to Flutter and was hoping to find out how to disable the underscore when typing text using a TextFormField: [image: TextFormField-underscore.jpg] Here is the widget that I use (basically a TextFormField with some default properties set): @override Widget build(BuildContext

October 16, 2019 at 10:21PM by Laban
https://ift.tt/2Bli54w