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

New app - Flutter or React Native please suggest?
I am a database developer(SQL/PLSQL), and I also know core PHP, little bit of Frontend (HTML,JS and CSS) , Want to venture in App development, Have a new project in hand to develop a health exercise app based on user profile, this is for a doctor who needs an app for his patients.Please suggest me weather to use with Flutter or React Native? Please suggest on below high level requirementsBoth Android/IOS apps needed(i have a PC not a MAC)User based login systemAdmin Page to assign exercises to patientsVideo exercises (May be I'll embed YouTube videos)User notificationsGraphs(good to have)

January 24, 2022 at 05:57AM by TheSumMustBe7
https://ift.tt/3tXpIL9
New post on /r/flutterdev subreddit:

Hydrated Bloc: Persist and Restore Your Bloc State/Data
https://ift.tt/33ZjDTx

January 24, 2022 at 07:07AM by Red_Star25
https://ift.tt/3u1cRrc
New post on /r/flutterdev subreddit:

My new project somehow broke my old project...not sure why.
So...the old project had older dependencies such that null-safety and such wouldn't be an issue. The new project was fully up to date, however. But now I can't run/build my old project and I don't know what to do at all or what questions I need to even ask. Please help.

January 24, 2022 at 07:35AM by Syntaximus
https://ift.tt/3tYKMRH
New post on /r/flutterdev subreddit:

UI gallery
What is your favorite flutter design gallery that you use to get inspiration from?

January 24, 2022 at 08:15AM by huff_elliott
https://ift.tt/35bwQct
New post on /r/flutterdev subreddit:

Display a MaterialBanner when your internet connection is unavailable.
Just published my first package to pub https://pub.dev/packages/internet_checker_bannerinternet_checker_banner display a MaterialBanner when your Internet connection is bad or unavailable, and close it otherwise. The plugin determine if the device is currently connected to the global network (has access to the Internet).Let me know if there's anything you'd like to see added to it.

January 24, 2022 at 10:09AM by Berthold_sossa
https://ift.tt/3FPzl0V
New post on /r/flutterdev subreddit:

My first Medium Article!!!! ➡️ Functional Programming Error Handling in Flutter
https://ift.tt/3AyAuZB

January 24, 2022 at 11:07AM by mariopepsicola
https://ift.tt/3fQ80AS
New post on /r/flutterdev subreddit:

Flutter vs Kotlin Multiplatform Mobile (not a holywar)
TL;DR: huge topic, but hope former native devs will found it interestingMy case is that i'm experienced dev/arch and i was pushed to build mobile App for one startup.I specifically decided to ask question in FlutterDev channel rather than in Android/iOS Native ones.At work i used and use a bunch of languages, so Dart vs Kotlin doesn't matter for me.I'm completely green in mobile direction, so wanted to ask experienced Mobile Devs to confirm or deny my concerns in choosing right stack.As always in this question it was:UI:- found Compose and SwiftUI pretty similar and less boilerplate (little difference) than Flutter itself - it's less LOC/capacity of code to write native visually complex widget for specific platform than crossplatform widget in Flutter (I also take into account UI branching in Flutter, such that Spinner should be different in iOS and Android).- found Compose and SwiftUI much more boilerplate than Flutter for visually simple but interactively complex widgets. For example - Horizontal Pager with custom paddings, layouts and different widget positions on different horizontal lines (with different gestures) within single Pager (it was realworld case).Backend/Repository layer:- found Flutter graphql is way ahead , even almost mature as Apollo for JS. apollo-kotlin is several miles behind, a lot of issues, absolutely inconvenient usage after graphql-flutterLibraries (my most huge concerns):- Didn't find specific benchmarks for Hybrid Composition, but found a lot of issues on Github where people complain about performance in some specific cases (even on Android 10+)- 3D graphics, i used filament in KMM and it was outstanding, didn't find bindings or similar pub- Company was forced to use specific Vector Maps backend (but i think it is true for any other) and packages in Flutter are in a very early stage for this problem. I have choice to write Hybrid Composition for both platforms since Vector Maps provider deliver Android and iOS client libraries or to go hard way and impl the client library itself.- ML: i have a prototype using tflite_flutter_plugin but it was a huge mistake, used workarounds several times hitting segfaults and other memory usage issues (it's very risky to use it in production on hundred of different devices). Ended up with Flutter Channels for platform specific clients.At the end:Currently i have KMM in production, but besides all listed above - SwiftUI -> KMM shared module interaction is a pain.I'm building second mobile APP using Flutter (it's like a duo app project for different roles, first is already implemented in KMM) and it's like a fighting question in my head - was it better to choose KMM or to stick with Flutter, since every stack has very contradictory pros and cons:KMM: writing and copying SwiftUI style from Compose and fighting with Swift -> KMM shared module interaction.Flutter: Hybrid Composition and Channels are huge boilerplates. Also even i'm working in enterprise world constantly with five-six-seven+ different languages (but each of them for specific domain, purpose, high-level task) - it's very very very annoying to build Client application using three languages at the same time with boilerplate to glue them.When i'm thinking about this two technologies i'm asking myself - is copying and writing SwiftUI was easier for iOS than writing Hybrid Composition / Channels for both ? Am i missing something ?

January 24, 2022 at 12:03PM by kitsen_battousai
https://ift.tt/3Iwji9P
New post on /r/flutterdev subreddit:

Flutter Challenge is back on the 1st of February!
/r/FlutterChallenges/comments/sbkpfu/flutter_challenge_is_back_on_the_1st_of_february/

January 24, 2022 at 01:04PM by dtengeri
https://ift.tt/3FPVxrC
New post on /r/flutterdev subreddit:

<b>Tried to implements clean architecture but getting error List<dynamic> is not a subtype of Map<String, dynamic></b>
Hey, Guy's I working on my projects where I tried to implement a clean architecture with the bloc for that I follow <a href="https://devmuaz.medium.com/flutter-clean-architecture-series-part-1-d2d4c2e75c47">this article</a> which can explain each and every step very clear and easy way but it was the first time to follow that pattern for use packages like <a href="https://pub.dev/packages/retrofit">retrofit</a> <a href="https://pub.dev/packages/dio">dio</a> <a href="https://pub.dev/packages/json_serializable">json_serializable</a> and generated models and services.Issue:<pre>Unhandled Exception: DioError [DioErrorType.other]: type 'List<dynamic>' is not a subtype of type 'Map<String, dynamic>' in type cast </pre>every time I call to get the user function to get the user data (JSON file below) it shows the above error.JSON Response:<pre>[ { "id": 3, "uid": "aoUXxUVkLlgP1jswYM3JTW0f02H3", "display_name": "Kevin Rebort", "email": "kevinrebort@gmail.com", "password": "", "phone_number": "", "photo": "", "email_verified": true, "is_anonymous": false, "is_active": true, "provider": "google.com", "language": "hindi", "dark_theme": false, "layout": "card", "refresh_token": "", "tenant_id": "", "created_at": "2022-01-20T11:55:58.839138+00:00", "last_login": "2022-01-20T11:55:58.839138+00:00" } ] </pre>Note: For every request-response is the same (CURD) or thus is the only response.User Param: core/param/user_param.dart<pre>class UserRequestParam { final String userId; UserRequestParam(this.userId); } </pre>Core Usecases: Core/usecases/usecases.dart<pre>abstract class UseCase<T, P> { Future<T> call({P params}); } </pre>User Entities: data/entities/user.dart<pre>import 'package:equatable/equatable.dart'; class User extends Equatable { final int? id; final String uid; final String? displayName; final String? email; final String? password; final String? phoneNumber; final String? photo; final bool? emailVerified; final bool? isAnonymous; final bool? isActive; final String? provider; final String? language; final bool? darkTheme; final String? layout; final String? refreshToken; final String? tenantId; final String? createdAt; final String? lastLogin; const User({ this.id, required this.uid, this.displayName, this.email, this.password, this.phoneNumber, this.photo, this.emailVerified, this.isAnonymous, this.isActive, this.provider, this.language, this.darkTheme, this.layout, this.refreshToken, this.tenantId, this.createdAt, this.lastLogin, }); @override bool get stringify => true; @override List<Object?> get props { return [ id, uid, displayName, email, password, phoneNumber, photo, emailVerified, isAnonymous, isActive, provider, language, darkTheme, layout, refreshToken, tenantId, createdAt, lastLogin, ]; } } </pre>UserModel: data/model/user_model.dart<pre>import 'package:equatable/equatable.dart'; import 'package:json_annotation/json_annotation.dart'; part 'user.g.dart'; @JsonSerializable() class UserModel extends Equatable { final int? id; final String? uid; @JsonKey(name: 'display_name') final String? displayName; final String? email; final String? password; @JsonKey(name: 'phone_number') final String? phoneNumber; final String? photo; @JsonKey(name: 'email_verified') final bool? emailVerified; @JsonKey(name: 'is_anonymous') final bool? isAnonymous; @JsonKey(name: 'is_active') final bool? isActive; final String? provider; final String? language; @JsonKey(name: 'dark_theme') final bool? darkTheme; final String? layout; @JsonKey(name: 'refresh_token') final String? refreshToken; @JsonKey(name: 'tenant_id') final String? tenantId; @JsonKey(name: 'created_at') final String? createdAt; @JsonKey(name: 'last_login') final String? lastLogin; const UserModel({ this.id, this.uid, this.displayName, this.email, this.password, this.phoneNumber, this.photo, this.emailVerified, this.isAnonymous, this.isActive, this.provider, this.language, this.darkTheme…
New post on /r/flutterdev subreddit:

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

January 24, 2022 at 03:07PM by vensign
https://ift.tt/3KPH3Mj
New post on /r/flutterdev subreddit:

How to Upload Flutter Project on GitHub | Bring Remote Repo Locally
https://ift.tt/3nVRWCm

January 24, 2022 at 05:54PM by rrtutors
https://ift.tt/3rLBgyn
New tweet from FlutterDev:

👾 Have you joined our Hackathon? Try your hand at a fun coding project and see what you can do with Flutter! Submit your solutions with us for a chance to be featured. #FlutterPuzzleHack 🥳 Get started 👉 https://t.co/fH3oUV69UE https://t.co/MyOuxBofGD— Flutter (@FlutterDev) Jan 24, 2022

January 24, 2022 at 06:00PM
https://twitter.com/FlutterDev/status/1485658662790217734
New post on /r/flutterdev subreddit:

fast_ui | An alternative to GetX
https://ift.tt/3Asryow

January 24, 2022 at 06:35PM by Rexios80
https://ift.tt/3GWLbHW
New post on /r/flutterdev subreddit:

Tell me why would I have to use a third party package to handle the state
Don't get me wrong, I'm not challenging anyone, it's just that I've heard of so many libraries to handle the state that so far I don't find them very useful, they contaminate the code at the end it seems that you weren't coding for Flutter.
// Global App State class AppState extends ChangeNotifier { AppState(); bool _isInitializing = true; User user; // ..... } // Use this to manipulate state to prevent rebuilds. class AppScope extends InheritedWidget { const AppScope({ Key? key, required this.state, required this.service, required Widget child, }) : super(key: key, child: child); final AppState state; final AppService service; static AppScope of(BuildContext context) { final result = context.dependOnInheritedWidgetOfExactType<AppScope>(); assert(result != null, 'No AppScope found in context'); return result!; } @override bool updateShouldNotify(AppScope oldWidget) => false; } // If I need an updated reference, every time the state changes I can get the last value class AppNotifier extends InheritedWidget<AppState> { const AppNotifier({ Key? key, AppState? notifier, required Widget child, }) : super(key: key, child: child, notifier: notifier); static AppState of(BuildContext context) { final result = context.dependOnInheritedWidgetOfExactType<AppNotifier>(); assert(result != null, 'No AppNotifier found in context'); return result!.notifier!; } } 


January 24, 2022 at 07:36PM by andrefedev
https://ift.tt/3ogc2Yf
New post on /r/flutterdev subreddit:

How to increase app speed
I'm new to Mobile app development and I created my first app. It's just a simple app that basically just fetches data from my WordPress blog. Currently, I'm hosting my WordPress blog on Hostinger and paying Web Hosting Premium plan (https://www.hostinger.com/pricing)Let's say I release the app on App Store and play store and got a lot of Users. I heard that when there are a lot of users using the app at the same time, the data might be slow and it might crash the app so I'm just wondering how to prevent that or handle it immediately when it happens in the future.If data is taking too long to load on the app for every user then, can I just go to Hostinger and upgrade a plan?. Do you know if this going to fix this kind of issue?I'm just wondering what kind of scenario should I be expecting to happen and how to be ready to fix those kind of issue.

January 24, 2022 at 11:42PM by aase_nomad
https://ift.tt/347GAUs