iOS Debug and Release Mode

another debug and release issue.

int? contentHeight = await controller.evaluateJavascript(
                source: "document.body.scrollHeight;"
);
if (contentHeight != null) {
    setState(() {
        webViewHeight = contentHeight.toDouble(); // update Flutter widget height
    });
}

Error က release mode မှာ တက်တယ်။

/* [ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: type 'double' is not a subtype of type 'int?'
              #0      _NewsDescriptionState.rawHtmlWidget.<anonymous closure> (package:base/features/presentation/components/news_description.dart:493)
              <asynchronous suspension>
            */
Written on September 4, 2025