flutter_jc_printer_plugin/example/lib/main.dart
2023-10-20 17:45:24 +08:00

37 lines
646 B
Dart

import 'package:flutter/material.dart';
import 'dart:async';
import 'package:jc_printer/jc_printer.dart';
void main() {
runApp(const MyApp());
}
class MyApp extends StatefulWidget {
const MyApp({super.key});
@override
State<MyApp> createState() => _MyAppState();
}
class _MyAppState extends State<MyApp> {
final _jcPrinter = JcPrinter();
@override
void initState() {
super.initState();
_jcPrinter.connect();
}
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(
title: const Text('Plugin example app'),
),
),
);
}
}