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

Dimensions are not calculated properly #27

Open
pzehle opened this issue Jul 13, 2023 · 1 comment
Open

Dimensions are not calculated properly #27

pzehle opened this issue Jul 13, 2023 · 1 comment

Comments

@pzehle
Copy link

pzehle commented Jul 13, 2023

I have a layout with some horizontal and vertical spacing; however, the dimensions for each item are sometimes not calculated properly, or at least they are not the same as their siblings...

Screenshot 2023-07-14 at 00 44 32

This is the code:

Container(
	padding: const EdgeInsets.only(left: 30, right: 30),
	width: Get.width,
	height: Get.height,
	child: Dashboard(
		slotAspectRatio: 1,
		slotCount: 4,
		horizontalSpace: 22,
		verticalSpace: 22,
		dashboardItemController: controller.itemController,
		itemBuilder: (item) {
		return const SizedBox();
		},
		itemStyle: ItemStyle(
		color: const Color(0x33FAFAFC),
		shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(16)),
		animationDuration: const Duration(milliseconds: 100),
		clipBehavior: Clip.antiAliasWithSaveLayer,
		textStyle: const TextStyle(color: Colors.black),
		),
	),
)
@Mehmetyaz
Copy link
Owner

Interesting... Can you show grid? You can draw grid with setting editModeSettings.backgroundStyle.

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

2 participants