neckaros / secure_application

Secure your application from prying eyes
MIT License
102 stars 57 forks source link

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

Closed kimmy-wang closed 3 years ago

kimmy-wang commented 3 years ago
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 commented 3 years ago

I got same error

Rodsevich commented 3 years ago

The PR pending are fixes to this very issue

chulster commented 3 years ago

Are the fixes working?

Rodsevich commented 3 years ago

yeah, like a charm

neckaros commented 3 years ago

i will merge it thanks

neckaros commented 3 years ago

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