pretty_qr_code 0.0.8 copy "pretty_qr_code: ^0.0.8" to clipboard
pretty_qr_code: ^0.0.8 copied to clipboard

outdated

Pretty QR code for Flutter. You can round the edges with parameter or use the standard view.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:pretty_qr_code/pretty_qr_code.dart';
import 'package:qr/qr.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        body: Center(
            child: PrettyQr(
                image: AssetImage('images/twitter.png'),
                typeNumber: 3,
                size: 300,
                data: 'https://www.google.ru',
                errorCorrectLevel: QrErrorCorrectLevel.M,
                roundEdges: true)));
  }
}
305
likes
30
pub points
98%
popularity

Publisher

unverified uploader

Pretty QR code for Flutter. You can round the edges with parameter or use the standard view.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, qr

More

Packages that depend on pretty_qr_code