Description:
It checks if size is null before assigning a measurement value. Sometimes it might happen that size comes as null, which is why the error occurs on certain occasions
Error:
Non-fatal Exception: io.flutter.plugins.firebase.crashlytics.FlutterError: Null check operator used on a null value. Error thrown Instance of 'ErrorDescription'.
at RenderBox.size(box.dart:2001)
at Element.size(framework.dart:4175)
at _LinearPercentIndicatorState.initState.<fn>.<fn>(linear_percent_indicator.dart:165)
at State.setState(framework.dart:1109)
at _LinearPercentIndicatorState.initState.<fn>(linear_percent_indicator.dart:164)
at SchedulerBinding._invokeFrameCallback(binding.dart:1146)
at SchedulerBinding.handleDrawFrame(binding.dart:1091)
at SchedulerBinding._handleDrawFrame(binding.dart:997)
Description: It checks if size is null before assigning a measurement value. Sometimes it might happen that size comes as null, which is why the error occurs on certain occasions
Error:
Related:
https://github.com/diegoveloper/flutter_percent_indicator/issues/174#issue-1341148691