From e0ebd82befb7c23306ca46e0162bc5568df6de3d Mon Sep 17 00:00:00 2001 From: poka Date: Sun, 28 Feb 2021 06:22:44 +0100 Subject: [PATCH] Add printer, add border to array --- assets/printer.png | Bin 0 -> 460 bytes lib/screens/onBoarding/9_stepNine.dart | 43 +++++++++++++++++++++++-- 2 files changed, 40 insertions(+), 3 deletions(-) create mode 100755 assets/printer.png diff --git a/assets/printer.png b/assets/printer.png new file mode 100755 index 0000000000000000000000000000000000000000..ced5f5d0576f3f152f291dd4fb721220161033c0 GIT binary patch literal 460 zcmV;-0W zC4svt(Xm*Lp0?ybUc9Yl@?8EwEI#B<4Y1`68VH} z2iqX_4PhujOkVz3p!swRO~9vZ{uMhatH$)CbEGF{@7SVTteSm*{RCq#FmqSarF|fb z%w1>LuD&(A^;4}HjqTP=;eWN~2xINdy=)4Sp1!8CrZ^zGv;l-Lv?NHH2*IxI5J(av zO+>Q;9FUVb^c3PZHR=i&c8p)cw)?SY*wX!O3it&Mje9Jv{2bo^0000[ @@ -217,3 +233,24 @@ Widget arrayCell(dataWord) { style: TextStyle(fontSize: 16, color: Colors.black)), ])); } + +// ignore: must_be_immutable +class PrintWallet extends StatelessWidget { + PrintWallet(this.sentence); + + final String sentence; + + @override + Widget build(BuildContext context) { + GenerateWalletsProvider _generateWalletProvider = + Provider.of(context); + return MaterialApp( + home: Scaffold( + appBar: AppBar(title: Text('Imprimer ce trousseau')), + body: PdfPreview( + build: (format) => _generateWalletProvider.printWallet(sentence), + ), + ), + ); + } +}