flutter

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

Rexios, in Xcode 15 issue related to Flutter 3 — Fix

At least one of these issues was fixed by a cocoapods update, although it did take a while to get released

anlumo, in Everything you need to know about Enum with Flutter and Dart

I’ve yet to find a single use case for enhanced enums. It also doesn’t help that freezed doesn’t support them.

Rexios,

How exactly does freezed not support them? All data on an enhanced enum is static.

samus7070,

Maybe the code generator? I have no idea. It seems like there shouldn’t be an issue.

anlumo,

Freezed generates sealed classes, not enums.

Rexios,

I’m not sure enhanced enums do what you think they do if you expect freezed to generate anything for them besides what json_serializable generates for regular enums

anlumo,

The whole point of the discussion is that enhanced enums don’t do anything in practice.

problematicconsumer,

Instead of writing verbose extensions and functions all over the place you can use enhanced enums. I mean what else are they supposed to do?

samus7070,

Prior to sealed classes, I wished they were more like swift enums that could carry dynamic data and have different associated types per case. Now if I want that, I can do that with a sealed class. It’s still nice to have smarter enums if I need a little extra smarts and want to keep the logic close to the enum.

snowe, in puby | Run commands in all projects in the current directory. Handle monorepos with ease.

I do not use flutter… but I think people might tend to read the name of your project the wrong way… That might just me being american though…

samus7070,

Fellow American here, I definitely read it the wrong way.

Rexios,

The regular commands are dart/flutter pub, so I thought it could be your “pub buddy” or something like that. I didn’t want to add more characters to the command than necessary just so people pronounce it correctly. In context I think it makes sense.

breadsmasher,
@breadsmasher@lemmy.world avatar

hehehe pubes

Rexios, in Issue 186 - Flutter Tap Weekly Newsletter

Late can be useful but it should only be used as a last resort. It’s extremely dangerous and can very very easily lead to exceptions when refactoring code.

samus7070,

I only use it when I need to initialize a property in a constructor. Otherwise I consider it a bad idea.

samus7070, in firebase_rules | A type-safe Firebase rules generator for Firestore, Storage, and Realtime Database

I’ve only tried to write rules for the older realtime database and it was awful. Anything that can help to turn configuration into code is going to be helpful and appreciated.

merthyr1831, in Reorder animation on lists

maybe local_hero could do some good there?

merthyr1831, in Flutter build outputs

stackoverflow.com/a/62911870/9625456

looks like they’re the same :)

merthyr1831, in What's your experience with multiplatform (Win, web) Flutter?

Small desktop apps are absolutely fine in Flutter. For your use case I can’t imagine there being much problem, beyond connecting to the databases youre using to pull data. You might have to write the API client yourself if it’s not a relatively new database server.

I’d say have a go with it. The basics are similar to TKinter and the UI is a lot nicer by default. You’ll also find it super easy to run on desktop and web - quite literally just changing what the target is and it’ll work out of the box (until you start relying on platform-specific features or packages).

vostronix, in Thunder - An open-source cross-platform Lemmy client for iOS and Android built with Flutter

Its really a nice app :)

Joph, in Help a new flutter man out!

You could pass it up a level by having the ScrollController be a class property obtained thru the constructor, which the parent would then provide when calling the widget.

This gets unwieldy fast. That’s where the state management solutions come in. From the pubspec.yaml, it seems Thunder uses Bloc for that. Look at the docs.

beppi,

I’m looking into Bloc now, thanks!

samus7070, in What's your experience with multiplatform (Win, web) Flutter?

It depends on what your needs are. Database drivers for connecting straight into a database server will be limited. Dart just hasn’t gained as much momentum on the server side as other languages and most apps use an n-tier architecture so no need for drivers. There’s no server side rendering for flutter so your app startup time might be a hinderance for a user just wanting to pull up a web page and see some data.

Caribou, in Thunder - An open-source cross-platform Lemmy client for iOS and Android built with Flutter

Using it since the migration. Great simple app. Improved a bunch since yesterday’s updates!

anlumo, in Can I learn Flutter basics in a week?

I was able to understand Dart in one evening and Flutter in another, based on my prior experience with React and SwiftUI. The rest of the learning was just about specific widgets.

okawari, in Can I learn Flutter basics in a week?
okawari avatar

YMMV, I found the process of learning Flutter to be very quick, simple and instantly productive.

I work for a web company and floated the idea of trying out Flutter, because we were using nativescript at the time and wasn't really happy with it. The request got denied, but I decided to just go ahead and learn flutter over the weekend. Come monday, I had a working, but somewhat rough around the edges version of the app we were developing. We decided to continue developing it and has stuck with Flutter ever since.

I really enjoy working with flutter.

curioushom, in Can I learn Flutter basics in a week?

This is a really good tutorial playlist starting with very basics, which you could skip/speed past based on your experience level.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • flutter@programming.dev
  • DreamBathrooms
  • ngwrru68w68
  • modclub
  • magazineikmin
  • thenastyranch
  • rosin
  • khanakhh
  • InstantRegret
  • Youngstown
  • slotface
  • Durango
  • kavyap
  • mdbf
  • GTA5RPClips
  • megavids
  • tacticalgear
  • normalnudes
  • tester
  • osvaldo12
  • everett
  • cubers
  • ethstaker
  • anitta
  • Leos
  • cisconetworking
  • provamag3
  • JUstTest
  • lostlight
  • All magazines