debug_bricks_fcm_token 1.0.0 copy "debug_bricks_fcm_token: ^1.0.0" to clipboard
debug_bricks_fcm_token: ^1.0.0 copied to clipboard

FCM Token UI debug brick

UI component which displays FCM token.

Dependencies #

This package use firebase_messaging package. Before using brick make sure that your project setup firebase correctly.

Getting started #

Add to your pubspec.yaml:

dependencies:
  debug_bricks_fcm_token: <last_version>

Usage #

TextBrick

TextBrick

import 'package:debug_bricks_fcm_token/debug_bricks_fcm_token.dart';

class DebugScreen extends StatelessWidget {
  const DebugScreen({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return FcmTokenBrick(
      title: 'FCM token',
    );
  }
}