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

type 'List<Widget?>' is not a subtype of type 'List<Widget>' in type cast #19

Closed
kimmy-wang opened this issue May 4, 2021 · 6 comments

Comments

@kimmy-wang
Copy link

flutter: [debug] Capture from onError type 'List<Widget?>' is not a subtype of type 'List<Widget>' in type cast

======== Exception caught by widgets library =======================================================
The following _CastError was thrown building SecureGate(dirty, dependencies: [_EffectiveTickerMode, SecureApplicationProvider], state: _SecureGateState#93e4b(ticker inactive)):
type 'List<Widget?>' is not a subtype of type 'List<Widget>' in type cast

The relevant error-causing widget was: 
  SecureGate file:///Users/ying/workspace/FlutterProjects/gitter/lib/main.dart:297:21
When the exception was thrown, this was the stack: 
#0      _SecureGateState.build (package:secure_application/secure_gate.dart:118:9)
#1      StatefulElement.build (package:flutter/src/widgets/framework.dart:4612:27)
#2      ComponentElement.performRebuild (package:flutter/src/widgets/framework.dart:4495:15)
#3      StatefulElement.performRebuild (package:flutter/src/widgets/framework.dart:4667:11)
#4      Element.rebuild (package:flutter/src/widgets/framework.dart:4189:5)
...
====================================================================================================
@rasouliali1379
Copy link

I got same error

@Rodsevich
Copy link

The PR pending are fixes to this very issue

@chulster
Copy link

Are the fixes working?

@Rodsevich
Copy link

yeah, like a charm

@neckaros
Copy link
Owner

neckaros commented Jun 3, 2021

i will merge it thanks

@neckaros
Copy link
Owner

neckaros commented Jun 3, 2021

Published to Pub.dev
Please reopen the issue if it is not well corrected!
Thanks!

@neckaros neckaros closed this as completed 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

No branches or pull requests

5 participants