A Material 3 Flutter app for generating and exporting QR codes on desktop, mobile, and web.
- Generate QR codes from URLs, email addresses, phone numbers, or plain text.
- Choose QR size: Small, Medium, or Large.
- Select error correction level: Low, Medium, High, or Max.
- Pick from multiple foreground colors.
- Preview the generated QR code before exporting.
- Export QR codes as PNG files.
- Persist the latest input and QR options locally with
shared_preferences. - Uses adaptive desktop window sizing on macOS, Windows, and Linux.
- Flutter
- Dart
- Material 3
- Riverpod
qr_fluttershared_preferencespath_providerwindow_manager
Install Flutter and make sure your environment is ready:
flutter doctor
Install Dependencies
flutter pub get
Run the App
flutter runTo run on a specific platform:
flutter run -d macos
flutter run -d windows
flutter run -d linux
flutter run -d chrome
Usage
- Enter a URL, email address, phone number, or plain text.
- Select the QR size.
- Choose the error correction level.
- Pick a QR foreground color.
- Click Generate.
- Click Export PNG to save the QR code. Export Behavior
- On desktop and mobile, exported PNG files are saved to the application documents directory.
- On web, exporting triggers a browser download.
- Exported files use timestamped names like: qr-code-2026-06-26T12-30-00-000.png Development Analyze Code flutter analyze
Run Tests:
flutter test
Format Code
dart format .
Build
Web
flutter build web
macOS
flutter build macos
Windows
flutter build windows
Linux
flutter build linux
Project Structure:
lib/
app.dart
main.dart
core/
theme/
utils/
widgets/
features/
qr_generator/
qr_controller.dart
qr_exporter.dart
qr_screen.dart
qr_service.dart
MIT License.