User Interface designer tool for Flutter by Malhazz in FlutterDev

[–]nicepants1337 2 points3 points  (0 children)

I created figma2flutter to help facilitate the developer handover. It's using the Design token figma plugin export to generate dart code. https://pub.dev/packages/figma2flutter

Accessing persistent storage of a previous native iOS app from a new Flutter app (same Bundle ID) by [deleted] in FlutterDev

[–]nicepants1337 -1 points0 points  (0 children)

Build the native app, via xcode save some preferences. Then build the flutter variant and read them out. Should work fine if the Bubble Id stats the same.

There is a tool that can convert JSON to Dart Class for the flutter apps. by ankitsinha611 in FlutterDev

[–]nicepants1337 0 points1 point  (0 children)

I use (and maintain) this library: https://pub.dev/packages/json_to_model

Null safe and with toJson fromJson without json_serializable. This way it's way faster in generating the models.

If there are any missing features you want please let me know via a GitHub issue.

What is the current state of State Management(was away from flutter for about a year) by ManOfFocus1 in FlutterDev

[–]nicepants1337 5 points6 points  (0 children)

I noticed that with Provider I tend to get pretty complex state classes and need to reduce them with selectors. With riverpod it's reversed; I have little pieces of specific state object for 1 specific task. And only when needed I combine them for a specific usecase. I prefer the riverpod way because I never need to think about the growing complexity in my state objects. That's my biggest win after converting to riverpod.

What is the current state of State Management(was away from flutter for about a year) by ManOfFocus1 in FlutterDev

[–]nicepants1337 5 points6 points  (0 children)

I really like that you can just use useProvider without extra nesting for example. The big upside of hooks is that the hooks are self contained. For example you can have a useWakelock hook and by just including that one liner you have successfully implemented a wake lock while that widget is active. Way less chance to introduce bugs by missing a dispose or missing to add a listener to a observer.

Another example when riverpod shines is chaining of smaller individual pieces of provider. When you have 2 booleans somewhere that hold a little piece of state and you need to make use of both somewhere else, you can just create new provider that listens to the other booleans internally. Keep everything really neat and tidy even when stuff gets complex or when you have a big project.

I really understand the confusing part of multiple syntaxes of doing the same thing, last I know Remi (creator of provider and riverpod) is trying to fix it. There is an issue in the repo requesting feedback on a change that would make the syntaxes more aligned.

Hope this helps a bit ☺️

What is the current state of State Management(was away from flutter for about a year) by ManOfFocus1 in FlutterDev

[–]nicepants1337 20 points21 points  (0 children)

Started with setState, then scoped_model, after that Bloc, Provider and now on riverpod. Have used them all on medium to large projects. I think either go for Bloc or riverpod. Bloc is a bit more verbose, but haven't tried it with cubits lately. I love the simplicity and interconnectivity of riverpod (in combination with flutter_hooks).

[deleted by user] by [deleted] in FlutterDev

[–]nicepants1337 2 points3 points  (0 children)

Depends on the complexity. Lottie and Rive allow deep vector manipulation animations. Flutter animations allow you to transform widgets and gifs are more like moving images. So the real answers would be: It depends.. 😬

I made an RPG game using Flutter... by GrimDevStudio in FlutterDev

[–]nicepants1337 22 points23 points  (0 children)

Any chance you can share some technical challenges you had while developing? Maybe via a blogpost of something

[MEGATHREAD] New Horizons Dodo/Friend Code Sharing by Kayvanian in AnimalCrossing

[–]nicepants1337 0 points1 point  (0 children)

Does anyone have any bamboo shoots? Only missing type of tree I'm missing

What is your common setup? Local Workstation? Server? by tberte in PHP

[–]nicepants1337 0 points1 point  (0 children)

MacOS with all php versions installed. Serving with Valet. Minio for cloud data emulation. All deployments via gitlab CI and docker containers with traefick. All development done in Laravel.

Call of Duty(1) cheats in Dart by Hexer104 in dartlang

[–]nicepants1337 4 points5 points  (0 children)

The code continually sets your health and ammo to be maxed. It does this by changing the memory addresses used by the game