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

Issues Running Flutter in physical iOS Device
Basically what the title says. I started a project and it’s able to run on Android Emulators and iOS simulators but it crashes on a real iOS device after startup.Link here to the GitHub issue: IssueBasically with the latest flutter Sdk I’m unable to load the Flutter Framework.Anyone experienced this as well?

January 01, 2020 at 05:11PM by sportsbum69
https://ift.tt/2QepsTJ
New post on Flutter Dev Google group:

Formatting Date And Time In Flutter During Return Type
Hi, I have created fun: *HomeScreen*() which extends to HomeScreenState(). I have used *HomeScreenState*() to return Timing And Date. But the issue is I'm unable to format time for* HH:MM (am or pm) *and date to *DD/MM/YYYY.* _currentTime(){ return "${DateTime.now().hour} : ${DateTime.now().minu

January 01, 2020 at 06:23PM by Koustubha Bharadvaj
https://ift.tt/2sCpETT
New post on /r/flutterdev subreddit:

Why can't you mix Dart with Flutter code?
I want to run a for loop inside a Column widget and then call my function buildKey() with a parameter passed to it. But I can't. Why is this illegal in Flutter?
import 'package:audioplayers/audio_cache.dart'; import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { Expanded buildKey(int keyp) { return Expanded( child: FlatButton( color: Colors.red, onPressed: () { final player = AudioCache(); player.play('note$keyp.wav'); }, ), ); } @override Widget build(BuildContext context) { return MaterialApp( home: Scaffold( body: SafeArea( child: Column( children: <Widget>[ for (var i=1;i<6;i++) { buildKey(i); } ], ), ), ), ); } } 


January 01, 2020 at 08:19PM by bsd44
https://ift.tt/36hRzH8
New post on /r/flutterdev subreddit:

Updated My Flutter Hive / Provider Example. Persistent storage with Hive. State management with Provider.
https://ift.tt/36nuDqG

January 01, 2020 at 05:43AM by boon4376
https://ift.tt/2u5A5j3
New post on /r/flutterdev subreddit:

New Powerful Flutter Plugin localize_and_translate
localization and translation was never easier, simple way to translate your flutter apps and make it international​Methods:| `currentLanguage` | `locale` | `init()` | `translate(word)` | setNewLanguage('en')` | locals()​​How To Useadd `localize_and_translate: ^<latest>` to pubspec.yaml dependenciesrun `flutter pub get` into root dir of the appadd `import 'package:flutter_localizations/flutter_localizations.dart';` to use `GlobalMaterialLocalizations.delegate`add `import 'package:localize_and_translate/localize_and_translate.dart';` to use plugin :grin:wrap app entry into `LocalizedApp()`, and make sure you define it's child into different place "NOT INSIDE"runApp(LocalizedApp(child: MyApp(),),);convert your `main()` method to async, we will need nextadd `WidgetsFlutterBinding.ensureInitialized();` at very first of `main()`inside `main()` define your languagesLIST_OF_LANGS = ['ar', 'en'];add `.json` translation files as assets* For example : `'assets/langs/ar.json'`| `'assets/langs/en.json'* structure should look like{"appTitle" : "Example","buttonName" : "التحول للعربية",}{"appTitle" : "تجربة","buttonName" : "English",}* define them as assets into pubspec.yamlflutter:assets:- assets/langs/en.json- assets/langs/ar.json* run `flutter pub get`* into `main()` define your root directoryLANGS_DIR = 'assets/langs/';intialize plugin `await translator.init();`* so now your `main()` should look like thisFuture<void> main() async {// if your flutter > 1.7.8 : ensure flutter activatedWidgetsFlutterBinding.ensureInitialized();​LIST_OF_LANGS = ['ar', 'en']; // define languagesLANGS_DIR = 'assets/langs/'; // define directoryawait translator.init(); // intialize​runApp(LocalizedApp(child: MyApp(),),);}​define your `LocalizedApp()` child as `MaterialApp()` like thisclass MyApp extends StatefulWidget {u/override_MyAppState createState() => _MyAppState();}​class _MyAppState extends State<MyApp> {u/overrideWidget build(BuildContext context) {return MaterialApp(home: Home(), // re RoutelocalizationsDelegates: [GlobalMaterialLocalizations.delegate,GlobalWidgetsLocalizations.delegate,],locale: translator.locale,supportedLocales: translator.locals(),);}}​enjoy like next example* we use `translate(word)`* `setNewLanguage(languageCode)` : and it's parametersclass Home extends StatefulWidget {u/override_HomeState createState() => _HomeState();}​class _HomeState extends State<Home> {u/overrideWidget build(BuildContext context) {return Scaffold(drawer: Drawer(),appBar: AppBar(title: Text(translator.translate('appTitle')),// centerTitle: true,),body: Container(width: double.infinity,child: Column(crossAxisAlignment: CrossAxisAlignment.center,children: <Widget>[SizedBox(height: 50),Text(translator.translate('textArea'),style: TextStyle(fontSize: 35),),SizedBox(height: 150),OutlineButton(onPressed: () {translator.setNewLanguage(context,newLanguage: translator.currentLanguage == 'ar' ? 'en' : 'ar',remember: true,restart: true,);},child: Text(translator.translate('buttonTitle')),),],),),);}}​## Complete Examplehttps://github.com/MohamedSayed95/localize_and_translate/tree/master/example

January 01, 2020 at 10:32PM by m_sayed
https://ift.tt/2rKKobA
New post on /r/flutterdev subreddit:

Documentation for using cloud firestore with flutter?
I am fairly new to flutter and app development, so I apologize if I am missing something here, but I am having some trouble finding a "complete" documentation for using cloud firestore with flutter. I've mainly only found steps for setting up firebase and examples, but when it comes to the actual database management in Cloud Firestore I couldn't find anything about Flutter. For example, I found this:https://firebase.google.com/docs/firestore/query-data/get-databut the code snippets don't contain anything for the Dart language. If you guys are aware of a comprehensive documentation or tutorial for using firestore with flutter out there please let me know.Thanks!

January 02, 2020 at 01:19AM by SaintPablo22
https://ift.tt/36gJp1X
New post on Flutter Dev Google group:

Select data based on month and year
We storing date as String in column created_at by below format 2019-10-09T15:29:28.000+08:00in Moor. We would like to write a select query, to retrieve data where month are October and year is 2019. Future
New post on /r/flutterdev subreddit:

Does anyone know of a good tutorial that step-by-step has you build an app that's simple, but has all the scaffolding and boilerplate of a production sized app?
When I first learned React one of the most valuable tutorials I used was Brad Traversy's "MERN Stack Front To Back" on Udemy. In it he sets up React with routing, Redux and Thunk, using a folder structure that could scale with the size of the web app you're making.I found myself going back to that project time and again as a starting point: Maybe I wanted to use Sagas instead of Thunk. Maybe I evolved in the way that I wanted to lay out things. However having that full starting point was a fantastic jumping off point to building lots of different things.With Flutter, so far, the majority of tutorials I've come up against are "Startup Name Generators" or Todo list apps that barely deal with routing or State at all.To be fair, I've barely scratched the surface on available learning materials and tutorials, but I figured it might be faster/easier to just ask if anyone here knows of a good tutorial/Udemy course/video series like the one I'm describing.

January 02, 2020 at 05:21AM by mca62511
https://ift.tt/2QdVMGr
New post on Flutter Dev Google group:

Need help on Geolocation related query
Hello We are developing an app that is based on geolocation. so first we need to get geolocation. for this I have used https://ift.tt/2QCezKC this library and according to my knowledge this is only one right now. It's still in under development. It's take time to get

January 02, 2020 at 08:09AM by Snehal Bhatt
https://ift.tt/2Fp68x7
New post on /r/flutterdev subreddit:

Easy And Powerful Flutter Plugin For Localization And Translation
https://ift.tt/2MNzBoy

January 02, 2020 at 09:14AM by m_sayed
https://ift.tt/2QC8r4R
New post on /r/flutterdev subreddit:

Getter And Setter VsCode Extension - Generates Getters and Setters for Dart in VsCode!
https://ift.tt/2N3dNp5

January 02, 2020 at 10:30AM by androidjunior
https://ift.tt/36iLPNB
New post on Flutter Dev Google group:

Cached Images doesn't exists after App re-start
Hi all, I'm trying to cache an image from the image_picker
New post on Flutter Dev Google group:

Many Flutter crashes appearing on Google Play console
Hi everyone I am new to Flutter and just submitted a new app. Actually the app is not exactly new but I rewrote it from scratch using Flutter (previously it was developed using another engine). Over the past few days, I shocked to see many crashes appearing on the console though I did not

January 02, 2020 at 11:04AM by Ah Huat
https://ift.tt/2ucI1PJ
New post on Flutter Dev Google group:

SingleChildScrollView Problem please help
I want to achieve is on my logIn screen when I type in textFeild, keyboard hides my other field and logIn Button and after some hit and trial, I manage to do. for now, I have this problem. https://www.youtube.com/watch?v=FJ7ZFEhXz4c Can you please help.

January 02, 2020 at 12:39PM by Sandeep Sharma
https://ift.tt/2ZGMRjW
New post on Flutter Dev Google group:

Can not create a build archive for iOS
Hello all developers and Andy I want create a build archive for iOS but I get error "can not Module 'firebase_analytics' not found" App is working on emulator and device and release iOS is okay but can not create a build archive for iOS. sataspesco@Kuroshs-MacBook-Pro spbudget % flutter build

January 02, 2020 at 04:03PM by Mohammad Bazrafkan
https://ift.tt/2FaCNX1
New post on /r/flutterdev subreddit:

flutter_turtle is a simple implementation of turtle graphics for Flutter. It simply uses a custom painter to draw graphics into a widget by a series of LOGO-like given commands.
https://ift.tt/2QJv0EM

January 02, 2020 at 06:25PM by Elixane
https://ift.tt/35eouLv
New post on /r/flutterdev subreddit:

Dexter 👨&zwj;🏭 - ViewModel Generator for Flutter, Built using Flutter 💙
https://ift.tt/36hNJOh

January 02, 2020 at 06:55PM by fleper
https://ift.tt/2trXpXS