Skip to main content

qrmotion 0.1.0 copy "qrmotion: ^0.1.0" to clipboard
qrmotion: ^0.1.0 copied to clipboard

Animated QR codes where every frame still scans. Slide, jiggle, flip, ripple, spectrum and morph effects with a built-in verifier. Zero dependencies.

example/main.dart

import 'package:flutter/material.dart';
import 'package:qrmotion/qrmotion.dart';

void main() => runApp(const MaterialApp(home: Demo()));

class Demo extends StatefulWidget {
  const Demo({super.key});

  @override
  State<Demo> createState() => _DemoState();
}

class _DemoState extends State<Demo> {
  QrEffect _effect = QrEffect.slide;

  @override
  Widget build(BuildContext context) => Scaffold(
        backgroundColor: const Color(0xFFF5F2EA),
        body: Center(
          child: Column(mainAxisSize: MainAxisSize.min, children: [
            AnimatedQr(text: 'https://example.com', effect: _effect, size: 280),
            const SizedBox(height: 24),
            Wrap(spacing: 8, children: [
              for (final e in QrEffect.values)
                ChoiceChip(label: Text(e.name), selected: e == _effect, onSelected: (_) => setState(() => _effect = e)),
            ]),
          ]),
        ),
      );
}
0
likes
150
points
12
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Animated QR codes where every frame still scans. Slide, jiggle, flip, ripple, spectrum and morph effects with a built-in verifier. Zero dependencies.

Topics

#qr #qrcode #animation

License

MIT (license)

Dependencies

flutter

More

Packages that depend on qrmotion