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

Flutter for web samples
i found some flutter for web samples on flutter's gh pages! :D enjoy!https://flutter.github.io/samples/?utm_source=dart-lang_github_io&utm_medium=Redirect&utm_content=meta_refresh

May 08, 2019 at 03:33AM by _ligk
http://bit.ly/2VOtk1r
New post on /r/flutterdev subreddit:

Flutter Developer Quest Game at Google I/O 2019
http://bit.ly/2VUjivC

May 08, 2019 at 04:16AM by WilliamsonApps
http://bit.ly/2LwNyc0
New post on /r/flutterdev subreddit:

slide_countdown_clock | Flutter plugin to create a countdown clock with slide up and down animation.
https://pub.dev/packages/slide_countdown_clock/

May 08, 2019 at 05:30AM by phucgaoxam
http://bit.ly/2WvjBdz
New post on Flutter Dev Google group:

Nesting async / await calls?
I'm making a REST call to an API to retrieve some blog posts, in json format. For each post in there, I need to make a second call to a different endpoint to get a thumbnail image of an icon image for the post. The plan is to make a ListView with the icon image on the left hand side of each

May 08, 2019 at 08:09AM by MrLarryQ
http://bit.ly/2DV46o3
New post on /r/flutterdev subreddit:

Using RxDart as a "MessageBus" to synchronize UI in Flutter
http://bit.ly/2VQC7Qm

May 08, 2019 at 08:00AM by Filledstacks
http://bit.ly/2LqQIOp
New post on /r/flutterdev subreddit:

Fullter App to Manage BoardGamesGeek Account
I have created a simple app (using Flutter) with a material design look where you can login with your boardgamegeek account and manage all your collections. You can use to show your firends all the games you have.​If people start to using it, I will put it too in apple store!​Link to Google Play​If you have some ideas of new things I can add let me know!​Thanks in advance!

May 08, 2019 at 03:31PM by valterjpcaldeira
http://bit.ly/307xRvo
New tweet from FlutterDev:

Put our Cupertino package to work building interfaces that iOS users will love. ❤️ Then, take a deep dive into how to access iOS platform APIs from within a Flutter app!

Dive in with us at #io19 → https://t.co/IgXpUutxNt pic.twitter.com/f4ZLe9Tzk2— Flutter (@FlutterDev) May 8, 2019

May 08, 2019 at 06:30PM
http://twitter.com/FlutterDev/status/1126162347482124290
New post on /r/flutterdev subreddit:

No reload activity, Help Me!
I have an Activity where I get a list of documents from a firebase db and shows it. There is also a FAB that i use for change collection and recall the function that print the list in the app page, but when i click it the collection change correctly, but the list in the screen won't change till i hot reload from the editor.there is the code i use:
String collectionFirebase = 'collection1'; class _MyHomePageState extends State<MyHomePage> { @override Widget build(BuildContext context) { All all = new All(context); // int counter = 0; // print(collectionFirebase); return Scaffold( appBar: AppBar(title: Text('Test DB')), body: all._buildBody(context), floatingActionButton: all._refresh(), ); } } class All{ BuildContext context; All(BuildContext _context){ context = _context; } Widget _refresh(){ return FloatingActionButton( child: Icon(Icons.cached), onPressed: (){ if(collectionFirebase == "collection1"){ collectionFirebase = "collection2"; print(collectionFirebase); _MyHomePageState().build(context); } else{ collectionFirebase = "collection1"; print(collectionFirebase); _MyHomePageState().build(context); } }, ); } Widget _buildBody(BuildContext context) { return StreamBuilder<QuerySnapshot>( stream: Firestore.instance.collection(collectionFirebase).snapshots(), builder: (context, snapshot) { if (!snapshot.hasData) return LinearProgressIndicator(); return _buildList(context, snapshot.data.documents); }, ); } Widget _buildList(BuildContext context, List<DocumentSnapshot> snapshot) { return ListView( padding: const EdgeInsets.only(top: 20.0), children: snapshot.map((data) => _buildListItem(context, data)).toList(), ); } Widget _buildListItem(BuildContext context, DocumentSnapshot data) { final record = Record.fromSnapshot(data); return Padding( key: ValueKey(record.name), padding: const EdgeInsets.symmetric(horizontal: 16.0, vertical: 8.0), child: Container( decoration: BoxDecoration( border: Border.all(color: Colors.grey), borderRadius: BorderRadius.circular(7.0), ), child: ListTile( title: Text(record.name), trailing: Text(record.votes.toString()), onTap: () => Firestore.instance.runTransaction((transaction) async { final freshSnapshot = await transaction.get(record.reference); final fresh = Record.fromSnapshot(freshSnapshot); await transaction.update(record.reference, {'votes': fresh.votes + 1}); }), ), ), ); } } class Record { final String name; final int votes; final DocumentReference reference; Record.fromMap(Map<String, dynamic> map, {this.reference}) : assert(map['name'] != null), assert(map['votes'] != null), name = map['name'], votes = map['votes']; Record.fromSnapshot(DocumentSnapshot snapshot) : this.fromMap(snapshot.data, reference: snapshot.reference); @override String toString() => "Record<$name:$votes>"; } 


May 08, 2019 at 06:44PM by xbobby98x
http://bit.ly/2DWmv3U