look when i make print in flutter use package printing i got crash , it working well , but when i click on icon to get back , it crash , it happpen when i enter on printering icon , but when i 'm not printer when i get back it working well , please help me how can i avoid this : this my code
# ? Row(
mainAxisAlignment: MainAxisAlignment.end,
children: [
Padding(
padding: const EdgeInsets.all(8.0),
child: FloatingActionButton(
heroTag:
'uniqueTag1', // Add a unique heroTag to avoid conflicts
backgroundColor: const Color(0xff01443A),
child: const Icon(
Uiicon.angleSmallRight2_1,
color: Colors.white,
),
onPressed: () async {
if (_isPrinting) return; // Prevent back while printing
if (mounted) {
try {
await Future.delayed(const Duration(
milliseconds:
300)); //