LogoLogo
v1.0
v1.0
  • mGramSeva
    • Technology
    • Architecture
    • Demo video
    • Product Docs
      • Functional Docs
        • Login & Forgot Password
        • User Roles & Home Screen
        • Create Consumer
        • Search Consumer
        • Edit Consumer
        • View Consumer
        • Billing - Bulk Demand Generation
        • Billing - Metered Connection
        • Revenue Collection - Offline
        • Expenditure - Add Expense
        • Expenditure - Modify Expense
        • User Onboarding - Bulk Upload
        • User Onboarding/Walkthrough
        • Feedback - Post Payment
        • SMS Notifications
        • Home Page Notifications
        • Edit User Profile
        • Bill and Receipt PDF
        • Update Expense Search
        • Bulk Demand Generation For Non-Metered Connection
        • Demand/Bill Generation For Metered Connection
        • Household Register
        • Tabular Dashboard - Expense
        • Tabular Dashboard - Collection
        • Download Bills & Receipt
      • Technical User Docs
        • Application Structure
        • Firebase Analytics Integration
        • Integration Testing
        • Integration Testing With Github Actions
        • Backend Services
          • mGramSeva - Water Services
          • mGramSeva - Water Service Calculator
          • mGramSeva e-Challan Service
          • mGramSeva - User Service
          • mGramSeva - Billing Service
          • mGramSeva - User OTP
          • iFix Adapter Integration Service
          • mGramSeva - Rollout Dashboard
          • mGramSeva Scheduler
          • mGramSeva- Services Re-Indexing
          • mGramSeva Dashboard
        • Tech User Manual
          • Language Selection
          • Login
          • Change Password
          • Edit Profile
          • Home Page
          • Forgot Password
          • Update Password FTL
          • Generate Bill
          • Search Connection
          • Consumer Details
            • Create Consumer
            • Update Consumer
          • Expenses
            • Add Expenses
            • Search Expense Bills
            • Modify Expenses
          • Dashboards
            • Monthly Dashboard
            • Collections Dashboard
            • Expenditure Dashboard
          • Collect Payment
          • Consumer Feedback
          • Household Register
          • Bluetooth Thermal Printer Integration
        • Application Permissions & Dependencies
        • mGramSeva UI
          • UI Mockups
          • mGramSeva UI
      • User Docs
        • User Manual
    • Installation
    • Configuration
  • 🚻Community
    • Roadmap
    • Source Code
    • Discussion
    • Events
    • Training & Certification
Powered by GitBook

All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.

On this page
  • Dependencies
  • Printing Receipts via Bluetooth Thermal Printer
  • Helper Methods
  • Files Path
  1. mGramSeva
  2. Product Docs
  3. Technical User Docs
  4. Tech User Manual

Bluetooth Thermal Printer Integration

PreviousHousehold RegisterNextApplication Permissions & Dependencies

Last updated 2 years ago

Portable Bluetooth thermal printers are used to generate the mini receipts.

Dependencies

bluetooth_thermal_printer

js

Printing Receipts via Bluetooth Thermal Printer

  • Enable the Bluetooth in the respective mobile device.

  • Switch the thermal printer.

  • Tap on the Print button from the respective screen if the printer device is connected already it will print the receipt directly or else it will show a dialogue with a list of Bluetooth devices, from their user need to a selected respective thermal printer, once the device is paired successfully it will generate a receipt in the printer.

Helper Methods

  • printTicket → Used to write the bytes to the thermal printer if the device is connected otherwise it will show paired Bluetooth devices in a dialogue.

    Required Arguments → bytes, context

  • getTicket → Used to generate the bytes from Image and also sets the paper size. Required Arguments → Image

  • showMyDialog → Used to show the Paired Bluetooth devices Required Arguments → bytes, context

  • setConnect → If the device is already connected it will generate the receipt or else it will show the paired devices to connect.

Files Path

All content on this page by is licensed under a .

punjab-mgramseva/common_printer.dart at master · misdwss/punjab-mgramseva
punjab-mgramseva/index.html at master · misdwss/punjab-mgramseva
​
eGov Foundation
Creative Commons Attribution 4.0 International License