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

VS Code extensions v3.11 - Update imports on rename, global expression evaluation, improved CodeLens links
Hey all, v3.11.0 of the Dart/Flutter extensions for VS Code are live. Release notes are below (and online ). Preview: Update Imports on Rename - #548
New post on Flutter Dev Google group:

Flutter IntelliJ Plugin M46 Release
Flutter IntelliJ Plugin M46 Release Support for IntelliJ 2020.2 EAP We now support IntelliJ 2020.2 EAP; enjoy! Bug Fixes - We’ve updated the Material and Cupertino icon previews to the latest available - Only show the Flutter device selector in projects that

May 29, 2020 at 07:32PM by Steve Messick
https://ift.tt/2TLFsy3
New post on Flutter Dev Google group:

Android toolchain - develop for Android devices (Android SDK version 29.0.3) X Android license status unknown.
i have done everything but still, give this error please help me for flutter i have installed all latest SDK, flutter, android studio all are updated java version- jdk-14.0.1

May 29, 2020 at 08:00PM by Tiwari Pitter
https://ift.tt/3gurIl3
New post on Flutter Dev Google group:

Please Help fix this - X Android license status unknown. Try re-installing or updating your Android SDK Manager. ??????
SDK Updated.

May 29, 2020 at 08:03PM by Tiwari Pitter
https://ift.tt/3ca3F7u
New post on /r/flutterdev subreddit:

An(other) state management solution on top of ValueNotifier
https://ift.tt/2Md1be8

May 29, 2020 at 08:27PM by chimon2000
https://ift.tt/2Mdcy5z
New post on Flutter Dev Google group:

Program cannot call outside API once it was deployed to the web server
I'm pretty new to flutter, and wrote the following flutter program to get the client IP address and location. I'm calling "http://ip-api.com/json" for IP address and location information. The program works okay by using device "chrome" and "web server", I can print client's location on the page.

May 29, 2020 at 09:22PM by Yu Zhou
https://ift.tt/2ZOw3cT
New post on /r/flutterdev subreddit:

How to check if image cache exist?
how do you put a condition if the image cache does not exist else do this..thanks in advance 😁

May 29, 2020 at 10:39PM by Alienisus
https://ift.tt/2zGH0Cs
New post on Flutter Dev Google group:

Create and view documents from the user site
Can anyone help me, I want users to be able to create 'documents' from my app. So add text, insert pictures and so on. It should also be possible to do this on several pages, so to create several pages. So far it's still quite easy to program. Now I want to upload everything to Firebase. That is

May 29, 2020 at 11:03PM by Marlene Rahm
https://ift.tt/2XKThh9
New post on Flutter Dev Google group:

Firestore collection to Class Map
Good night my friends, I´m trying to use Firestore with my map classes but I DON´T KNOW how to make this thing work. Please help me. static Future
New post on /r/flutterdev subreddit:

Flutter Voting App
Hi everyone. Help me on how to make users vote only once in an app using flutter and Firestore as backend? My app demands users to login/register. i have done a that. Now i need users to vote only once and this i am having issues with. Anyone done this before? Anyone willing to help?​
import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/material.dart'; import 'dart:async'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( title: 'Baby Names', home: MyHomePage(), ); } } class MyHomePage extends StatefulWidget { @override _MyHomePageState createState() { return _MyHomePageState(); } } class _MyHomePageState extends State<MyHomePage> { @override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: Text('Baby Name Votes')), body: _buildBody(context), ); } Widget _buildBody(BuildContext context) { // TODO: get actual snapshot from Cloud Firestore return StreamBuilder( stream: Firestore.instance.collection('baby').snapshots(), builder: (context, snapshot) { if (!snapshot.hasData) { 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(5.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': record.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 30, 2020 at 06:33AM by Kobbydiscount
https://ift.tt/3eyu2pj
New post on /r/flutterdev subreddit:

A Completed Functional Flutter App - FindSeat (BLoC + Json API + Unit Test + Firebase Auth)
I’m Android Developer and I’m working in a software company in Vietnam. I have experience in both kind project: outsourcing project and product project. I decided to study Flutter, because I believe it’s promised in future. As experienced developer, I care about clean architecture, testing, performance and maintainability that why I keep searching for an example of completed application. Unfortunately, community now full of project such as speedcode, UI challenges, … it’s just small pieces of real world application. In fact, most of the project doesn’t have fancy UI like that. That why I build this project by myself and now share it to the community, I hope you can get something from it then apply to your work.The first version of project (v1.0) is just about UI + simple logic. In this version v2.0, I applied BloC pattern by using Flutter Bloc to project and also have unit tests for it. I also built simple Mock API for the app, it just static json file uploaded to a my private hosting. I hope I have time to do cache local data by SQLite but I have not, so hope next version will be soon available.Check the soure code herehttps://github.com/KhoaSuperman/findseat

May 30, 2020 at 10:22AM by khoahoang668
https://ift.tt/2yMjjs1
New post on Flutter Dev Google group:

Printing to a Bluetooth receipt Zebra Printer ZQ310
Hi, everybody, I have a parking app developed using flutter, and I can connect to my zebra printer via Bluetooth using the flutter_blue (thanks for the plugins), but i couldn't print or send any zpl text to print on my zq310 printer. Please help if there is any solution on printing to the device

May 30, 2020 at 10:17AM by samson dawit
https://ift.tt/3gDpS1i
New post on Flutter Dev Google group:

Send Mails from user side
Is there a package or other solution to send mails from the user side. Without mail server and so on?

May 30, 2020 at 12:07PM by Marlene Rahm
https://ift.tt/3gBB6Dp
New post on /r/flutterdev subreddit:

Using the Super Enum package for Swift-like enums in Dart
https://ift.tt/2AnGUQp

May 30, 2020 at 03:48PM by englishman_in_china
https://ift.tt/2XIJ593