main function
Implementation
Future<void> main() async {
await runZonedGuarded(
() async {
WidgetsFlutterBinding.ensureInitialized();
// Configure the SDK once. Replace the color with your brand color.
await PrinterSdk.initialize(
primaryColor: const Color(0xFF2563EB),
appBarTitle: 'Printer Settings',
);
runApp(const DemoApp());
},
(Object error, StackTrace stackTrace) {
debugPrint('Uncaught error: $error');
debugPrint('Stack trace: $stackTrace');
},
);
}