QR Code that links to profiles within Application Dynamic Linking


Currently developing an app that included user profiles all of their details are stored on firebase.

I think dynamic Linking will be the starting point. But I’m also wondering if it’s possible to generate a qr code on sign up within the app?

What I’m trying to get some information on is being able to assign a QR Code to a user profile when they sign up onto the app. When that qr code is scanned within the application(the app contains a qr code scanner) it opens their profile within the application.

Has anyone done this? or have any information that will help me out.


1 Like

Please do checkout this package, it helps you generate a QR code with some text. You could keep the text as a unique userid for unique QR codes.

Package — qr_flutter

This piece of code will give you a kickstart:

import 'package:flutter/material.dart';
import 'package:flutter/widgets.dart';
import 'package:qr_flutter/qr_flutter.dart';

class QRCode extends StatelessWidget {

  final String text;

  QRCode({Key key, @required this.text});

  Widget build(BuildContext context) {
    return QrImage(
      data: text,
      version: QrVersions.auto,
      size: 320,
      gapless: false,
      errorStateBuilder: (cxt, err) {
        return Container(
          child: Center(
            child: Text(
              "Something went wrong. Please try again later.",
              textAlign: TextAlign.center,
              style: TextStyle(
                color: Colors.red