flutter_gb_pos_print 0.0.1 copy "flutter_gb_pos_print: ^0.0.1" to clipboard
flutter_gb_pos_print: ^0.0.1 copied to clipboard

outdated

GaziBilisim POS Print

example/lib/main.dart

import 'package:flutter/material.dart';
import 'dart:async';

import 'package:flutter/services.dart';
import 'package:flutter_gb_pos_print/flutter_gb_pos_print.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {

  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Row(
          mainAxisAlignment: MainAxisAlignment.spaceAround,
          children: [
            MaterialButton(
              child: const Text(
                "Test Print",
                style: TextStyle(
                  color: Colors.white,
                  fontSize: 20,
                ),
              ),
              onPressed: () async {
                GBPosPrint.startPrint("GAZIBEL HIZ. MUS. INS. SAN. TIC. A.S.\n\r\n");
                GBPosPrint.spacePrint(5);
                GBPosPrint.startPrint("ISYERI NO : 112424245\n");
                GBPosPrint.startPrint("TERMINAL NO : 23432\n");
                GBPosPrint.spacePrint(10);
                GBPosPrint.startPrint("GAZIANTEP BILISIM AS");
                GBPosPrint.spacePrint(15);
              },
              color: Colors.green,
            ),
          ],
        ),
      ),
    );
  }
}