theyakka / qr.flutter

QR.Flutter is a Flutter library for simple and fast QR code rendering via a Widget or custom painter.
https://pub.dev/packages/qr_flutter
BSD 3-Clause "New" or "Revised" License
718 stars 323 forks source link

not able to generate multiple textfiled to qr code generator please suggest #176

Open appsgamedev opened 2 years ago

appsgamedev commented 2 years ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like A clear and concise description of what you want to happen.

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

aydemiromer commented 2 years ago

What is the purpose here, to combine all the texts and create a qr?

pragneshpalsanabitcoding commented 2 years ago

show this image = https://we.tl/t-plpmnNsJ4X https://www.the-qrcode-generator.com.

i want make this type multiple text-filed data in single QR code. my e commerce app use for delivery boy access multiple data by QR code.

aydemiromer commented 2 years ago

If you want to do the same here, process all textfields with the same controller. Here, the structure is reset when switching to a different request, you can clear the controller in the selection.

pragneshpalsanabitcoding commented 2 years ago

can you give me example demo code file please help.

aydemiromer commented 2 years ago

late final TextEditingController _textController;

String qrText = ''; @override void initState() { super.initState(); _textController = TextEditingController(text: qrText); }

SizedBox _qr() { return SizedBox( height: context.height * 0.4, child: Center( child: QrImage( data: qrText, version: QrVersions.auto, size: 200, gapless: false, ), ), ); } Padding myTextFormFieldUrl() { return Padding( padding: const EdgeInsets.all(8.0), child: TextFormField( controller: _textController, onChanged: (value) => setState(() { qrText = value; }), decoration: InputDecoration( border: InputBorder.none, labelText: LocaleKeys.home_page_text_field_label_url.tr(), ), ), ); }

You can use one more time textform with controller

pragneshpalsanabitcoding commented 2 years ago

Please suggest multiple text-filed data in single barcode.

lukepighetti commented 2 years ago

This is a Stack Overflow question