Skip to content

Not working with padding arround #1

@EArminjon

Description

@EArminjon
 return Padding(
      padding: const EdgeInsets.only(top: 16),
      child: DeferredPointerHandler(
        child: SizedBox(
          width: 100,
          height: 100,
          child: Stack(
            clipBehavior: Clip.none,
            children: [
              // Hang button off the bottom of the content
              Positioned(
                bottom: -30,
                child: DeferPointer(child: TextButton(onPressed: () => print("lol"), child: Text("lol"))),
              ),
              // Content
              Positioned.fill(
                child: Container(
                  decoration: BoxDecoration(color: Colors.green, boxShadow: [
                    BoxShadow(color: Colors.black.withOpacity(1), blurRadius: 4, spreadRadius: 4),
                  ]),
                ),
              ),
            ],
          ),
        ),
      ),
    );

image

The lol button is not clickable outside the green block.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions