This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import 'package:flutter/material.dart'; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| // This widget is the root of your application. | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| debugShowCheckedModeBanner: false, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| showCustomMenu(context) { | |
| final RenderBox overlay = Overlay.of(context).context.findRenderObject(); | |
| showMenu( | |
| context: context, | |
| position: RelativeRect.fromRect( | |
| _tapPosition & Size(40, 40), | |
| Offset.zero & overlay.size | |
| ), | |
| items: [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = ({ name, price1, price2, receiptId }) => { | |
| const today = new Date(); | |
| return ` | |
| <!doctype html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>PDF Result Template</title> | |
| <style> | |
| .invoice-box { |