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

FlutterForce — Week 139
https://ift.tt/3oeo45b

September 26, 2021 at 11:41AM by flutterist
https://ift.tt/3ispNAb
New post on /r/flutterdev subreddit:

Making a login screen do I create the firebase first or later.
Hi I was needing to know if making the firebase system after building the app in flutter

September 26, 2021 at 05:29PM by Soft-Tailor-4606
https://ift.tt/3zHQhU2
New post on /r/flutterdev subreddit:

How to start building a social media app
Hi I am brand new to making apps in flutter, I have done tutorials and read through most of the information, it’s a lot to absorb but I am asking what should be done first and how should I make a flutter app that requires being made in ios and android

September 26, 2021 at 05:27PM by Soft-Tailor-4606
https://ift.tt/3ubQQUI
New post on /r/flutterdev subreddit:

Tools and improvements for DX and testing. What do you use?
Hi All,I have been recently working on certain tools to help improve my own workflow for flutter and for architecture in general and this got me curious. What do you guys use?The things I am interested in are the followingHow do you ensure good code quality?Are you guys using git hooks or something similar?What does your CI/CD pipeline consist of?Do you guys have any specific testing strategies?What tools do you use for debugging and logging?How do you ensure analytics-related code is not entangled with business logic?How do you manage different environments? (Staging, Production, etc)
I think in general it's things like what do you do to ensure a scalable code base that is architecture agnostic?

September 27, 2021 at 09:09AM by ibrahim_mubarak
https://ift.tt/2XV8NeP
New post on /r/flutterdev subreddit:

Flutter Tap Weekly Newsletter Week 104 - Tutorials, videos, packages, and much more!
https://ift.tt/3iaYyda

September 27, 2021 at 03:05PM by vensign
https://ift.tt/3kMgAnQ
New post on /r/flutterdev subreddit:

The getter 'documents' isn't defined for the type 'QuerySnapshot<Map<String, dynamic>>'
The type 'List<QueryDocumentSnapshot<Map<String, dynamic>>>' used in the 'for' loop must implement 'Iterable' with a type argument that can be assigned to 'Map<dynamic, dynamic>'.dart(for_in_of_invalid_element_type) Changed from this code:
class CategoryServices { String collection = "categories"; Firestore _firestore = Firestore.instance; Future<List<CategoryModel>> getCategories() async => _firestore.collection(collection).getDocuments().then((result) { List<CategoryModel> categories = []; for (DocumentSnapshot category in result.documents) { categories.add(CategoryModel.fromSnapshot(category)); } return categories; }); } 
To this, but getting an error. Where did I go wrong?
class CategoryModel { String? image; String? name; CategoryModel({this.image, this.name}); // receiving data from server factory CategoryModel.fromMap(map) { return CategoryModel(image: map['image'], name: map['name']); } // sending data to our server Map<String, dynamic> toMap() { return { 'image': image, 'name': name, }; } } class CategoryServices { String collection = "category"; FirebaseFirestore _firestore = FirebaseFirestore.instance; Future<List<CategoryModel>> getCategories() async => _firestore.collection(collection).get().then((result) { List<CategoryModel> categories = []; for (Map category in result.docs) { //error at this line categories.add(CategoryModel.fromMap(category)); } return categories; }); } 


September 27, 2021 at 02:33PM by vaishu1005
https://ift.tt/3idCmPE
New post on /r/flutterdev subreddit:

Flutter State Management With Provider
Hi guys. I published a simplified approach to Flutter state management using provider. Do let me know what you think.Link to post

September 27, 2021 at 03:53PM by joshuaerinosho
https://ift.tt/3ANIKEi
New post on /r/flutterdev subreddit:

Newsletter Flutter Croissants 🥐 - #05 - Dart's tear-off constructors, AngularDart finally switches to null safety, An official server-driven UI solution for Flutter? …
https://ift.tt/3iaP6Xk

September 27, 2021 at 03:42PM by g123k
https://ift.tt/3ue4WFj
New tweet from FlutterDev:

🗺📲 uniGO — the navigation app built with Flutter. Designed by a Google Developer Student Club chapter in Vietnam, Da Nang University of Technology, uniGO makes it easier for users to locate classrooms, buildings, departments and more. Try it out 👉 https://t.co/mo0cWwsFbX https://t.co/vQ5OnopdlF— Flutter (@FlutterDev) Sep 27, 2021

September 27, 2021 at 06:00PM
https://twitter.com/FlutterDev/status/1442519424876040196
New post on /r/flutterdev subreddit:

Cross-platform does not mean single codebase.
Good morning fellow Flutterlings! Wait, is that a thing? We have Gophers in Go and Rustaceans in Rust... What do we call a Flutter enthusiast? Maybe a Flutturion? Anyways, I digress.For the past month I’ve been learning Flutter and Dart and I’ve been having a blast. My background is primarily Rust and Go on the backend (microservices) but I did spend about 1,500ish hours with React back in 2016-2017 building user interfaces for a couple management systems and web apps.With that said, I’m struggling with one concept in particular when it comes to Flutter and that’s what seems to be the current meta of a creating a single monolithic codebase, in order to create cross-platforms apps.A good friend of mines company has a Flutter app in production for both iOS and Android, as well as Android TV, and they're about to add desktop as well. The codebase, as you can imagine, is packed full conditionals for platform specific widgets, styling and media queries. They also have multiple team members working on different parts of the codebase at the same time, stepping on each others toes.So I’m wondering why the meta with Flutter seems to be to go monolithic? Why not create a separate Flutter project for each supported platform, along with a centralized library of cross-platform widgets that are sharable amongst platforms, projects and teams? We used to do this with React.The downsides to this approach that I can see are really just the initial setup cost (time) for the projects, CI/CD configuration, etc. Worst case scenario we only talking about one day of time once someone is familiar with the process.The benefits I can see to separate projects are (no particular order):Projects become far less complicated to understand (cognitive overhead) and maintain because they are platform-specific. Allot less code noise. Revisiting something months later when the mental model has expired and have it make sense quickly is a huge win IMO.A projects codebase is smaller and probably more performant. You're not shipping all platforms in a single codebase. Maybe there is a way to exclude non target-platform code in Flutter that I haven't discovered yet?Separate teams or employees can maintain separate platforms and platforms can be on different versions, vary in their feature set, etc..Easier/faster for new team members to get up to speed.More optimized UIs (less adaptiveness/responsiveness)A cross-platform widget, services, etc. library means future projects get built quicker because reusable components already exist.What else?Anyways, I'm curious if anyone else or your the company you work for are using separate platform projects?I really feel like cross-platform does not mean single code base and any upfront cost of a separate platform projects would be recovered tenfold over the life a of a project. Maybe I'm wrong and missing something?Cheers,Caz

September 27, 2021 at 06:38PM by Cazineer
https://ift.tt/3kKK4Cn