最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

android - problem of printing in flutter use printing pacakge due crash - Stack Overflow

programmeradmin6浏览0评论

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)); // 
发布评论

评论列表(0)

  1. 暂无评论