Commit 36719643 authored by Andrey's avatar Andrey

examples update

parent 8210be1a
PODS:
- charset_converter (0.0.1):
- Flutter
- Flutter (1.0.0)
- path_provider (0.0.1):
- Flutter
......@@ -8,12 +10,15 @@ PODS:
- Flutter
DEPENDENCIES:
- charset_converter (from `.symlinks/plugins/charset_converter/ios`)
- Flutter (from `Flutter`)
- path_provider (from `.symlinks/plugins/path_provider/ios`)
- path_provider_macos (from `.symlinks/plugins/path_provider_macos/ios`)
- wifi (from `.symlinks/plugins/wifi/ios`)
EXTERNAL SOURCES:
charset_converter:
:path: ".symlinks/plugins/charset_converter/ios"
Flutter:
:path: Flutter
path_provider:
......@@ -24,6 +29,7 @@ EXTERNAL SOURCES:
:path: ".symlinks/plugins/wifi/ios"
SPEC CHECKSUMS:
charset_converter: 215c7b04932ec2b9ba43be96a9bc34afed3e5322
Flutter: 0e3d915762c693b495b44d77113d4970485de6ec
path_provider: fb74bd0465e96b594bb3b5088ee4a4e7bb1f2a9d
path_provider_macos: f760a3c5b04357c380e2fddb6f9db6f3015897e0
......
......@@ -93,14 +93,15 @@ class _MyHomePageState extends State<MyHomePage> {
}
Future<Ticket> testTicket(PaperSize paper) async {
final Ticket ticket = Ticket(paper);
final profile = await CapabilityProfile.load();
final Ticket ticket = Ticket(paper, profile);
ticket.text(
'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');
ticket.text('Special 1: àÀ èÈ éÉ ûÛ üÜ çÇ ôÔ',
styles: PosStyles(codeTable: PosCodeTable.westEur));
styles: PosStyles(codeTable: 'CP1252'));
ticket.text('Special 2: blåbærgrød',
styles: PosStyles(codeTable: PosCodeTable.westEur));
styles: PosStyles(codeTable: 'CP1252'));
ticket.text('Bold text', styles: PosStyles(bold: true));
ticket.text('Reverse text', styles: PosStyles(reverse: true));
......@@ -162,7 +163,8 @@ class _MyHomePageState extends State<MyHomePage> {
}
Future<Ticket> demoReceipt(PaperSize paper) async {
final Ticket ticket = Ticket(paper);
final profile = await CapabilityProfile.load();
final Ticket ticket = Ticket(paper, profile);
// Print image
final ByteData data = await rootBundle.load('assets/rabbit_black.jpg');
......
......@@ -18,14 +18,14 @@ void main() async {
}
Future<Ticket> testTicket() async {
final Ticket ticket = Ticket(PaperSize.mm80);
final profile = await CapabilityProfile.load();
final Ticket ticket = Ticket(PaperSize.mm80, profile);
ticket.text(
'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');
ticket.text('Special 1: àÀ èÈ éÉ ûÛ üÜ çÇ ôÔ',
styles: PosStyles(codeTable: PosCodeTable.westEur));
ticket.text('Special 2: blåbærgrød',
styles: PosStyles(codeTable: PosCodeTable.westEur));
styles: PosStyles(codeTable: 'CP1252'));
ticket.text('Special 2: blåbærgrød', styles: PosStyles(codeTable: 'CP1252'));
ticket.text('Bold text', styles: PosStyles(bold: true));
ticket.text('Reverse text', styles: PosStyles(reverse: true));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment