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

How do you do i18n/l10n?
TL&DR consider easy_localization and its companion easy_localization_loader.(Longer version...)I am looking for a i18n/l10n design + solution for a project I am working on. As a new comer to Flutter and mobile development in general, I was surprised to learn that there is no officially recommended way for something I'd consider fundamental to all app design.AFAIK the closest to "official' approach is described under Internationalization on flutter.dev . To be honest, this page reads like techno soup to me. There are a lot of boiler plate code, and the examples presented isn't what I'd consider simple, scalable, and realistic. Mentioned as an option is the intl package, which seems to be popular based on down stream dependent packages on pub.dev. I looked into it and thought it is quite feature complete but still seems a little code heavy for simple usage. So I looked around and tried out a few other i18n packages, and finally I found easy_localization and it's companion easy_localization_loader.Within minutes I got it working with minimal code changes to my app. All I had to do is:add plugin to dependencyadd json file for each supported locale to my projectwrap my run app as described in the example (copy pasta below)​
import 'package:flutter/material.dart'; import 'package:flutter_localizations/flutter_localizations.dart'; import 'package:easy_localization/easy_localization.dart'; void main() { runApp( EasyLocalization( supportedLocales: [Locale('en', 'US'), Locale('de', 'DE')], path: 'assets/translations', // <-- change patch to your fallbackLocale: Locale('en', 'US'), child: MyApp() ), ); } class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( localizationsDelegates: context.localizationDelegates, supportedLocales: context.supportedLocales, locale: context.locale, home: MyHomePage() ); } } 
After that anywhere in my code whenever I have a localized string I just have to wrap it with tr(). e.g.
Text(tr('welcome')); // instead of Text('welcome') 
I was also surprised to find that to save a user's preferred locale to local storage is just a boolean flag. It uses shared_preferences under the hood and I verified that it works on ios and android, and gracefully fail without breaking anything in web.In the future I intend to load the resource strings remotely, and I was pleasantly surprised again that the companion easy_localization_loader offers an http loader that can be configured as an easy one liner.Looking over on the package's github page, seems like the community is very active, another good sign. The fact that it relies on intl as the underlying foundation also makes me feel better that I have access to the other features such as gender, number, datetime formatting etc.​Seeing that there aren't other post talking about this great plugin, I decided to write a post about it to raise awareness among fellow flutter enthusiasts.

May 19, 2020 at 08:11PM by BeGoodOne
https://ift.tt/2WInjTE
New post on Flutter Dev Google group:

Module 'cloud_firestore' not found
Hey I get the error `Module 'cloud_firestore' not found` when running Product archive in Xcode. My flutter app's working fine in the simulator even Firebase is working properly. I have no idea to fix this Error....

May 19, 2020 at 09:02PM by Nils
https://ift.tt/2WK9dku
New post on Flutter Dev Google group:

my reorderlistview is not working
Can anybody take a look at my code and help me why my reorder is not working. so when ever I try to drag the item to new position, the rest of other items disappear for a while and when I drop the one that I'm holding, it didn't make any changes (positions). import 'package:flutter/material.dart

May 19, 2020 at 10:12PM by aasenomad
https://ift.tt/3cPEmso
New post on Flutter Dev Google group:

how to redesign reoderablelistview in flutter
I have a containers inside reoderablelistview and when ever the user try to drag the item, you can see extra layout so is there a way that I can fix it to be exactly like the containers inside so that it look better. Any help or suggestion will be really appreciate. thanks ``` Widget

May 20, 2020 at 12:04AM by aasenomad
https://ift.tt/2ykQenq
New post on /r/flutterdev subreddit:

Here is a simple tutorial in setting up flavors in Flutter. This setup applies to both iOS and Android without changing their respective config files
https://ift.tt/3bNnYHR

May 20, 2020 at 03:31AM by rafaelph
https://ift.tt/2Tnwnv8
New post on Flutter Dev Google group:

Provider gives error after upgrading from ^3.1.0 to ^4.0.0 or above
I'm using provider: ^3.1.0, and my code works fine. After I upgrade Provider to provider: ^4.0.0 or above , it starts giving below error. Any suggestion? Syntax that gives error: Provider.of
New post on /r/flutterdev subreddit:

Announcing Appwrite 0.6 With Full Flutter Support
After about six long weeks of hard work since the last version release, Appwrite 0.6 is finally out with full support for Flutter integration and more new features 🥳If you haven’t heard about Appwrite before, It’s an open-source BAAS (backend-as-a-service) that abstracts a lot of the complexity and repetitiveness required when building a backend API from scratch. The server comes packaged as a set of Docker containers you can host anywhere really quickly, and it has lots of built-in security features.You can read the full announcements on Medium: https://medium.com/@eldadfux/introducing-appwrite-0-6-with-flutter-support-1eb4dce820f3?sk=8f3b0ff0446fdb667d31d558bc540456 or you can watch the online announcement at the *live* meetup we held yesterday: https://www.youtube.com/watch?v=KNQzncq10CIIf you think Appwrite can be a good fit for your next Flutter app, you can learn more about the project at the official website or on the GitHub repository:https://appwrite.io
https://github.com/appwrite/appwriteYou can also join the Appwrite Flutter community on Discord (https://discord.gg/GSeTUeA), where you can get support and updates.

May 20, 2020 at 09:06AM by eldadfux
https://ift.tt/3g80obW
New post on Flutter Dev Google group:

how to handle event from widget at the bottom of Stack?
say here is a Stack widget, it has 2 children widgets, like this: Stack( children:
New post on Flutter Dev Google group:

Themes
Hi, I am interested in how a theme can be built for Flutter. We design our UI in Adobe XD. Thanks, Bisser

May 20, 2020 at 11:49AM by Bisser Stoyanov
https://ift.tt/2LHdYF9
New post on /r/flutterdev subreddit:

New app built using Flutter
Hello everyone!I've developed and recently published a mobile app (iOS + Android) for managing your timesheet for clients and generate invoices directly from your phone. As a freelancer I wanted something more simpler, more faster and a more straightforward way to manage your time spent on projects and later summarize it into invoices.Links:- https://apps.apple.com/us/app/projects-timesheet-invoices/id1513127709?ls=1- https://play.google.com/store/apps/details?id=ro.adrian.mateoaea.projects.androidHope you guys like it!

May 20, 2020 at 12:40PM by rrrasputin0
https://ift.tt/2ZjoDy0
New post on /r/flutterdev subreddit:

App Feedback: Anagram, Word Scramble Solver, Android, iOS
I just had a minimal Flutter app published to the App Store and Play Store. The app solves word scrambles and anagrams using an internal dictionary and can work completely offline.This app takes advantage of an internal isolate to offload the anagram computation and prevent blocking the UI. Further enhancements will be made to support Spanish, provide feedback ability for missing or incorrect words and offer word scores for both Scrabble and Words with Friends. Additionally, sorting of the results by word length or word score will be added.iOS App Store Download
https://apps.apple.com/us/app/solve-word-scrambles/id1514127557?ls=1Android Play Store Download
https://play.google.com/store/apps/details?id=com.jspell.anagramsFeedback is welcome!

May 20, 2020 at 04:39PM by utilitycoder
https://ift.tt/36exjae
New tweet from FlutterDev:

⚡️Flutter Package Ecosystem Update!#FlutterGoodNewsWednesday

New Flutter Favorite plugins, Apple Sign In, and progress on bringing pre-release Flutter plugins into production.

More here &rarr; https://t.co/BYcYRj7LHv pic.twitter.com/LydrwUR3RD— Flutter (@FlutterDev) May 20, 2020

May 20, 2020 at 05:17PM
http://twitter.com/FlutterDev/status/1263126787774504962
New post on Flutter Dev Google group:

Persimos para uso de camara.
Hola grupo, necesito ayuda en algo muy puntual, necesito utilizar la cámara para leer códigos qr, instale las dependencias en el .yaml (qrcode_reader: ^0.4.4) y también lo importe (import 'package:qrcode_reader/qrcode_reader.dart, pero a la hora de querer usar la cámara no se activa, si el

May 20, 2020 at 08:05PM by Sergio Morales
https://ift.tt/2ZlypzC