Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] can we change height or width on back side? #88

Open
RanaSharjeelShji opened this issue Nov 22, 2023 · 0 comments
Open

[BUG] can we change height or width on back side? #88

RanaSharjeelShji opened this issue Nov 22, 2023 · 0 comments

Comments

@RanaSharjeelShji
Copy link

it set front side height and width to back side design automatically

[FlipCard(
                            fill: Fill.fillBack,
                            direction: FlipDirection.HORIZONTAL,
                            side: CardSide.FRONT,
                            front: Container(
                              height: 200, // Set the height for the front side
                              width: 300, // Set the width for the front side
                              child: Row(
                                crossAxisAlignment: CrossAxisAlignment.center,
                                mainAxisAlignment: MainAxisAlignment.start,
                                children: [
                                  ClipRRect(
                                    borderRadius: BorderRadius.circular(h * .5),
                                    child: Image.network(
                                      appointments[index]['docImage']
                                          .toString(),
                                      fit: BoxFit.cover,
                                    ),
                                  ),
                                  Padding(
                                    padding: const EdgeInsets.all(8.0),
                                    child: Column(
                                      crossAxisAlignment:
                                          CrossAxisAlignment.start,
                                      mainAxisAlignment:
                                          MainAxisAlignment.center,
                                      children: [
                                        Text(
                                          appointments[index]['title']
                                              .toString(),
                                          style: AppConstants.titleTextStyle,
                                        ),
                                        Text(
                                          appointments[index]['title']
                                              .toString(),
                                          style: AppConstants
                                              .subtitleDarkTextStyle,
                                        ),
                                      ],
                                    ),
                                  ),
                                ],
                              ),
                            ),
                            back: Container(
                              height:
                                  400, // Set a different height for the back side
                              width:
                                  350, // Set a different width for the back side
                              color: AppConstants.primaryColor,
                              child: Center(
                                child: Text(
                                  appointments[index]['docName'].toString(),
                                ),
                              ),
                            ),
                          ),](url)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant