Skip to content

Instantly share code, notes, and snippets.

View AlvBarros's full-sized avatar

AlvBarros

  • Sao Paulo, Brazil
  • 13:22 (UTC -03:00)
View GitHub Profile
@AlvBarros
AlvBarros / MainActivit.kt new template without onCreate
Created July 20, 2020 14:02 — forked from ErikDohmen/MainActivit.kt new template without onCreate
Creating notificationChannels and notificationChannelGroups dynamically in flutter (with custom sound)
// do you have a new setup for the MainActivity.kt file with no 'onCreate' method, then use the following setup:
// At the top of the file, we need the following imports
import android.os.Build
import androidx.annotation.NonNull
import io.flutter.embedding.android.FlutterActivity
import io.flutter.embedding.engine.FlutterEngine
import io.flutter.plugins.GeneratedPluginRegistrant
import io.flutter.plugin.common.MethodChannel
import android.net.Uri