flutter / flutter

Flutter makes it easy and fast to build beautiful apps for mobile and beyond
https://flutter.dev
BSD 3-Clause "New" or "Revised" License
166.19k stars 27.49k forks source link

issue in show #132121

Closed harshil01botify closed 1 year ago

harshil01botify commented 1 year ago
ListView.builder(itemCount: homeController.productTypeController.length,itemBuilder: (context, index) => Container(
                                      decoration: BoxDecoration(
                                          boxShadow: const [
                                            BoxShadow(
                                                color: AppColors.greyColor,
                                                blurRadius: 10.0),
                                          ],
                                          borderRadius:
                                          BorderRadius.circular(10),
                                          gradient: LinearGradient(
                                              colors: [
                                                Colors.deepPurple.shade100,
                                                AppColors.whiteColor
                                              ],
                                              stops: const [
                                                0.0,
                                                1.0
                                              ],
                                              begin: FractionalOffset
                                                  .topCenter,
                                              end: FractionalOffset
                                                  .bottomCenter,
                                              tileMode: TileMode.repeated)),
                                      child: Padding(
                                        padding: const EdgeInsets.all(10),
                                        child: SingleChildScrollView(
                                          child: Column(
                                            crossAxisAlignment:
                                            CrossAxisAlignment.start,
                                            children: [
                                              Text(socialMediaController
                                                  .faceBookAdsContent.value[index]
                                                  .toString()),
                                              const SizedBox(height: 10),
                                              socialMediaController
                                                  .faceBookAdsContent
                                                  .isNotEmpty ||
                                                  socialMediaController
                                                      .linkedinAdsContent
                                                      .isNotEmpty
                                                  ? Row(
                                                mainAxisAlignment:
                                                MainAxisAlignment
                                                    .end,
                                                children: [
                                                  GestureDetector(
                                                    onTap: () {
                                                      FlutterClipboard.copy(widget.title == homeController.faceBookAds ||
                                                          widget.title ==
                                                              homeController
                                                                  .fasBookAdsHeadline
                                                          ? socialMediaController
                                                          .faceBookAdsContent
                                                          .value
                                                          : socialMediaController
                                                          .linkedinAdsContent
                                                          .value)
                                                          .then((value) =>
                                                          Toast.successToast(
                                                              message:
                                                              "Copied to clipboard"));
                                                    },
                                                    child: Container(
                                                      height: 30,
                                                      width: 70,
                                                      decoration: const BoxDecoration(
                                                          borderRadius:
                                                          BorderRadiusDirectional.all(Radius.circular(
                                                              5)),
                                                          color: AppColors
                                                              .lightGreyColor),
                                                      child:
                                                      const Center(
                                                        child: Text(
                                                            "copy",
                                                            style: TextStyle(
                                                                color:
                                                                AppColors.whiteColor)),
                                                      ),
                                                    ),
                                                  ),
                                                  const SizedBox(
                                                      width: 10),
                                                  GestureDetector(
                                                    onTap: () async {
                                                      Share.share(widget.title ==
                                                          homeController
                                                              .faceBookAds ||
                                                          widget.title ==
                                                              homeController
                                                                  .fasBookAdsHeadline
                                                          ? socialMediaController
                                                          .faceBookAdsContent
                                                          .value
                                                          : socialMediaController
                                                          .linkedinAdsContent
                                                          .value);
                                                    },
                                                    child: Container(
                                                      height: 30,
                                                      width: 70,
                                                      decoration:
                                                      const BoxDecoration(
                                                        borderRadius:
                                                        BorderRadiusDirectional.all(
                                                            Radius.circular(
                                                                5)),
                                                        gradient:
                                                        LinearGradient(
                                                            colors: [
                                                              AppColors
                                                                  .gradiantTextColor1,
                                                              AppColors
                                                                  .gradiantTextColor2
                                                            ]),
                                                      ),
                                                      child:
                                                      const Center(
                                                        child: Text(
                                                            "share",
                                                            style: TextStyle(
                                                                color:
                                                                AppColors.whiteColor)),
                                                      ),
                                                    ),
                                                  )
                                                ],
                                              )
                                                  : Container(),
                                            ],
                                          ),
                                        ),
                                      ),
                                    ),),
huycozy commented 1 year ago

It seems you are asking for assistance on personal code. Please see https://flutter.dev/community for resources and ask questions like this. You may also get some help if you post it on Stack Overflow as well.

Closing from here. If you still believe this is a Flutter framework bug, please try to provide information indicated in the template so that we can address this issue properly (See bug issue template here).

github-actions[bot] commented 1 year ago

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.