{"id":36213762,"url":"https://github.com/wwandreww/esc_pos_printer","last_synced_at":"2026-01-11T04:36:31.667Z","repository":{"id":39749116,"uuid":"191446391","full_name":"wwandreww/esc_pos_printer","owner":"wwandreww","description":"ESC/POS (thermal, receipt) printing for Flutter \u0026 Dart","archived":false,"fork":false,"pushed_at":"2024-08-19T14:37:31.000Z","size":608,"stargazers_count":393,"open_issues_count":106,"forks_count":344,"subscribers_count":22,"default_branch":"master","last_synced_at":"2025-12-22T07:34:34.557Z","etag":null,"topics":["dart","esc","flutter","pos","printer","receipt","receipt-printer","thermal-printer","wifi"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wwandreww.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"andreydev","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"custom":null}},"created_at":"2019-06-11T20:43:04.000Z","updated_at":"2025-12-09T01:11:20.000Z","dependencies_parsed_at":"2024-06-18T18:23:43.543Z","dependency_job_id":"a70c5c33-ec76-4355-9750-a2927f3d6a4b","html_url":"https://github.com/wwandreww/esc_pos_printer","commit_stats":null,"previous_names":["wwandreww/esc_pos_printer"],"tags_count":15,"template":false,"template_full_name":null,"purl":"pkg:github/wwandreww/esc_pos_printer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wwandreww%2Fesc_pos_printer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wwandreww%2Fesc_pos_printer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wwandreww%2Fesc_pos_printer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wwandreww%2Fesc_pos_printer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wwandreww","download_url":"https://codeload.github.com/wwandreww/esc_pos_printer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wwandreww%2Fesc_pos_printer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28284964,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T03:48:11.750Z","status":"ssl_error","status_checked_at":"2026-01-11T03:48:02.765Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","esc","flutter","pos","printer","receipt","receipt-printer","thermal-printer","wifi"],"created_at":"2026-01-11T04:36:29.343Z","updated_at":"2026-01-11T04:36:31.662Z","avatar_url":"https://github.com/wwandreww.png","language":"Dart","readme":"# esc_pos_printer\n\n[![Pub Version](https://img.shields.io/pub/v/esc_pos_printer)](https://pub.dev/packages/esc_pos_printer)\n\nThe library allows to print receipts using an ESC/POS thermal WiFi/Ethernet printer. For Bluetooth printers, use [esc_pos_bluetooth](https://github.com/andrey-ushakov/esc_pos_bluetooth) library.\n\nIt can be used in [Flutter](https://flutter.dev/) or pure [Dart](https://dart.dev/) projects. For Flutter projects, both Android and iOS are supported.\n\nTo scan for printers in your network, consider using [ping_discover_network](https://pub.dev/packages/ping_discover_network) package. Note that most of the ESC/POS printers by default listen on port 9100.\n\n## TODO (PRs are welcomed!)\n\n- Print QR Codes using the `GS ( k` command (printing QR code from an image already supported)\n- PDF-417 Barcodes using the `GS ( k` command\n- Line spacing using the `ESC 3 \u003cn\u003e` command\n\n## How to Help\n\n- Test your printer and add it in the table: [Wifi/Network printer](https://github.com/andrey-ushakov/esc_pos_printer/blob/master/printers.md) or [Bluetooth printer](https://github.com/andrey-ushakov/esc_pos_bluetooth/blob/master/printers.md)\n- Test and report bugs\n- Share your ideas about what could be improved (code optimization, new features...)\n- PRs are welcomed!\n\n## Tested Printers\n\nHere are some [printers tested with this library](printers.md). Please add the models you have tested to maintain and improve this library and help others to choose the right printer.\n\n## Generate a Receipt\n\n### Simple Receipt with Styles:\n\n```dart\nvoid testReceipt(NetworkPrinter printer) {\n  printer.text(\n        'Regular: aA bB cC dD eE fF gG hH iI jJ kK lL mM nN oO pP qQ rR sS tT uU vV wW xX yY zZ');\n  printer.text('Special 1: àÀ èÈ éÉ ûÛ üÜ çÇ ôÔ',\n      styles: PosStyles(codeTable: 'CP1252'));\n  printer.text('Special 2: blåbærgrød',\n      styles: PosStyles(codeTable: 'CP1252'));\n\n  printer.text('Bold text', styles: PosStyles(bold: true));\n  printer.text('Reverse text', styles: PosStyles(reverse: true));\n  printer.text('Underlined text',\n      styles: PosStyles(underline: true), linesAfter: 1);\n  printer.text('Align left', styles: PosStyles(align: PosAlign.left));\n  printer.text('Align center', styles: PosStyles(align: PosAlign.center));\n  printer.text('Align right',\n      styles: PosStyles(align: PosAlign.right), linesAfter: 1);\n\n  printer.text('Text size 200%',\n      styles: PosStyles(\n        height: PosTextSize.size2,\n        width: PosTextSize.size2,\n      ));\n\n  printer.feed(2);\n  printer.cut();\n}\n```\n\nYou can find more examples here: [esc_pos_utils](https://github.com/andrey-ushakov/esc_pos_utils).\n\n## Print a Receipt\n\n```dart\nimport 'package:esc_pos_printer/esc_pos_printer.dart';\n\nconst PaperSize paper = PaperSize.mm80;\nfinal profile = await CapabilityProfile.load();\nfinal printer = NetworkPrinter(paper, profile);\n\nfinal PosPrintResult res = await printer.connect('192.168.0.123', port: 9100);\n\nif (res == PosPrintResult.success) {\n  testReceipt(printer);\n  printer.disconnect();\n}\n\nprint('Print result: ${res.msg}');\n```\n\nFor a complete example, check `example/example.dart` and `example/discover_printers`.\n\n## Test Print\n\n\u003cimg src=\"https://github.com/andrey-ushakov/esc_pos_printer/blob/master/example/receipt2.jpg?raw=true\" alt=\"test receipt\" height=\"800\"/\u003e\n\n\u003cimg src=\"https://github.com/andrey-ushakov/esc_pos_printer/blob/master/example/receipt.jpg?raw=true\" alt=\"test receipt\" height=\"500\"/\u003e\n","funding_links":["https://ko-fi.com/andreydev"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwwandreww%2Fesc_pos_printer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwwandreww%2Fesc_pos_printer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwwandreww%2Fesc_pos_printer/lists"}