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

Need architecture advice for building a 3rd party extensions marketplace for my own Flutter app
I'm currently building a SAAS collaboration platform for volunteering engineers that provides several integrated tools such as posts, chats, documents, events and goals. I've designed the UI such that several side panels and screens can host views provided by 3rd party developers. My goal is to design a marketplace system where external vendors can showcase their extensions that can be installed on the app to enhance the workflow of the users. Similar to how Jira or Wordpress extensions work.Marketplace requirements:Provide a public API that can be queried by 3rd party extensionsA system for managing developer identity (for management and marketing reasons)Payments tracking (the core system will extract a transaction fee)Hooks (slots) to insert custom widgets and a system to register themA way to limit access to resources that the client consents to shareRate limiting featuresAbility to sandbox the 3rd party widgets (I suppose webviews are the way)Performance considerationsAbility to revoke extensionsI expect the vendors to host their own servers for caching their own extended data sets.I will be hosting this infrastructure on a self-managed kubernetes cluster in digital ocean. I have ability to use/configure tools like reverse proxy to satisfy such demands. I don't intend to go head first in going public, but I do want to have a solid understanding of what needs to be there such that the app can grow towards achieving these goals.Burning questions:How to display widgets and webviews from vendors in Flutter?How to register vendors ids and how to register them as API clients?How to safely expose life cycle events, GUI hooks and REST APis?How to track transactions?So far my experience with working with such integrations is limited (general overview from working with CMSes in the past and some hands on experience from working as a Jira extension developer). I've been researching on google/youtube to find guidelines on how to build the marketplace infrastructure but relevant materials are hard to spot. Any advice/guidelines/architecture/links/videos you can share I'll be happy to consume.PS: There's a live read only demo here of the app which will host the marketplace and I have a discord where I'm already brainstorming extension ideas with the upcoming vendors.

January 23, 2022 at 12:38PM by SpaceInstructor
https://ift.tt/355QE0Q
New post on /r/flutterdev subreddit:

FlutterForce — Week 154
https://ift.tt/3rIjhJ9

January 23, 2022 at 03:27PM by flutterist
https://ift.tt/3KBHUzR
New post on /r/flutterdev subreddit:

Is it a risk for the Flutter client to talk directly to the database?
I have to inherited a Flutter app.Although there is some node.js server functionality, the Flutter client talks directly to the database (currently AWS Firebase, soon to be mysql).This makes me shudder, as I think that the clients should talk to the server, and only the server should talk directly to the database.Am I worrying about nothing, or is this a red flag (and, if so, just how bad is it?)

January 23, 2022 at 03:24PM by jamawg
https://ift.tt/3rIiMPh
New post on /r/flutterdev subreddit:

Can we build this on Flutter?
Client brief: A web app (with iOS and android versions) for financial consultancy service. The user should be able to login, check latest stock recommendations, download research reports, view his profile, make payments, raise support tickets, check recommended stocks and receive real time notifications.PS complete noob here.

January 23, 2022 at 10:59PM by jaivardhan07
https://ift.tt/3GQVNYG
New post on /r/flutterdev subreddit:

Have you used flutter + golang together before? If so, how was your experience?
Before I start learning Go to use with flutter, I want to hear from some people who have used it in their apps. Please provide details of how you used go as a backend to your app.View Poll

January 23, 2022 at 10:57PM by Why_Did_Hermiod_die
https://ift.tt/33C0kjz
New post on /r/flutterdev subreddit:

Are there any Flutter Devs here who have used Ionic. What are your thoughts on Ionic?
I am thinking of learning Angular with the aspiration that the next mobile web I build I will beusing the Ionic Framework.​Hav eyou guys used Ionic before? What do you think of it as a flutter developer?

January 24, 2022 at 02:23AM by RenSanders
https://ift.tt/3KN8JBo
New post on /r/flutterdev subreddit:

Every time I complain about Flutter's Material components, I'm reminded that we're lucky to even have components. Flutter could have been like React and included no prebuilt components at all.
^

January 24, 2022 at 04:06AM by Codelessly
https://ift.tt/3AoKkgy
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