gap icon indicating copy to clipboard operation
gap copied to clipboard

`Gap` not working with `Wrap`

Open skanderhamdi opened this issue 1 year ago • 0 comments

Is there something we can do to use Gap inside Wrap widget?

Wrap(
      direction: Axis.horizontal,
      crossAxisAlignment: WrapCrossAlignment.center,
      children: [
                Text(
                        'Message',
                        style: Get.textTheme.labelMedium!.copyWith(color: Colors.black.withOpacity(0.5)),
                        maxLines: 1,
                        overflow: TextOverflow.ellipsis,
                  ),
                  const Gap(5),
                  Icon(Icons.circle_rounded, size: 8 color: Colors.black.withOpacity(0.5)),
                  const Gap(5),
                  Text(message, style: Get.textTheme.labelMedium!.copyWith(color: Colors.black.withOpacity(0.5)))
       ]
)

skanderhamdi avatar Mar 19 '24 18:03 skanderhamdi