Code on the Rocks

@cotr
7 Followers
7 Following
207 Posts
Building the AI-focused Stack Overflow alternative πŸ€–
Websitehttps://cotr.dev

Pro Flutter Tip πŸ’™

You can change the application ID and label of your Android app during development using the "debug" build type

This lets you have the production and development versions installed at the same time

Ex.
- I want to change the YouTube music UI so it looks like Spotify
- I want every app to have a bottom nav bar
- I want to hide all images on every social feed I look at

In short: less "generative AI" and more "make my app look like this"

I don’t believe generative AI will be a thing, at least not how it's talked about now

I do think there will be a trend towards a personal UI across all apps and AI will make it possible

Developers provide the schema -> Users create the design

Today's the day I add Shorebird to my Fastlane files

These app store times are giving me ulcers

TIL you can override the equality operator in Flutter/Dart πŸ’™

This is especially important when using the Signals library.

If the change you make to a signal doesn't change the equality check, the signal won't trigger any changes

#Flutter Tip πŸ’™

Turn on the "checked" flag in the JsonSerializable annotation to see exactly which fields cause errors during deserialization

This has saved me literal hours

Flutter Tip πŸ’™

You can use the .icon (and .tonalIcon) button constructors to auto-add an icon before the button label

Does anyone know how to make .tonalIcon do anything? πŸ˜…

This Flutter package is pretty cool πŸ‘€

Turn any widget into a loading skeleton that mimics the widgets layout

Flutter Tip πŸ’™

You can convert any widget to an image (ex. PNG)

1. Find RenderRepaintBoundary using GlobalKey
2. Convert RenderRepaintboundary to Image
3. Convert Image to ByteData

πŸ“Έ

Flutter reminder πŸ’™πŸ”₯

You shouldn't show an error message on every sign in "error"

Google Sign In and Firebase Auth can both throw errors that simply mean the user canceled the sign in flow-->