Flutter Heroes
26.1K subscribers
272 photos
2 videos
31.1K links
Download Telegram
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
New post on /r/flutterdev subreddit:

Flutter for Web Development
Is Flutter better for Web Developments than HTML&CSS? Or is there any flutter's pros/cons for Web dev?

September 28, 2021 at 08:57AM by zuhudz
https://ift.tt/3ujnN1D
New post on /r/flutterdev subreddit:

[Mobile/Desktop] `quick_breakpad` -- Crash report plugin via Google Breakpad
GitHub: https://github.com/woodemi/quick_breakpadpub: https://pub.dev/packages/quick_breakpad​Google Breakpad: https://chromium.googlesource.com/breakpad/breakpadBreakpad is a set of client and server components which implement a crash-reporting system.​Android dump file parsedSo the crash is at line 30 of quick_breakpad_example.cpp
Operating system: Android 0.0.0 Linux 3.18.71-perf-g4a0ef96 #1 SMP PREEMPT Thu Nov 22 00:40:45 CST 2018 aarch64 CPU: arm64 4 CPUs GPU: UNKNOWN Crash reason: SIGSEGV /SEGV_MAPERR Crash address: 0x0 Process uptime: not available Thread 0 (crashed) 0 libquick-breakpad-example.so!Java_com_example_quick_1breakpad_1example_Utils_crash [quick_breakpad_example.cpp : 30 + 0x0] 
​iOS dump file parsedSo the crash is at line 11 of AppDelegate.m
Operating system: iOS 11.3.1 20E241 CPU: amd64 family 6 model 158 stepping 10 12 CPUs GPU: UNKNOWN Crash reason: EXC_BAD_ACCESS / KERN_INVALID_ADDRESS Crash address: 0x0 Process uptime: 1 seconds Thread 0 (crashed) 0 Runner!__57-[AppDelegate application:didFinishLaunchingWithOptions:]_block_invoke [AppDelegate.m : 11 + 0x0] 


September 28, 2021 at 10:19AM by sunbreakwang
https://ift.tt/3ofJGhd
New post on /r/flutterdev subreddit:

Which backend do you recommend?
Context:We are a startup trying to build a crypto app with brokerage and a wallet. We are trying to figure out what the best option would be with regards to our backend. I have experience with Firebase, but I have been told that NoSQL databases are not optimal for when money is being exchanged through the app. The other option would be Appwrite or Supabase. However, as far as I'm aware Appwrite does not support push notifications, and is relatively new when it comes to Flutter support. Any other options that would be optimal for this scenario?Requirements:- Security- Push notifications- (Possibly) Wallet- BrokerageThanks in advance!

September 28, 2021 at 11:51AM by webdev93
https://ift.tt/3F8WSLd
New post on /r/flutterdev subreddit:

Use Rust (instead of C++) to develop some algorithms used in Flutter in a real app used in the *production environment* - Is it mature enough? Will I face troubles? Do you suggest it? Has anyone used it?
I write a Flutter app (>100kloc), and need to embed some computer vision algorithms for it. Originally, I use C++, and use the OpenCV library to develop my algorithms. Then I use dart:ffi to allow Flutter code to call my C++ code.It works quite well, but now I need to develop much more complex algorithms, and I am worried because C++ is known to be dangerous unless you are extremely well-trained. So I want to move to Rust. I have learned Rust and used it for several toy projects and love its safety very much. I also see some tutorials about how Rust talks with Flutter (e.g. this one).However, I am quite not sure whether I should do it. Any suggestions and discussions are appreciated!P.S. I have had some discussions with Rust people and it is very wonderful. Of course, I also want to listen to Flutter people as well ;)

September 28, 2021 at 11:32AM by fzyzcjy
https://ift.tt/3uvFNWV