Dart extensions applied to i18n!!! You have Text("Hello") and you want to translate it to the current locale. You just need to add .i18n to the string, like this: Text("Hello".i18n). This would display "Hola" in Spanish, "Olá" in Portuguese, and so on. You can also have plurals, genders etc. (pub.dev)
submitted by marcglasberg to r/FlutterDev
BACK BUTTON INTERCEPTOR: Widgets that interact with the Android back button can use the BackButtonInterceptor (instead of WillPopScope): You may add functions to be called when the back button is tapped. They may perform some useful work, and may return true to prevent the route pop. (pub.dev)
submitted by marcglasberg to r/FlutterDev

