Skip to content

Instantly share code, notes, and snippets.

@iranjunior
Last active June 28, 2021 14:34
Show Gist options
  • Select an option

  • Save iranjunior/74072ee9a797e474a5288f83c766603f to your computer and use it in GitHub Desktop.

Select an option

Save iranjunior/74072ee9a797e474a5288f83c766603f to your computer and use it in GitHub Desktop.

Revisions

  1. iranjunior revised this gist Jun 28, 2021. No changes.
  2. iranjunior created this gist Jun 28, 2021.
    11 changes: 11 additions & 0 deletions home_page.dart
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    class _MyHomePageState extends State<MyHomePage> {
    bool _isGuess = false;

    @override
    void initState() {
    super.initState();
    // Seta se o usuário no momento já está logado
    FirebaseCrashlytics.instance.setCustomKey('guess', _isGuess);
    // Seta o id do usuário para melhoria na investigação
    FirebaseCrashlytics.instance.setUserIdentifier(widget.user['id']);
    }