Get the current method name from the Stack Trace (Hack)

By doing some string manipulation on the current stack trace, you can extract the current method name (useful for logging). https://codewithandrea.com/tips/get-method-name-stack-trace/

Erstellt 10mo | 24.07.2024, 12:40:11


Melden Sie sich an, um einen Kommentar hinzuzufügen

Andere Beiträge in dieser Gruppe

Button Styles in Material 3

Material 3 supports 5 types of buttons: elevated, filled, filled tonal, outlined, and text. Here's how to use them in Flutter. https://codewithandrea.com/tips/button-styles-material3/

07.05.2025, 11:50:03 | Code with Andrea
Test your UI with ThemeData.platform

By overriding ThemeData.platform inside MaterialApp, you can quickly test all your adaptive widgets and any conditional code that checks the platform. https://codewithandrea.com/tips/themedata-platfor

06.05.2025, 12:40:03 | Code with Andrea
Flutter App Analytics: Scalable Architecture & Firebase Setup

A complete guide to adding analytics to Flutter apps using Firebase. Track custom events with a maintainable architecture. https://codewithandrea.com/articles/flutter-app-analytics/

02.05.2025, 13:40:04 | Code with Andrea
Adaptive Alert Dialog (Material, Cupertino)

A simple alert dialog that supports adaptive mode, default and cancel actions, destructive style, and dismissible mode. https://codewithandrea.com/tips/adaptive-alert-dialog/

01.05.2025, 09:50:03 | Code with Andrea
Kotlin DSL in Flutter 3.29: How to Update Your Android Gradle Files

New Kotlin DSL in Flutter 3.29? Learn how to update your Gradle files, configure code signing, flavors, and more, in minutes. https://codewithandrea.com/articles/flutter-android-gradle-kts/

30.04.2025, 15:20:05 | Code with Andrea
How to Initialize Firebase Remote Config

A battle tested solution for loading Firebase Remote Config in Flutter, avoiding common pitfalls. https://codewithandrea.com/tips/firebase-remote-config-init/

30.04.2025, 10:40:04 | Code with Andrea
How to Disable Impeller on Android

debugRepaintRainbowEnabled helps you discover widgets/areas that unexpectedly repaint in your app. Here's how to use it. https://codewithandrea.com/tips/disable-impeller-android/

29.04.2025, 13:40:14 | Code with Andrea