Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
appsgamedev opened this issue May 12, 2022 · 7 comments
Labels
enhancement New feature or request

Comments

@appsgamedev
Copy link

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.

@appsgamedev appsgamedev added the enhancement New feature or request label May 12, 2022
@aydemiromer
Copy link

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

@pragneshpalsanabitcoding

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
Copy link

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

can you give me example demo code file please help.

@aydemiromer
Copy link

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

Please suggest multiple text-filed data in single barcode.

@lukepighetti
Copy link
Contributor

This is a Stack Overflow question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants