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

Fix a null safety error in the [SecureGate] #17

Closed
wants to merge 1 commit into from

Conversation

lubritto
Copy link

error: type List<Widget?> is not a subtype of type List in type cast.

<Widget?>[
  widget.child,
  if (_gateVisibility.value != 0)
    Positioned.fill(
      child: BackdropFilter(
        filter: ImageFilter.blur(
            sigmaX: widget.blurr * _gateVisibility.value,
            sigmaY: widget.blurr * _gateVisibility.value),
        child: Container(
          decoration: BoxDecoration(
              color: Colors.grey.shade200
                  .withOpacity(widget.opacity * _gateVisibility.value)),
        ),
      ),
    ),
  if (_lock && widget.lockedBuilder != null)
    widget.lockedBuilder!(context, _secureApplicationController),
] as List<Widget>,

@tsuruobiz
Copy link

Same problem. I'm waiting that the PR is merged as soon as possible.

@abhinandval
Copy link
Contributor

abhinandval commented Apr 30, 2021

#18

had same issue I've made the widget parameter to SecureGate non-null. since the widget is passed to add in a Stack I think it can never be a null-able widget.

@tsuruobiz
Copy link

tsuruobiz commented May 13, 2021

Any update?

@neckaros
Copy link
Owner

neckaros commented Jun 3, 2021

Hello, i merged the other pull request that fix also this issue. Thanks a lot @lubritto !

@neckaros neckaros closed this Jun 3, 2021
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

Successfully merging this pull request may close these issues.

None yet

4 participants